Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AT90SCR100 Datasheet(PDF) 243 Page - ATMEL Corporation

Part # AT90SCR100
Description  8-bit Microcontroller for Smart Card Readers
PDF  433 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT90SCR100 Datasheet(HTML) 243 Page - ATMEL Corporation

Back Button AT90SCR100 Datasheet HTML 239Page - ATMEL Corporation AT90SCR100 Datasheet HTML 240Page - ATMEL Corporation AT90SCR100 Datasheet HTML 241Page - ATMEL Corporation AT90SCR100 Datasheet HTML 242Page - ATMEL Corporation AT90SCR100 Datasheet HTML 243Page - ATMEL Corporation AT90SCR100 Datasheet HTML 244Page - ATMEL Corporation AT90SCR100 Datasheet HTML 245Page - ATMEL Corporation AT90SCR100 Datasheet HTML 246Page - ATMEL Corporation AT90SCR100 Datasheet HTML 247Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 243 / 433 page
background image
243
TPR0327AY–SMS–30Jan09
AT90SCR100
18.8.3
Receive Compete Flag and Interrupt
The USART Receiver has one flag that indicates the Receiver state.
The Receive Complete (RXC0) Flag indicates if there are unread data present in the receive buf-
fer. This flag is one when unread data exist in the receive buffer, and zero when the receive
buffer is empty (i.e., does not contain any unread data). If the Receiver is disabled (RXEN0 = 0),
the receive buffer will be flushed and consequently the RXC0 bit will become zero.
When the Receive Complete Interrupt Enable (RXCIE0) in UCSR0B is set, the USART Receive
Complete interrupt will be executed as long as the RXC0 Flag is set (provided that global inter-
rupts are enabled). When interrupt-driven data reception is used, the receive complete routine
must read the received data from UDR0 in order to clear the RXC0 Flag, otherwise a new inter-
rupt will occur once the interrupt routine terminates.
18.8.4
Receiver Error Flags
The USART Receiver has three Error Flags: Frame Error (FE0), Data OverRun (DOR0) and
Parity Error (UPE0). All can be accessed by reading UCSR0A. Common for the Error Flags is
that they are located in the receive buffer together with the frame for which they indicate the
error status. Due to the buffering of the Error Flags, the UCSR0A must be read before the
receive buffer (UDR0), since reading the UDR0 I/O location changes the buffer read location.
Another equality for the Error Flags is that they can not be altered by software doing a write to
the flag location. However, all flags must be set to zero when the UCSR0A is written for upward
compatibility of future USART implementations. None of the Error Flags can generate interrupts.
The Frame Error (FE0) Flag indicates the state of the first stop bit of the next readable frame
stored in the receive buffer. The FE0 Flag is zero when the stop bit was correctly read (as one),
and the FE0 Flag will be one when the stop bit was incorrect (zero). This flag can be used for
detecting out-of-sync conditions, detecting break conditions and protocol handling. The FE0
Flag is not affected by the setting of the USBS0 bit in UCSR0C since the Receiver ignores all,
except for the first, stop bits. For compatibility with future devices, always set this bit to zero
when writing to UCSR0A.
The Data OverRun (DOR0) Flag indicates data loss due to a receiver buffer full condition. A
Data OverRun occurs when the receive buffer is full (two characters), it is a new character wait-
ing in the Receive Shift Register, and a new start bit is detected. If the DOR0 Flag is set there
was one or more serial frame lost between the frame last read from UDR0, and the next frame
read from UDR0. For compatibility with future devices, always write this bit to zero when writing
to UCSR0A. The DOR0 Flag is cleared when the frame received was successfully moved from
the Shift Register to the receive buffer.
The Parity Error (UPE0) Flag indicates that the next frame in the receive buffer had a Parity
Error when received. If Parity Check is not enabled the UPE0 bit will always be read zero. For
compatibility with future devices, always set this bit to zero when writing to UCSR0A. For more
details see “Parity Bit Calculation” on page 236 and “Parity Checker” on page 243.
18.8.5
Parity Checker
The Parity Checker is active when the high USART Parity mode (UPM01) bit is set. Type of Par-
ity Check to be performed (odd or even) is selected by the UPM00 bit. When enabled, the Parity
Checker calculates the parity of the data bits in incoming frames and compares the result with
the parity bit from the serial frame. The result of the check is stored in the receive buffer together



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com