AT89LP428-20MU ATMEL [ATMEL Corporation], AT89LP428-20MU Datasheet - Page 81

no-image

AT89LP428-20MU

Manufacturer Part Number
AT89LP428-20MU
Description
8-bit Microcontroller with 4K/8K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
16.3
3654A–MICRO–8/09
More About Mode 0
Table 16-3.
In Mode 0, the UART is configured as a 2-wire half-duplex synchronous serial interface. Serial
data enters and exits through RXD. TXD outputs the shift clock. Eight data bits are transmit-
ted/received, with the LSB first.
the serial port in Mode 0 and associated timing. The baud rate is programmable to 1/2 or 1/4 the
oscillator frequency by setting/clearing the SMOD1 bit. However, changing SMOD1 has an
effect on the relationship between the clock and data as described below. The baud rate can
also be generated by Timer 1 by setting TB8.
Table 16-4.
Transmission is initiated by any instruction that uses SBUF as a destination register. The “write
to SBUF” signal also loads a “1” into the 9th position of the transmit shift register and tells the TX
Control Block to begin a transmission. The internal timing is such that one full bit slot may elapse
between “write to SBUF” and activation of SEND.
SEND transfers the output of the shift register to the alternate output function line of P3.0, and
also transfers Shift Clock to the alternate output function line of P3.1. As data bits shift out to the
right, “0”s come in from the left. When the MSB of the data byte is at the output position of the
shift register, the “1” that was initially loaded into the 9th position is just to the left of the MSB,
and all positions to the left of that contain “0”s. This condition flags the TX Control block to do
one last shift, then deactivate SEND and set TI.
Baud Rate
TB8
62.5K
19.2K
137.5
9.6K
4.8K
2.4K
1.2K
110
110
0
0
1
1
Commonly Used Baud Rates Generated by Timer 2 (TPS = 0000B)
Mode 0 Baud Rates
SMOD1
f
OSC
11.059
11.059
11.059
11.059
11.059
11.986
0
1
0
1
12
12
(MHz)
6
Figure 16-1 on page 83
CP/RL2
0
0
0
0
0
0
0
0
0
Table 16-4
C/T2
0
0
0
0
0
0
0
0
0
shows a simplified functional diagram of
(Timer 1 Overflow)/4
(Timer 1 Overflow)/2
lists the baud rate options for Mode 0.
Baud Rate
TCLK or RCLK
f
f
Timer 2
SYS
SYS
AT89LP428/828
/4
/2
1
1
1
1
1
1
1
1
1
Reload Value
FFDCH
FDC0H
FEE0H
EAB8H
FFF4H
FFB8H
FF70H
F2AFH
E55EH
81

Related parts for AT89LP428-20MU