Datasheet

78K0/Ix2 CHAPTER 16 SERIAL INTERFACE CSI11
R01UH0010EJ0500 Rev.5.00 554
Feb 28, 2012
(3) Port mode registers 0 and 3 (PM0, PM3)
These registers set input/output of ports 0 and 3 in 1-bit units.
When using P35/SCK11 as the clock output pin of the serial interface, clear PM35 to 0, and set the output latches of
P35 to 1.
When using P37/SO11 as the data output pin of the serial interface, clear PM37 and the output latches of P37 to 0.
When using P35/SCK11 as the clock input pin of the serial interface, P36/SI11 as the data input pin of the serial
interface, and P02/SSI11/INTP5 as the chip select input pin of the serial interface, set PM35, PM36, and PM02 to 1.
At this time, the output latches of P35, P36, and P02 may be 0 or 1.
PM0 and PM3 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
Figure 16-4. Format of Port Mode Register 0 (PM0) (78K0/IB2 (30 pins))
Address: FF20H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM0 1 1 1 1 1 PM02 PM01 PM00
PM0n P0n pin I/O mode selection (n = 0 to 2)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Figure 16-5. Format of Port Mode Register 3 (PM3) (78K0/IB2 (30 pins))
Address: FF23H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM3 PM37 PM36 PM35 PM34 PM33 PM32 PM31 PM30
PM0n P3n pin I/O mode selection (n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)