em78f644nso28s ELAN Microelectronics Corp, em78f644nso28s Datasheet - Page 126

no-image

em78f644nso28s

Manufacturer Part Number
em78f644nso28s
Description
Flash Series 8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78F648/644/642/641/548/544/542/541N
8-Bit Microcontroller
116 •
6.10.3 Comparator Outputs
For EM78F664N/F662N/F661N/F564N/F562N/F561N:
For EM78F648N/F548N:
The following figure depicts the comparator output block diagram.
6.10.4 Interrupt
For EM78F664N/F662N/F661N/F564N/F562N/F561N:
The compared result is stored in the CPOUT2 of R7 Bit 4 of Bank 3.
The comparator is output to CO2 (P80) by programming Bit 3, Bit 2 <COS21,
The compared result is stored in CP1OUT of R39 Bit 6 of Bank 0 for comparator1;
By programming Bit 5, Bit 4 <CMP1COS1, CMP1COS0> of Register R39 Bank 0
CMP2IE (IOCE.7) and the “ENI” instruction execution must be enabled.
Interrupt is executed whenever a change occurs on the output pin of the
The actual change on the pin can be determined by reading the Bit CPOUT2, R7
CMP2IF (RF.7 Bank 1) and the comparator interrupt flag, can only be cleared by
in CP2OUT of R3C Bit 6 of Bank 0 for comparator 2.
and Bit 5, Bit 4 <CMP2COS1, CMP2COS0> of Register R3C Bank 0, the
compared results can be output to CO1 and CO2 pins.
comparator.
Bit 4 of Bank 3.
software.
COS20> of Register R7 Bank 3.
To CPxOUT
To CO
Figure 6-23 Comparator Output Block Diagram
CMRD
Q
RESET
(This specification is subject to change without further notice)
EN
D
Product Specification (V1.0) 05.05.2010
comparator
From other
Q
CMRD
EN
From OP I/O
D
To CMPxIF

Related parts for em78f644nso28s