sak-c868p-1rr Infineon Technologies Corporation, sak-c868p-1rr Datasheet - Page 150

no-image

sak-c868p-1rr

Manufacturer Part Number
sak-c868p-1rr
Description
8 - Bit Cmos Microcontroller
Manufacturer
Infineon Technologies Corporation
Datasheet
T2CON) must be set. To enable the baud generator for receive, bit RCLK (bit 5 of
special function register T2CON) must be set.
With the timer 2 as clock source for the serial port in mode 1 and 3, the baud rate can be
determined as follows:
Using Timer 1 to Generate Baud Rates
In modes 1 and 3 of the serial interface timer 1 can also be used for generating baud
rates. Then the baud rate is determined by the timer 1 overflow rate and the value of
SMOD as follows:
The timer 1 interrupt is usually disabled in this application. Timer 1 itself can be
configured for either "timer" or "counter" operation, and in any of its operating modes. In
most typical applications, it is configured for "timer" operation in the auto-reload mode
(high nibble of TMOD = 0010
Very low baud rates can be achieved with timer 1 if leaving the timer 1 interrupt enabled,
configuring the timer to run as 16-bit timer (high nibble of TMOD = 0001
timer 1 interrupt for a 16-bit software reload.
User’s Manual
Timer 2 overflow rate = system frequency / 2x(2
Mode 1, 3 baud rate =
Mode 1, 3 baud rate =
Mode 1, 3 baud rate =
B
). In this case the baud rate is given by the formula:
2
SMOD
32
2
2
SMOD
32
with RC2 = RC2H.7..0, RC2L.7..0 and timer2
count direction is set to up.
SMOD
4-106
32 x 12 x (256 – (TH1))
x
x system frequency
(timer 2 overflow rate)
x
(timer 1 overflow rate)
16
On-Chip Peripheral Components
– RC2)
B
), and using the
V 1.0, 2003-01
C868

Related parts for sak-c868p-1rr