AT89C5132 Atmel Corporation, AT89C5132 Datasheet - Page 108
AT89C5132
Manufacturer Part Number
AT89C5132
Description
Manufacturer
Atmel Corporation
Datasheets
1.AT89C5132.pdf
(3 pages)
2.AT89C5132.pdf
(182 pages)
3.AT89C5132.pdf
(38 pages)
4.AT89C5132.pdf
(33 pages)
Specifications of AT89C5132
Flash (kbytes)
64 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-12C
Max I/o Pins
44
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Uart
1
Adc Channels
2
Adc Resolution (bits)
10
Adc Speed (ksps)
22.7
Sram (kbytes)
2.25
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 3.6
Timers
2
Isp
UART/USB
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
18.2.2
18.3
108
Synchronous Mode (Mode 0)
AT89C5132
Internal Baud Rate Generator
Figure 18-1. Timer 1 Baud Rate Generator Block Diagram
When using the Internal Baud Rate Generator, the Baud Rate is derived from the overflow of the
timer. As shown in Figure 18-2, the Internal Baud Rate Generator is an 8-bit auto-reload timer
feed by the peripheral clock or by the peripheral clock divided by 6 depending on the SPD bit in
BDRCON register (see Table 95). The Internal Baud Rate Generator is enabled by setting BBR
bit in BDRCON register. SMOD1 bit in PCON register allows doubling of the generated baud
rate.
Figure 18-2. Internal Baud Rate Generator Block Diagram
Mode 0 is a half-duplex, synchronous mode, which is commonly used to expand the I/0 capabil-
ities of a device with shift registers. The transmit data (TXD) pin outputs a set of eight clock
pulses while the receive data (RXD) pin transmits or receives a byte of data. The 8-bit data are
transmitted and received least-significant bit (LSB) first. Shifts occur at a fixed Baud Rate (see
Section "Baud Rate Selection (Mode 0)", page 110). Figure 18-3 shows the serial port block dia-
gram in Mode 0.
CLOCK
CLOCK
INT1
PER
PER
T1
GATE1
TMOD.7
TCON.6
TR1
÷ 6
÷ 6
BDRCON.1
TMOD.6
SPD
C/T1#
0
1
0
1
BDRCON.4
BRR
(8 bits)
(8 bits)
(8 bits)
(8 bits)
BRG
BRL
TH1
TL1
To serial
Port (M0)
Overflow
Overflow
CLOCK
IBRG0
÷ 2
÷ 2
SMOD1
SMOD1
PCON.7
CLOCK
PCON.7
T1
0
1
0
1
CLOCK
IBRG
4173E–USB–09/07
To serial
Port
To serial
Port