Renesas Asynchronous SH7145F Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Mise en réseau Renesas Asynchronous SH7145F. SH7145F Multiprocessor Communications APPLICATION Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 17
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
APPLICATION NOTE
REJ06B0358-0100O/Rev.1.00 March 2004 Page 1 of 17
SH7145F
Multiprocessor Communications
Summary
The SH7144 series is a single-chip microprocessor based on the SH-2 RISC (Reduced Instruction
Set Computer) CPU core and integrating a number of peripheral functions.
This application note describes asynchronous multiprocessor communications using the SCI
(Serial Communication Interface) module of the SH7145F. It is intended to be used as reference
by users designing software applications.
The program examples contained in this application note have been tested. However, operation
should be confirmed before using them in an actual application.
Device for Which Operation Has Been Confirmed
SH7145F
Contents
1. Specifications ................................................................................................ 2
2. Functions Used ............................................................................................. 3
3. Operation....................................................................................................... 6
4. Software ........................................................................................................ 8
5. Flowcharts..................................................................................................... 11
6. Program Listing ............................................................................................. 14
Vue de la page 0
1 2 3 4 5 6 ... 16 17

Résumé du contenu

Page 1 - Multiprocessor Communications

APPLICATION NOTEREJ06B0358-0100O/Rev.1.00 March 2004 Page 1 of 17SH7145FMultiprocessor CommunicationsSummaryThe SH7144 series is a single-chip micropr

Page 2 - 1. Specifications

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 10 of 17RegisterBitSet Value FunctionSMR_0 STOP 0 Stop bit length (enabl

Page 3 - 2. Functions Used

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 11 of 175. Flowcharts(1) Main Routinemain()init_sci()trans_id()trans_dat

Page 4

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 12 of 17(2) SCI0 Initialize RoutineNoYesCancel SCI0 module standby statu

Page 5 - • Bit Rate Register (BRR_0)

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 13 of 17(3) Data Receive RoutineNoYesWrite transmit data to TDR_0Clear T

Page 6 - 3. Operation

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 14 of 176. Program Listing/*********************************************

Page 7 - Table 4 Processing

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 15 of 17while(1); /* LOOP */}/******************************************

Page 8 - 4. Software

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 16 of 17void trans_id(char num){while(!(P_SCI0.SSR_0.BYTE & 0x80)){

Page 9

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 17 of 171. These materials are intended as a reference to assist our cus

Page 10

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 2 of 171. SpecificationsAs shown in figure 1, asynchronous multiprocesso

Page 11 - 5. Flowcharts

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 3 of 172. Functions UsedIn this task example the SCI (Serial Communicati

Page 12 - (2) SCI0 Initialize Routine

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 4 of 17• On-Chip Peripheral Clock PφThis is the reference clock for oper

Page 13 - (4) Data Transfer Routine

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

Page 14 - 6. Program Listing

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 6 of 173. OperationFigure 3 shows reception operation when the do not ID

Page 15

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

Page 16

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 8 of 174. Software(1) Module DescriptionsTable 5 lists the modules used

Page 17

SH7145FMultiprocessor CommunicationsREJ06B0358-0100O/Rev.1.00 March 2004 Page 9 of 17Table 7 On-Chip Register DescriptionsRegisterBitSet Value Functio

Commentaires sur ces manuels

Pas de commentaire