I use the 3-wire serial interface of the uPD780034A switching
between the slave reception mode and the master transmission mode,
but the clock output immediately after switching to master transmission does not go well.
There is no problem for clock output when continuing to transmit.
The settings I use are as follows.
PM22: Input
CSIM30: Enabled, receive-only mode, clock input
PM21: Output, P21 = 0
PM20: Input
During transmission:
CSIM30: Enabled, transmit/receive mode, clock setting
PM22: Output
SIO30 write
Since the P2n latch specification is 0 in the manual,
when the port mode (PM2) and latch (P2n) settings are performed first,
a low level is output to SCK30.