em78p257 ELAN Microelectronics Corp, em78p257 Datasheet - Page 46

no-image

em78p257

Manufacturer Part Number
em78p257
Description
8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
em78p257AM
Manufacturer:
SEMTECH
Quantity:
600
4.9 Oscillator
This specification is subject to change without prior notice.
Table 13 Related Control Registers of the Comparators
Table 14 Related Status/Data Registers of Comparators
Address
Address
4. Interrupt
5. Wake-Up from SLEEP mode
1. Oscillator Modes
0x0A
0x09
0x0F
0x09
0x0F
When defining Comparators, refer to the related registers of its operation as shown in Table 13 and Table 14 below.
• INT, and CMPXIE must be enable
• Interrupt occurs whenever a change takes place on the output pin of the comparators
• The actual changes on the pins can be determined by reading the bits CMPOUTX and R9<P7~P4>
• CMPXIF, the comparator interrupt flag, can only be cleared by software
• If enabled, the comparators remains active and the interrupt stays functional during SLEEP mode.
• If a mismatch occurs, the interrupt will wake up the device from SLEEP mode.
• The power consumption should be taken into consideration for the sake of power saving.
• If the function is unemployed during the SLEEP mode, turn off comparators before entering into sleep
The EM78P257A/B can be operated in the five different oscillator modes, such as Internal RC oscillator mode
(IRC), RC oscillator with Internal capacitor mode(IC),External RC oscillator mode(ERC), High XTAL oscillator
mode(HXT), and Low XTAL oscillator mode(LXT). User can select one of them by programming OSC2,OCS1 and
OSC0 in the CODE Option register. Table15 depicts how these five modes are defined.
The up-limited operation frequency of crystal/resonator on the different VDDs is listed in Table 16
Table 15 Oscillator Modes defined by OSC2,OSC1 and OSC0
mode.
IRC(Internal RC oscillator mode)
IC(Internal C oscillator mode)
CMPOUT/R9 CMPOUT4/0 CMPOUT3/0 CMPOUT2/0 CMPOUT1/0
CMPCR/IOC90 COIE4/0
COICS/IOCA0
IMR/IOCF0
ISR/RF
Name
Name
CMP4IF/0
Mode
Bit 7
CMP4IE/0 CMP3IE/0 CMP2IE/0 CMP1IE/0 PPC/CMP EXIE/0
Bit 7
0
CMP3IF/0
COIE3/0
Bit 6
Bit 6
0
CMP2IF/0
COIE2/0
46
Bit 5
Bit 5
OSC2
0
1
1
COIE1/0
CMP1IF/0
Bit 4
Bit 4
0
OSC1
1
1
Bit 3
CE4/0
CI3/0
Bit 3
0
0
OSC0
TCCCIF/0 TCCBIF/0 TCCAIF/0
EXIF/0
1
0
Bit 2
CE3/0
CI2/0
Bit 2
EM78P257
ICIF/0
Bit 1
07.27.2004 (V1.4)
OTP ROM
CE2/0 CE1/0
ICIE/0 TCIE/0
CI1/0
Bit 1
TCIF/0
Bit 0
CI0/0
Bit 0

Related parts for em78p257