EM78156EAS EMC [ELAN Microelectronics Corp], EM78156EAS Datasheet - Page 15

no-image

EM78156EAS

Manufacturer Part Number
EM78156EAS
Description
8-Bit Microcontroller with MASK ROM
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
Product Specification (V1.3) 07.29.2004
(This specification is subject to change without further notice)
4.3 TCC/WDT & Prescaler
Bit 4 (ROC) ROC is used for the R-option.
Bits 0~3,5 Not used.
4.2.9 IOCF (Interrupt Mask Register)
Bit 0 (TCIE) TCIF interrupt enable bit.
Bit 1 (ICIE) ICIF interrupt enable bit.
Bit 2 (EXIE) EXIF interrupt enable bit.
Bits 3~7
IOCF register is both readable and writable.
An 8-bit counter available as prescaler for the TCC or WDT. The prescaler is available
for either the TCC or WDT only at any given time, and the PAB bit of the CONT register
is used to determine the prescaler assignment. The PSR0~PSR2 bits determine the
ratio. The prescaler is cleared each time the instruction is written to TCC under TCC
mode. The WDT and prescaler, when assigned to WDT mode, are cleared by the
“WDTC” or “SLEP” instructions. Fig. 5 depicts the circuit diagram of TCC/WDT.
R1 (TCC) is an 8-bit timer/counter. The clock source of TCC can be internal or
external clock input (edge selectable from TCC pin). If TCC signal source is from
7
-
Not used.
Setting the ROC to "1" will enable the status of R-option pins (P50∼P51)
that are read by the controller. Clearing the ROC will disable the R-option
function. If the R-option function is selected, user must connect the P51
pin or/and P50 pin to VSS with a 430KΩ external resistor (Rex). If the Rex
is connected/disconnected, the status of P50 (P51) is read as "0"/"1".
Refer to Fig. 8.
0: disable TCIF interrupt
1: enable TCIF interrupt
0: disable ICIF interrupt
1: enable ICIF interrupt
0: disable EXIF interrupt
1: enable EXIF interrupt
Individual interrupt is enabled by setting its associated control bit in the
IOCF to "1".
Global interrupt is enabled by the ENI instruction and is disabled by the
DISI instruction. Refer to Fig. 10.
6
-
5
-
4
-
8-Bit Microcontroller with MASK ROM
3
-
EXIE
2
ICIE
1
EM78156E
TCIE
0
• 11

Related parts for EM78156EAS