NEC 78K0R/KE3 User Manual page 453

16-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Operation procedure
Figure 11-94. Initial Setting Procedure for Address Field Transmission
Starting initial setting
Setting PER0 register
Setting SPS0 register
Setting SMR02 register
Setting SCR02 register
Setting SDR02 register
Setting SO0 register
Setting port
Setting SO0 register
Setting SO0 register
Changing setting of SOE0 register
Writing to SS0 register
Starting communication
Caution
After setting the PER0 register to 1, be sure to set the SPS0 register after 4 or more clocks
have elapsed.
CHAPTER 11 SERIAL ARRAY UNIT
Release the serial array unit from the
reset status and start clock supply.
Set the operation clock .
Set an operation mode, etc.
Set a communication format.
Set a transfer baud rate.
Manipulate the SO02 and CKO02 bits
and set an initial output level.
Enable data output, clock output, and the N-ch
open-drain output (V
target channel by setting a port register, a port
mode register, and a port output mode register.
Clear the SO02 bit to 0 to generate the
start condition.
Secure a wait time so that the specifications of
Wait
2
I
C on the slave side are satisfied.
Clear the CKO02 bit to 0 to lower the
clock output level.
Set the SOE02 bit to 1 and enable data
output of the target channel.
Set the SS02 bit of the target channel to
1 to set SE02 = 1.
Set address and R/W to the SIO10
register (bits 7 to 0 of the SDR02
register) and start communication.
User's Manual U17854EJ9V0UD
tolerance) mode of the
DD
453

Advertisement

Table of Contents
loading

Table of Contents