BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
673 / 1149
Rev.1.02
(2) Procedure
Figure 19-87
Initial setup steps for slave sending and receiving
initial configuration starts
configure PER0 register
configure SPSm register
configure SMRmn register
configure SCRmn register
configure SDRmn register
configure SOm register
Modifing SOEm register
configuration
configure port
write into SSm register
initial configuration completes
release universal serial communication unit
from reset state, start providing clock.
configure operational clock
configure operational mode..etc.
configure communication format
set baud rate (bit15~9) to "0000000B"
configure serial data (Somn) initial output
voltage
set SOEmn bit to 1, enable data output of
target channel
via Configure port register and port mode
register, data output of target channel set to
valid. When connecting to multiple slave
devices, configure N-channel open drain
before configure data output.
set SSmn bit of target channel to "1"
(SEmn=1, configure to enable operation
state).
initial configuration completes. Configure transmit
data to SIOp register (bit 7~0 of SDRmn register),
wait for master device clock.
write into ISC register
set SSIE00 bit to 1, enable channel 0 slave
selection function operates.
Note that the SIOp
register must be set to send data before the master device starts to output
the clock. Note
m:
Unit number (m=0)n: Channel number (n=0)p:SSPI
number (p=00
)