Renesas Asynchronous SH7145F Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 18
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
SH7145F
Asynchronous Serial Data Transmission
REJ06B0355-0100O/Rev.1.00 March 2004 Page 11 of 16
(2) SCI1 Initialize Routine
No
Yes
Cancel SCI1 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,
and Pφ as baud rate generator clock
source
Using BRR_1, set communication
speed to 19,200 bps
Using DIR bit in SDCR_1, select
LSB-first communication
Using SCR_1, prohibit interrupts
Using PACRL2, set PA4 (pin 134) to
TXD function
Using TE bit in SCR_1, enable transmit
operation
Wait minimum
1-bit transfer time
init_sci()
RTE
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18

Kommentare zu diesen Handbüchern

Keine Kommentare