
SH7145F
Multiprocessor Communications
REJ06B0358-0100O/Rev.1.00 March 2004 Page 12 of 17
(2) SCI0 Initialize Routine
No
Yes
Cancel SCI0 module standby status
Clear to 0 bits TIE, RIE, TE, RE, MPIE,
and TEIE in SCR_0
Select on-chip clock as clock source
using CKE1 and CKE0 in SCR_0
Using SMR_1, select asynchronous
mode, 8 data bits, no parity, 1 stop bit,
multiprocessor communication, and Pφ
as baud rate generator clock source
Using BRR_0, set communication
speed to 19,200 bps
Using DIR bit in SDCR_0, select
LSB-first communication
Using SCR_0, prohibit interrupts
Using PACRL2, set PA1 (pin 131) to
TXD function
Using TE bit in SCR_0, enable transmit
operation
init_sci()
RTE
Wait minimum
1-bit transfer time
Commentaires sur ces manuels