Renesas Single-Chip Microcomputer M38C89T-ADF Manuale Utente Pagina 102

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 138
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 101
Rev.1.00 May 22 2012
REJ09B0566
4-82
Library Reference
4.2.9 40BSerial Communication Interface R_SCI_Create
4
This function configures each SCI pin that is required for operation. It also disables the alternative modes
on those pins.
The wait time of 1 data bit period that is required during configuration is handled within this function.
Program example
/* PDL definitions */
#include r_pdl_sci.h
/* PDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* configure SCIF_3 in synchronous serial Mode. Configured it as a
transmitter with BAUD rate of 10,000 */
R_SCI_Create(3, PDL_SCI_SYNC | PDL_SCI_CLK_INT_OUT
|PDL_SCI_TX_CONNECTED ,
10000,2,0);
/* Configure SCI1 for asynchronous, 8N1, register values supplied */
R_SCI_Create(
1,
PDL_SCI_8N1,
PDL_SCI_PCLK_DIV_1 | PDL_SCI_CYCLE_BIT_16 | 0x50,
1,
0
);
}
Vedere la pagina 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 137 138

Commenti su questo manuale

Nessun commento