Texas Instruments MSC1210 User Manual

Page 269

Advertising
background image

Serial Port I/O

17-41

Keil Simulator

A snapshot of the Serial Channel 0 communication peripheral after at typical
show_baud_gen ( ) subroutines execution is shown in Figure 17−18.

Figure 17−18.

Serial Channel 0 Communication Peripheral

The statuses of the transmit and/or receive flags are also reflected in the
conditions of the TI_0 and RI_0 check boxes. The computed transmit and receive
baudrates are displayed in the transmit baud rate and the receive baud rate
non-editable windows respectively.

Note:

The transmit baudrate and the receive baudrate do not necessarily have to
come from the same timer overflow source. You have a choice of two indepen-
dent sources of the divide-by-16 transmit/receive counters. Setting or clearing
the bit fields for RCLK and TCLK of the T2CON SFR, respectively, determine
independently, whether the timer overflow source for the divide-by-16 transmit/
receive counters is the Timer 1 overflow or the Timer 2 overflow.

The following section is a graft of the show_baud_gen ( ) subroutine used in
earlier examples.

Advertising