3 product dependencies, 1 i/o lines, 2 power management – Rainbow Electronics AT91CAP9S250A User Manual

Page 409: 3 interrupt source, 4 uart operations, 1 baud rate generator

Advertising
background image

409

6264A–CAP–21-May-07

AT91CAP9S500A/AT91CAP9S250A

31.3

Product Dependencies

31.3.1

I/O Lines

Depending on product integration, the Debug Unit pins may be multiplexed with PIO lines. In this
case, the programmer must first configure the corresponding PIO Controller to enable I/O lines
operations of the Debug Unit.

31.3.2

Power Management

Depending on product integration, the Debug Unit clock may be controllable through the Power
Management Controller. In this case, the programmer must first configure the PMC to enable the
Debug Unit clock. Usually, the peripheral identifier used for this purpose is 1.

31.3.3

Interrupt Source

Depending on product integration, the Debug Unit interrupt line is connected to one of the inter-
rupt sources of the Advanced Interrupt Controller. Interrupt handling requires programming of
the AIC before configuring the Debug Unit. Usually, the Debug Unit interrupt line connects to the
interrupt source 1 of the AIC, which may be shared with the real-time clock, the system timer
interrupt lines and other system peripheral interrupts, as shown in

Figure 31-1

. This sharing

requires the programmer to determine the source of the interrupt when the source 1 is triggered.

31.4

UART Operations

The Debug Unit operates as a UART, (asynchronous mode only) and supports only 8-bit charac-
ter handling (with parity). It has no clock pin.

The Debug Unit's UART is made up of a receiver and a transmitter that operate independently,
and a common baud rate generator. Receiver timeout and transmitter time guard are not imple-
mented. However, all the implemented features are compatible with those of a standard USART.

31.4.1

Baud Rate Generator

The baud rate generator provides the bit period clock named baud rate clock to both the receiver
and the transmitter.

The baud rate clock is the master clock divided by 16 times the value (CD) written in
DBGU_BRGR (Baud Rate Generator Register). If DBGU_BRGR is set to 0, the baud rate clock
is disabled and the Debug Unit's UART remains inactive. The maximum allowable baud rate is
Master Clock divided by 16. The minimum allowable baud rate is Master Clock divided by (16 x
65536).

Baud Rate

MCK

16

CD

Ч

----------------------

=

Advertising