cop87l88rd National Semiconductor Corporation, cop87l88rd Datasheet - Page 12

no-image

cop87l88rd

Manufacturer Part Number
cop87l88rd
Description
8-bit Cmos Otp Microcontrollers With 16k Or 32k Memory And 8-channel A/d With Prescaler
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
CONTROL REGISTERS
T3CNTRL Register (Address X'00B6)
The T3CNTRL control register contains the following bits:
Timers
The device contains a very versatile set of timers (T0, T1,
T2, T3). All timers and associated autoreload/capture regis-
ters power up containing random data.
TIMER T0 (IDLE TIMER)
The device supports applications that require maintaining
real time and low power with the IDLE mode. This IDLE
mode support is furnished by the IDLE timer T0, which is a
16-bit timer. The Timer T0 runs continuously at the fixed rate
of the instruction cycle clock, t
write to the IDLE Timer T0, which is a count down timer.
The Timer T0 supports the following functions:
j
j
j
Figure 8 is a functional block diagram showing the structure
of the IDLE Timer and its associated interrupt logic.
T3C3
Bit 7
T2ENB
T3C3
T3C2
T3C1
T3C0
T3PNDA
T3ENA
T3PNDB
T3ENB
Exit out of the Idle Mode (See Idle Mode description)
WATCHDOG logic (See WATCHDOG description)
Start up delay out of the HALT mode
T3C2
Timer T2 Interrupt Enable for Timer Underflow
or T2B Input capture edge
Timer T3 mode control bit
Timer T3 mode control bit
Timer T3 mode control bit
Timer
modes 1 and 2, T3 Underflow Interrupt Pend-
ing Flag in timer mode 3
Timer T3 Interrupt Pending Flag (Autoreload
RA in mode 1, T3 Underflow in mode 2, T3A
capture edge in mode 3)
Timer T3 Interrupt Enable for Timer Underflow
or T3A Input capture edge
Timer T3 Interrupt Pending Flag for T3B cap-
ture edge
Timer T3 Interrupt Enable for Timer Underflow
or T3B Input capture edge
T3C1
T3C0
T3
T3PNDA
Start/Stop
c
. The user cannot read or
T3ENA
(Continued)
control
T3PNDB
in
T3ENB
timer
Bit 0
12
Bits 11 through 15 of the ITMR register can be selected for
triggering the IDLE Timer interrupt. Each time the selected
bit underflows (every 4k, 8k, 16k, 32k or 64k instruction
cycles), the IDLE Timer interrupt pending bit T0PND is set,
thus generating an interrupt (if enabled), and bit 6 of the Port
G data register is reset, thus causing an exit from the IDLE
mode if the device is in that mode.
In order for an interrupt to be generated, the IDLE Timer in-
terrupt enable bit T0EN must be set, and the GIE (Global In-
terrupt Enable) bit must also be set. The T0PND flag and
T0EN bit are bits 5 and 4 of the ICNTRL register, respec-
tively. The interrupt can be used for any purpose. Typically, it
is used to perform a task upon exit from the IDLE mode. For
more information on the IDLE mode, refer to the Power Save
Modes section.
The Idle Timer period is selected by bits 0–2 of the ITMR
register Bits 3–7 of the ITMR Register are reserved and
should not be used as software flags.
The ITMR is cleared on Reset and the Idle Timer period is re-
set to 4,096 instruction cycles.
ITMR Register (Address X’0xCF)
Any time the IDLE Timer period is changed there is the pos-
sibility of generating a spurious IDLE Timer interrupt by set-
ting the T0PND bit. The user is advised to disable IDLE
Timer interrupts prior to changing the value of the ITSEL bits
of the ITMR Register and then clear the T0PND bit before at-
tempting to synchronize operation to the IDLE Timer.
Bit 7
ITSEL2
0
0
0
0
1
TABLE 3. Idle Timer Window Length
ITSEL1
Reserved
X
0
0
1
1
ITSEL0
X
0
1
0
1
(Instruction Cycles)
ITSEL2
Idle Timer Period
ITSEL1
16,384
32,768
65,536
4,096
8,192
ITSEL0
Bit 0

Related parts for cop87l88rd