EM78P569
8-bit OTP Micro-controller
If ADI = 0 in IOCE PAGE0 Bit5, when A/D start conversion by setting ADST(IOCB PAGE1 Bit0) = 1 then
A/D will continue conversion without stop and hardware won’t reset ADST bit. In this condition, ADI is
deactived. After ADI in IOCE PAGE0 bit5 is set, ADI in RE PAGE0 bit5 will activate again.
To minimum operating current , all biasing circuits in the A/D module that consume DC current are power
down when ADPWR bit in IOCB PAGE1 Bit2 register is a ’0’. When ADPWR bit is a ‘1’, A/D converter
module is operating.
User has to set PORT60~ PORT65as AD converter input pin or bi-direction IO PORT.
1
2
3
4
5
6
7
8
9
10
11
12
START
SAMPLE
ADI(IOCE PAGE0 bit5 ) =1
ADI(RE PAGE0 bit 5)
DATA
Clear by software
Fig.15 A/D converter timing
Bit 6 (RBF) : SPI’s RBF interrupt mask
0/1 disable/enable interrupt
Bit 7 (PWM2) : PWM2 interrupt enable bit
0/1 disable/enable interrupt
IOCF (Interrupt mask)
(Interrupt mask register)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
INT3
0
INT2 INT1 INT0 CNT2 CNT1 TCIF
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Bit 0 ~ 5,7 : interrupt enable bit
0 disable interrupt
1 enable interrupt
Bit 6 : (remain these values to “0”othwise it will generate unpredicted interrupts)
The status after interrupt and the interrupt sources list as the table below.
Interrupt signal
GREEN mode
NORMAL mode
RA(7,6)=(x,0)
no SLEP
RA(7,6)=(x,1)
no SLEP
TCC time out
IOCF bit0=1
Interrupt
Interrupt
(jump to address 8 at (jump to address 8 at
And "ENI"
page0)
page0)
COUNTER1 time out Interrupt
Interrupt
IOCF bit1=1
(jump to address 8 at (jump to address 8 at
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to be changed without notice.
39
8/19/2004 V4.4