Renesas Asynchronous SH7145F Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Networking Renesas Asynchronous SH7145F. SH7145F Multiprocessor Communications APPLICATION Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 17
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 0
1 2 3 4 5 6 ... 16 17

Podsumowanie treści

Strona 1 - Multiprocessor Communications

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

Strona 2 - 1. Specifications

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

Strona 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

Strona 4

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

Strona 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

Strona 6 - 3. Operation

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

Strona 7 - Table 4 Processing

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

Strona 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)){

Strona 9

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

Strona 10

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

Strona 11 - 5. Flowcharts

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 16

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

Strona 17

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

Komentarze do niniejszej Instrukcji

Brak uwag