Download SPEAr320 address map and registers

Transcript
Universal asynchronous receiver/transmitter (UART)
SPEAr320
- program the UART CSRs (if required)
- enable the UART (setting the UARTEN bit in UARTCR register).
24.2.8
UARTIFLS register
The UARTIFLS (Interrupt FIFO level select) is a 16-bit RW register which defines the FIFO
level at which the UARTTXINTR and UARTRXINTR interrupts are triggered (Section 24.2).
The interrupts are generated based on a transition through a level rather than being based
on the level, that is, when the fill level progresses through the trigger level.
Table 522. UARTIFLS register bit assignments
Bit
Name
Reset value Description
[15:06]
Reserved
-
Read: as zero. Write: should be zero.
3’h12
Receive interrupt FIFO level select.
This 3-bit field allows to set the trigger points for the receive
interrupt, according to encoding:
3‘b000 = 1/8 full
3‘b001 = 1/4 full
3‘b010 = 1/2 full (default)
3‘b011 = 3/4 full
3‘b100 = 7/8 full
Any other value = Reserved
3’h12
Transmit interrupt FIFO level select.
This 3-bit field allows to set the trigger points for the transmit
interrupt, according to encoding:
3‘b000 = 1/8 full
3‘b001 = 1/4 full
3‘b010 = 1/2 full (default)
3‘b011 = 3/4 full
3‘b100 = 7/8 full
Any other value = Reserved
[05:03]
[02:00]
24.2.9
RXIFLSEL
TXIFLSEL
UARTIMSC register
The UARTIMSC (interrupt mask set/clear) is a 16-bit RW register which allows masking and
clearing of each UART interrupt source (Section 24.2).
Reading from this register gives the current value of the mask on relevant interrupt. Writing a
1‘b1 to a particular bit sets the corresponding mask of that interrupt, whereas writing a 1‘b0
clears the corresponding mask.
Table 523. UARTIMSC register bit assignments
434/533
Bit
Name
Reset
value
Description
[15:11]
Reserved
-
Read: as zero. Write: should be zero.
[10]
OEIM
1’h0
Overrun error interrupt mask.
[09]
BEIM
1’h0
Break error interrupt mask.
Doc ID 022180 Rev 1