Renesas Asynchronous SH7145F Manuel d'utilisateur Page 11

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 16
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16

Commentaires sur ces manuels

Pas de commentaire