AT43USB320A_04 ATMEL [ATMEL Corporation], AT43USB320A_04 Datasheet - Page 57

no-image

AT43USB320A_04

Manufacturer Part Number
AT43USB320A_04
Description
Full-speed USB Microcontroller with an Embedded Hub
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
UART
1443E–USB–4/04
SPI Status Register – SPSR
• Bit 7 – SPIF: SPI Interrupt Flag
When a serial transfer is complete, the SPIF bit is set (one) and an interrupt is generated if
SPIE in SPCR is set (one) and global interrupts are enabled. If SS is an input and is driven low
when the SPI is in master mode, this will also set the SPIF flag. SPIF is cleared by the hard-
ware when executing the corresponding interrupt handling vector. Alternatively, the SPIF bit is
cleared by first reading the SPI status register when SPIF is set (one), then accessing the SPI
Data Register (SPDR).
• Bit 6 – WCOL: Write Collision Flag
The WCOL bit is set if the SPI data register (SPDR) is written during a data transfer. The
WCOL bit (and the SPIF bit) are cleared (zero) by first reading the SPI Status Register when
WCOL is set (one), and then accessing the SPI Data Register.
• Bit 5..0 – Res: Reserved Bits
These bits are reserved bits in the AT43USB320A and will always read as zero.
SPI Data Register – SPDR
The SPI Data Register is a read/write register used for data transfer between the register file
and the SPI Shift register. Writing to the register initiates data transmission. Reading the regis-
ter causes the Shift Register Receive buffer to be read.
The AT43USB320A features a full duplex (separate receive and transmit registers) Universal
Asynchronous Receiver and Transmitter (UART). The main features are:
Read/Write
Initial Value
Read/Write
Initial Value
$0E ($2E)
$0F ($2F)
Baud rate generator that can generate a large number of baud rates (bps)
High baud rates at low XTAL frequencies
8-bit data
Noise filtering
Overrun detection
Framing Error detection
False Start Bit detection
Three separate interrupts on TX Complete, TX Data Register Empty and RX Complete
Bit
Bit
SPIF
MSB
R/W
R
7
0
7
x
WCOL
R/W
6
R
x
6
0
R/W
5
x
R
5
0
R/W
4
x
R
4
0
R/W
3
x
R
3
0
R/W
2
x
2
R
0
AT43USB320A
R/W
1
x
R
1
0
LSB
R/W
0
x
R
0
0
SPDR
Undefined
SPSR
57

Related parts for AT43USB320A_04