EM78P350N
8-Bit Microprocessor with OTP ROM
6.11.3 Programming the Related Registers
When defining TMRX, refer to the related registers of its operation as shown in the
table below. It must be noted that the PWMX bits must be disabled if their related
TMRXs are employed. That is, Bit 7 ~ Bit 5 of the PWMCON register must be set to ‘0’.
6.11.3.1 Related Control Registers of TMR1, TMR2, and TMR3
Address
Name
Bit 7
Bit 6
Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0x05 PWMCON#1/Bank1 R5 PWM3EPWM2EPWM1E “0” T1EN T1P2 T1P1 T1P0
0x06 PWMCON#2/Bank1 R6 T2EN T2P2 T2P1 T2P0 T3EN T3P2 T3P1 T3P0
6.11.4 Timer Programming Process/Steps
1. Load PRDX with the TIMER duration
2. Enable interrupt function by writing IOCF, if required
3. Load a desired a TMRX prescaler value to PWMCON and TMRCON and enable
TMRX and disable PWMX
6.12 Comparator
EM78P350N has one comparator comprising of two analog inputs and one output. The
comparator can be utilized to wake up the EM78P350N from sleep mode. The
comparator circuit diagram is depicted in the figure below.
-
Cin
-
CO
CMP
Cin+
+
Cin-
Cin+
Output
10mV
Fig. 6-13 Comparator Circuit Diagram & Operating Mode
76 •
Product Specification (V1.0) 09.14.2006
(This specification is subject to change without further notice)