Renesas Asynchronous SH7145F Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Redes Renesas Asynchronous SH7145F. SH7145F Multiprocessor Communications APPLICATION Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 17
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 0
1 2 3 4 5 6 ... 16 17

Indice de contenidos

Pagina 1 - Multiprocessor Communications

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

Pagina 2 - 1. Specifications

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

Pagina 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

Pagina 4

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

Pagina 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

Pagina 6 - 3. Operation

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

Pagina 7 - Table 4 Processing

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

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

Pagina 9

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

Pagina 10

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

Pagina 11 - 5. Flowcharts

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 16

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

Pagina 17

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

Comentarios a estos manuales

Sin comentarios