APPLICATION NOTEREJ06B0358-0100O/Rev.1.00 March 2004 Page 1 of 17SH7145FMultiprocessor CommunicationsSummaryThe SH7144 series is a single-chip micropr
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 10 of 17RegisterBitSet Value FunctionSMR_0 STOP 0 Stop bit length (enabl
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 11 of 175. Flowcharts(1) Main Routinemain()init_sci()trans_id()trans_dat
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 12 of 17(2) SCI0 Initialize RoutineNoYesCancel SCI0 module standby statu
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 13 of 17(3) Data Receive RoutineNoYesWrite transmit data to TDR_0Clear T
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 14 of 176. Program Listing/*********************************************
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 15 of 17while(1); /* LOOP */}/******************************************
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 16 of 17void trans_id(char num){while(!(P_SCI0.SSR_0.BYTE & 0x80)){
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 17 of 171. These materials are intended as a reference to assist our cus
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 2 of 171. SpecificationsAs shown in figure 1, asynchronous multiprocesso
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 3 of 172. Functions UsedIn this task example the SCI (Serial Communicati
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 4 of 17• On-Chip Peripheral Clock PφThis is the reference clock for oper
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 5 of 17• Bit Rate Register (BRR_0)This 8-bit register is used to adjust
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 6 of 173. OperationFigure 3 shows reception operation when the do not ID
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 7 of 170RXD0(pin)0IDRDRF(SSR_0 bit)MPB0(1)(2)(3)(4)(5)(6)(8)(9)(10)(11)M
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 8 of 174. Software(1) Module DescriptionsTable 5 lists the modules used
SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 9 of 17Table 7 On-Chip Register DescriptionsRegisterBitSet Value Functio
Commentaires sur ces manuels