SCK
(SCES=0)
SCK
(SCES=1)
SDO
SDI
RBF
EM78871
8-bit Micro-controller
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Shift data in
Shift data out
Fig.8 SPI timing
Clear by software
R5 (PORT5 I/O data, Program page selection, SPI data)
PAGE0 (PORT5 I/O data register, Program page register)
7
6
5
4
3
2
1
0
R57
R56
R55
PS4
PS3
PS2
PS1
PS0
Bit 0 ~ Bit 4 (PS0 ~ PS4) : Program page selection bits
PS4 PS3 PS2 PS1 PS0 Program memory page (Address)
0 0 0 0 0 Page 0
0 0 0 0 1 Page 1
0 0 0 1 0 Page 2
0 0 0 1 1 Page 3
: : : : ::
: : : : ::
1 1 1 1 0 Page 30
1 1 1 1 1 Page 31
User can use PAGE instruction to change page to maintain program page by user. Otherwise, user can use far jump
(FJMP) or far call (FCALL) instructions to program user's code. And the program page is maintained by EMC's
complier. It will change user's program by inserting instructions within program.
Bit 5 ~ Bit 6(P55 ~ P57) : 3-bit PORT5(5~7) I/O data register
User can use IOC register to define input or output each bit.
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to be changed without notice. 16
8/23/04 (V1.5)