mg82fel308 Megawin Technology, mg82fel308 Datasheet - Page 39
mg82fel308
Manufacturer Part Number
mg82fel308
Description
A Single-chip Microcontroller Based On A High Performance 1-t Architecture 80c51
Manufacturer
Megawin Technology
Datasheet
1.MG82FEL308.pdf
(84 pages)
- Current page: 39 of 84
- Download datasheet (2Mb)
12. Timers/Counters
MG82FE(L)308/316 has four Timers/Counters: Timer 0, Timer 1, Timer 2 and PWM Timer. Timer0/1/2 can be
configured as timers or event counters. PWM Timer can be configured as timer or PWM generator.
In the “timer” function, the timer rate is prescaled by 12 clock cycle to increment register value. In other words, it
is to count the standard C51 machine cycle. AUXR2.T0X12, AUXR2.T1X12 and T2MOD.T2X12 are the function
for Timer 0/1/2 to set the timer rate on every clock cycle.
In the “counter” function, the register is incremented in response to a 1-to-0 transition at its corresponding
external input pin, T0, T1 or T2. In this function, the external input is sampled by every timer rate cycle. When the
samples show a high in one cycle and a low in the next cycle, the count is incremented. The new count value
appears in the register at the end of the cycle following the one in which the transition was detected.
12.1. Timer0 and Timer1
12.1.1. Mode 0 Structure
The timer register is configured as a 13-bit register. As the count rolls over from all 1s to all 0s, it sets the timer
interrupt flag TFx. The counted input is enabled to the timer when TRx = 1 and either GATE=0 or INTx = 1. Mode
0 operation is the same for Timer0 and Timer1.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
QP-7300-03D
39/84
SYSCLK
SYSCLK
MEGAWIN
MAKE YOU WIN
≅
12
nINTx Pin
Tx Pin
GATE
TRx
AUXR2.TxX12=0
AUXR2.TxX12=1
C/T=0
C/T=1
TLx[4:0]
THx[7:0]
MG82FE(L)308/316
Overflow
Preliminary, v 0.04
TFx
x = 0 or 1
Interrupt
Related parts for mg82fel308
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8 Bit Micro-Controller with Voice Synthesizer and Melody
Manufacturer:
Megawin Technology Co., Ltd.
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
1-channel 350v, 50ma/80ma Constant Current Dc Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Universal Pwm Type Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8 Bits Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet: