em78p134n ELAN Microelectronics Corp, em78p134n Datasheet - Page 44

no-image

em78p134n

Manufacturer Part Number
em78p134n
Description
8-bit Microcontroller With Otp Rom
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78P134N
8-Bit Microcontroller with OTP ROM
38 •
5.9.2 Comparator Outputs
The following figure shows the Comparator Output block diagram.
5.9.3 Comparator Interrupt
The comparator outputs are sent to CO (P60) by programming Bit 1,
Bit 0<COS1, COS0> of the RB register to <1, X>. See Section 6.2.6, RB for
Comparator select bits function description.
RB<2>.
The compared result is stored in the CPOUT of RB.
CMPIE (IOCF0.3) must be enabled for the “ENI” instruction to take effect.
Interrupt is triggered whenever a change occurs on the comparator output pin.
The actual change on the pin can be determined by reading the Bit CPOUT,
CMPIF (RF.3), the comparator interrupt flag, can only be cleared by software.
The CO and PWM of the P60/INT/CO pins cannot be used at the same time.
The P60/INT/CO pin priority is as follows:
T o C M P O U T
T o C 0
Figure 5-16 Comparator Output Configuration
C M R D
High
CO
P60/INT/CO Priority
Q
R E S E T
(This specification is subject to change without further notice)
Medium
E N
NOTE
INT
D
Product Specification (V1.6) 06.02.2010
c o m p a r a to r
F r o m o th e r
Low
P60
Q
C M R D
E N
F r o m O P I/O
D
T o C P IF

Related parts for em78p134n