| Electronic Components Datasheet Search |
|
AT90SCR100 Datasheet(PDF) 262 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT90SCR100 Datasheet(HTML) 262 Page - ATMEL Corporation |
|
262 / 433 page ![]() 262 TPR0327AY–SMS–30Jan09 AT90SCR100 19.6.1 Transmitter and Receiver Flags and Interrupts The RXC0, TXC0, and UDRE0 flags and corresponding interrupts in USART in MSPIM mode are identical in function to the normal USART operation. However, the receiver error status flags (FE, DOR, and PE) are not in use and is always read as zero. 19.6.2 Disabling the Transmitter or Receiver The disabling of the transmitter or receiver in USART in MSPIM mode is identical in function to the normal USART operation. 19.7 USART MSPIM Register Description The following section describes the registers used for SPI operation using the USART. 19.7.1 UDR0 – USART MSPIM I/O Data Register The function and bit description of the USART data register (UDR0) in MSPI mode is identical to normal USART operation. See “UDR0 – USART I/O Data Register n” on page 249. Assembly Code Example USART_MSPIM_Transfer: ; Wait for empty transmit buffer sbis UCSR0A, UDRE0 rjmp USART_MSPIM_Transfer ; Put data (r16) into buffer, sends the data out UDR0,r16 ; Wait for data to be received USART_MSPIM_Wait_RXC0: sbis UCSR0A, RXC0 rjmp USART_MSPIM_Wait_RXC0 ; Get and return received data from buffer in r16, UDR0 ret C Code Example unsigned char USART_Receive( void ) { /* Wait for empty transmit buffer */ while ( !( UCSR0A & (1<<UDRE0)) ); /* Put data into buffer, sends the data */ UDR0 = data; /* Wait for data to be received */ while ( !(UCSR0A & (1<<RXC0)) ); /* Get and return received data from buffer */ return UDR0; } |
|
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 |
| 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 |