![Renesas Asynchronous SH7145F Скачать руководство пользователя страница 8](http://html1.mh-extra.com/html/renesas/asynchronous-sh7145f/asynchronous-sh7145f_application-note_1439948008.webp)
SH7145F
Asynchronous Serial Data Transmission/Reception
REJ06B0357-0100O/Rev.1.00
March 2004
Page 8 of 17
4.
Software
(1) Module Descriptions
Table 4 lists the modules used in the task example.
Table 4
Module Descriptions
Module
Label
Function
Main routine
main
Calls modules
SCI routine
init_sci
Initial settings of SCI1
Receive routine
rcv_sci
Receives serial data
Transmit routine
trans_sci
Transmits serial data
Error handling
err_int
Handles receive errors
(2) Argument Descriptions
Table 5 lists the arguments used in the task example.
Table 5
Argument Descriptions
Argument
Function
Module
Rev_data[0–2]
Stores SCI_1 receive data
Receive routine
trans_data
Transmits data from SCI_1
Transmit routine
(3) On-Chip Register Descriptions
Table 6 lists the on-chip registers used in the task example. The set values shown are the values
used in the task example and differ from the initial settings.