mpc82l54 Megawin Technology, mpc82l54 Datasheet - Page 24

no-image

mpc82l54

Manufacturer Part Number
mpc82l54
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
mpc82l54AE2
Quantity:
160
Part Number:
mpc82l54AT
Manufacturer:
MOTO
Quantity:
95
Company:
Part Number:
mpc82l54AT2
Quantity:
33
Timer/Counter
24
MPC82x54A has two 16-bit timers, and they are named T0 and T1. Each of them can also be
used as a general event counter, which counts the transition from 1 to 0.
Since the MPC82x54A is a RISC-like MCU which executes faster than traditional 80C51 MCU
from other providers. Based on consideration of compatibility with traditional 80C51 MCUs,
the frequency of the clock source for T0 and T1 is designed to be selectable between
oscillator frequency divided-by-12 (default) or oscillator frequency.
The user can configure T0/T1 to work under mode-0, mode-1, mode-2 and mode-3. It is
entirely identical to the traditional 80C51 MCU.
There are two SFR designed to configure timers T0 and T1. They are TMOD, and TCON.
The user also should take a glance of SFR AUXR which determine the frequency of the clock
source driving the T0 and T1.
SFR: TMOD (Timer Mode Control Register)
GATE: = Gating control
C//T: = Timer or Counter function selector. 0: =timer, 1: =counter
{M1, M0}: mode select
GATE
Bit-7
0:= (default)
1:=
0:= (default)
1:=
{0, 0}: =
{0, 1}: =
{1, 0}: =
{1, 1}: =
Timer x is enabled whenever “TRx” control bit is set.
Timer/Counter x is enabled only while “/INTx” pin is high and “TRx” control bit is set.
Configure Tx as Timer use
Configure Tx as Counter use
Bit-6
C//T
(for timer1 use)
Configure Tx as 13-bit timer/counter
Configure Tx as 16-bit timer/counter
Configure Tx as 8-bit timer/counter with automatic reload capability
for T0, set TL0 as 8-bit timer/counter, TH0 is locked into 8-bit timer
for T1, set Timer/Counter1 Stopped
Bit-5
M1
MPC82x54A Data Sheet
Bit-4
M0
GATE
Bit-3
Bit-2
C//T
(for timer0 use)
Bit-1
M1
MEGAWIN
Bit-0
M0

Related parts for mpc82l54