參數(shù)資料
型號: ADUC836BS
廠商: ANALOG DEVICES INC
元件分類: 微控制器/微處理器
英文描述: MicroConverter, Dual 16-Bit-ADCs with Embedded 62 kB Flash MCU
中文描述: 8-BIT, FLASH, 12.58 MHz, MICROCONTROLLER, PQFP52
封裝: 14 X 14 MM, MO-022-AC-1, MQFP-52
文件頁數(shù): 59/80頁
文件大?。?/td> 5913K
代理商: ADUC836BS
ADuC836
–59–
Timer 2 Generated Baud Rates
Baud rates can also be generated using Timer 2. Using Timer 2 is
similar to using Timer 1 in that the timer must overflow 16 times
before a bit is transmitted/received. Because Timer 2 has a 16-bit
Autoreload mode, a wider range of baud rates is possible.
=
(
Mode1
3
and Mode
Baud Rate
Timer
Overflow Rate
)
×
(
)
1 16
2
Therefore when Timer 2 is used to generate baud rates, the timer
increments every two clock cycles and not every core machine
cycle as before. Thus, it increments six times faster than Timer 1,
and therefore baud rates six times faster are possible. Because
Timer 2 has a 16-bit autoreload capability, very low baud rates
are still possible.
Timer 2 is selected as the baud rate generator by setting the TCLK
and/or RCLK in T2CON. The baud rates for transmit and receive
can be simultaneously different. Setting RCLK and/or TCLK puts
Timer 2 into its baud rate generator mode, as shown in Figure 56.
In this case, the baud rate is given by the formula:
Mode1
3
and Mode
Baud Rate
f
RCAP H L
CORE
=
×
(
)
32
65536
2
Table XXXII shows some commonly used baud rates and
how they might be calculated from a core clock frequency of
1.5728 MHz and 12.5829 MHz using Timer 2.
Table XXXII. Commonly Used Baud Rates, Timer 2
Ideal Core RCAP2H RCAP2L Actual %
Baud CLK Value Value Baud Error
19200 12.58 –1 (FFH) –20 (ECH) 19661 2.4
9600 12.58 –1 (FFH) –41 (D7H) 9591 0.1
1600 12.58 –1 (FFH) –164 (5CH) 2398 0.1
1200 12.58 –2 (FEH) –72 (B8H) 1199 0.1
9600 1.57 –1 (FFH) –5 (FBH) 9830 2.4
1600 1.57 –1 (FFH) –20 (ECH) 1658 2.4
1200 1.57 –1 (FFH) –41 (D7H) 1199 0.1
BAUD RATE GENERATION USING TIMER 1 AND TIMER 2
Timer 1 Generated Baud Rates
When Timer 1 is used as the baud rate generator, the baud rates
in Modes 1 and 3 are determined by the Timer 1 overflow rate
and the value of SMOD as follows:
(
The Timer 1 interrupt should be disabled in this application.
The timer itself can be configured for either timer or counter
operation, and in any of its three running modes. In the most
typical application, it is configured for timer operation, in the
Autoreload mode (high nibble of TMOD = 0100 binary). In this
case, the baud rate is given by the formula:
Modes1
3
1
and
Baud Rate
Timer
Overflow Rate
SMOD
=
)
×
(
)
2
32
Mode1
3
1
and Mode
Baud Rate
f
TH
SMOD
CORE
=
×
×
)
2
32
12 256
A very low baud rate can also be achieved with Timer 1 by leaving
the Timer 1 interrupt enabled, configuring the timer to run as a
16-bit timer (high nibble of TMOD = 0100 binary), and using
the Timer 1 interrupt to do a 16-bit software reload. Table XXXI
shows some commonly used baud rates and how they might
be calculated from a core clock frequency of 1.5728 MHz and
12.58 MHz using Timer 1. Generally speaking, a 5% error is
tolerable using asynchronous (start/stop) communications.
Table XXXI. Commonly Used Baud Rates, Timer 1
Ideal Core SMOD TH1-Reload Actual %
Baud CLK Value Value Baud Error
9600 12.58 1 –7 (F9H) 9362 2.5
1600 12.58 1 –27 (E5H) 1627 1.1
1200 12.58 1 –55 (C9H) 1192 0.7
1200 1.57 1 –7 (F9H) 1170 2.5
CORE
CLK
*
2
T2
PIN
TR2
CONTROL
TL2
(8 BITS)
TH2
(8 BITS)
RELOAD
EXEN2
CONTROL
T2EX
PIN
TRANSITION
DETECTOR
EXF 2
TIMER 2
INTERRUPT
NOTE AVAILABILITY OF ADDITIONAL
EXTERNAL INTERRUPT
*
THE CORE CLOCK IS THE OUTPUT OF THE PLL (SEE THE ON-CHIP PLL SECTION)
RCAP2L
RCAP2H
TIMER 2
OVERFLOW
2
16
16
RCLK
TCLK
RX
CLOCK
TX
CLOCK
0
0
1
1
1
0
SMOD
TIMER 1
OVERFLOW
C/
T2
= 0
C/
T2
= 1
OSC. FREQ. IS DIVIDED BY 2, NOT 12.
Figure 56. Timer 2, UART Baud Rates
REV. A
相關PDF資料
PDF描述
ADUC842BCP62-3 MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
ADUC843BCP62-5 MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
ADUC842BCP62-5 MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
ADUC843BCP62-3 MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
ADUC842BCP32-3 MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
相關代理商/技術參數(shù)
參數(shù)描述
ADUC836BS 制造商:Analog Devices 功能描述:IC SEMICONDUCTOR ((NS))
ADUC836BSZ 功能描述:IC ADC DUAL 16BIT W/MCU 52-MQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:MicroConverter® ADuC8xx 標準包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲器容量:40KB(20K x 16) 程序存儲器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉換器:A/D 6x12b 振蕩器型:內部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
ADUC841 制造商:AD 制造商全稱:Analog Devices 功能描述:MicroConverter 12-Bit ADCs and DACs with Embedded High Speed 62-kB Flash MCU
ADUC841BCP32-5 制造商:Analog Devices 功能描述:MICROCONVERTER 1-CYCLE VERSION ADUC829 - Trays
ADUC841BCP62-3 制造商:Analog Devices 功能描述:MCU 8-Bit ADuC8xx 8052 CISC 62KB Flash 3V 56-Pin LFCSP EP 制造商:Rochester Electronics LLC 功能描述:8BIT CISC 62KB FLASH 20MHZ 3.3V 56LFCSP - Bulk