
111
μ
PD75517(A)
4.8.7 Manipulation of SCK0 Pin Output
The SCK0/P01 pin has a built-in output latch, so that this pin allows static output by software manipulation
in addition to normal serial clock output.
The number of SCK0s can be software-set arbitrarily by manipulating the P01 output latch. (The SO0/SB0/
SB1 pin is controlled by manipulating the RELT and CMDT bits of SBIC.)
The procedure for manipulating SCK0/P01 pin output is explained below.
1
Set serial operation mode register 0 (CSIM0) (SCK0 pin: output mode). When serial transfer is
halted, SCK0 from the serial clock control circuit is set to 1.
2
Manipulate the P01 output latch by using a bit manipulation instruction.
Example
To output one clock cycle on the SCK0/P01 pin by software
SEL
MB15
; or CLR1 MBE
MOV
XA, #10000011B ; SCK0 (f
X
/2
3
), output mode
MOV
CSIM0, XA
CLR1
0FF0H.1
; SCK0/P01
←
0
SET1
0FF0H.1
; SCK0/P01
←
1
Fig. 4-53 SCK0/P01 Pin Circuit Configuration
The P01 output latch is mapped to bit 1 of address FF0H. A RESET signal sets the P01 output latch to 1.
Cautions 1.
During normal serial transfer, the P01 output latch must be set to 1.
The P01 output latch cannot be addressed by specifying PORT0.1 (as described below). The
address of the latch (0FF0H.1) must be coded in the operand of an instruction directly.
However, MBE = 0 (or MBE = 1, MBS = 15) must be specified before the instruction is
executed.
2.
CLR1 PORT0.1
Not allowed
SET1 PORT0.1
CLR1 0FF0H.1
Allowed
SET1 0FF0H.1
P01/SCK0
P01
output
latch
SCK0
To internal circuit
Address
FF0H.1
When CSIE0=1 and CSIM01
and CSIM00 are not 00
From the serial clock
control circuit