Renesas Asynchronous SH7145F Instrukcja Użytkownika Strona 11

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 16
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16

Komentarze do niniejszej Instrukcji

Brak uwag