Renesas Asynchronous SH7145F Bedienungsanleitung Seite 11

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 16
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 10
SH7145F
Synchronous Serial Data Transmission
REJ06B0352-0100O/Rev.1.00 March 2004 Page 11 of 16
(2) SCI1 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_0, select synchronous
mode and Pφ as baud rate generator
clock source
Using BRR_0, set communication
speed to 250 kbps
Using DIR bit in SDCR_0, select
LSB-first communication
Using SCR_0, prohibit interrupts
Using PACRL2, set PA2 (pin 132) to
SCK function and PA1 (pin 131) to
TXD function
Using TE bit in SCR_0, enable transmit
operation
Wait minimum
1-bit transfer time
init_sci()
RTE
Seitenansicht 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16

Kommentare zu diesen Handbüchern

Keine Kommentare