Instruction/ maintenance manual of the product Asynchronous SH7145F Renesas
Go to page of 17
APPLICATION NOTE REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 1 of 17 SH7145F Asynchronou s Serial Data Transmission/Re ception Summary The SH7144 se ries is a sin gle-chip m icroprocessor based on t he SH-2 RISC (Reduced In struction Set Com puter) CPU core and inte grating a num ber of peripheral funct ions.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 2 of 17 1. Specifications As shown in figure 1, asynchronous serial data transmission is performed using channel 1 (ch1) of the SCI module of the SH7145F.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 3 of 17 2 Functions Used In this task example the SCI (Serial Communication Interface) is used to perform asynchronous serial data transmission /reception.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 4 of 17 • On-C hip Pe rip her al Clo ck P φ This is the reference clock for ope ration of on-chip peripheral functions. T he clock signal is generated b y a clock oscil lator.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 5 of 17 • Bit Rate Register ( BRR_1 ) This 8 -bit r egiste r is use d to a dj ust the bi t rate . T he SCI ha s indep end ent b aud r ate gene rat ors for the individu al channels, allo wing differen t bit rates to be set for each.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 6 of 17 3. Operation Figure 3 s hows the operat ion of asy nchron ous mode data t ransmiss ion in the task exam ple. To help explain figure 3, table 3 lists the software and hard ware processing that is perfor med.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 7 of 17 Table 3 Processing Software Processing Hardware Process ing (1) — RSR_1 receives seri al.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 8 of 17 4. Soft w are (1) Module Descriptions Table 4 lists the mod ules used in the task e xample.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 9 of 17 Table 6 On-Chip Register Descrip tions Register Bit Set Value Function MSTCR1 MSTP17 0 Mod.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 10 of 17 Register Bit Set Value Function SMR_1 MP 0 Multiprocess or mode (enabled in asynchronous .
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 11 of 17 5. Flowcharts (1) Main Routine main() init_sci() rcv_sci() rcv_sci() rcv_sci() Initialize.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 12 of 17 (2) SCI1 Initialize Routine No Ye s Cancel SCI1 module standby status Clear to 0 bits TIE.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 13 of 17 (3) Data Re ceive Rou tine No Ye s Read receive data from RDR_1 and store it in on-chip R.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 14 of 17 6. Program List ing /**************************************************************/ /* SH7145F Application Note */ /* */ /* Function */ /* :SCI1 */ /* */ /* External input clock : 12.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 15 of 17 Function : init_sci Operation : Initialize serial (sci1) Asynchronous receive operation -.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 16 of 17 P_SCI1.SSR_1.BIT.RDRF = 0; /* Clear RDRF */ trans_sci(Rev_data[rev_count]); /* Transmit r.
SH7145F Asynchronous Serial Da ta Transmission/ Reception REJ06B0357-0 100O/Rev.1.0 0 March 2004 Page 17 of 17 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp.
An important point after buying a device Renesas Asynchronous SH7145F (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Renesas Asynchronous SH7145F yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Renesas Asynchronous SH7145F - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Renesas Asynchronous SH7145F you will learn all the available features of the product, as well as information on its operation. The information that you get Renesas Asynchronous SH7145F will certainly help you make a decision on the purchase.
If you already are a holder of Renesas Asynchronous SH7145F, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Renesas Asynchronous SH7145F.
However, one of the most important roles played by the user manual is to help in solving problems with Renesas Asynchronous SH7145F. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Renesas Asynchronous SH7145F along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center