English
Language : 

SH7136_09 Datasheet, PDF (11/22 Pages) Renesas Technology Corp – SCI Clock Synchronous Simultaneous Transmit and Receive of Serial Data and DTC Data Transfer
SH7136/SH7137 Group
SCI Clock Synchronous Simultaneous Transmit and
Receive of Serial Data and DTC Data Transfer
2.3 Configuration of the Sample Program
2.3.1 Description of Functions
Table 5 lists the modules used in the reference program.
Table 5 Functions Used
Function Name
Main
Label
main ()
Module standby setting
DTC initial setting
RFC initial setting
RXI0 interrupt
TXI0 interrupt
ERI0 interrupt
stbcr_init ()
dtc_init()
pfc_init ()
int_sci_rxi()
int_sci_txi()
int_sci_eri()
Description
Makes initial settings for each module. Makes initial
settings for the data transfer controller (DTC) and serial
communication interface (SCI). Enables SCI
simultaneous transmit and receive operation.
Cancels module standby settings (SCI ch0, DTC).
Makes DTC initial settings for SCI (ch0) transmit and
SCI (ch0) receive.
Makes pin function controller (PFC) initial settings. Sets
SCI-related pins to function as serial pins.
SCI (ch0) receive data full (RDRF) interrupt (RXI).
Generated when DTC data transfer ends.
SCI (ch0) transmit data empty (TDRE) interrupt (TXI).
Generated when DTC data transfer ends.
Receive error (ORER) interrupt (ERI). Processing when
an overrun error occurs.
2.3.2 Variables Usage
Table 6 lists the variables used in the reference program.
Table 6 Variables Usage
Label Name
Rxi_data[32]
Txi_data[32]
DTC_RXI0
DTC_TXI0
*Dtc_Vect_rxi0
*Dtc_vect_txi0
Description
Array for storing SCI receive data
Array for storing SCI transmit data
Structure variable for storing DTC transfer information
settings for SCI receive. Allocated in on-chip RAM.
Structure variable for storing DTC transfer information
settings for SCI transmit. Allocated in on-chip RAM.
Pointer variable for storing the start address of the DTC
transfer information (structure variable DTC_RXI0). Allocated
at the DTC vector table address (on-chip RAM)
corresponding to DTC activation source RXI_0.
Pointer variable for storing the start address of the DTC
transfer information (structure variable DTC_TXI0). Allocated
at the DTC vector table address (on-chip RAM)
corresponding to DTC activation source TXI_0.
Name of
Employing Module
main ()
dtc_init()
dtc_init()
dtc_init()
REJ06B0890-0100/Rev.1.00
July 2009
Page 11 of 22