Renesas Asynchronous SH7145F Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Nie Renesas Asynchronous SH7145F. Renesas Asynchronous SH7145F User's Manual 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
REJ06B0357-0100O/Rev.1.00 March 2004 Page 1 of 17
SH7145F
Asynchronous Serial Data Transmission/Reception
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 serial data transmission/reception 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 - APPLICATION NOTE

APPLICATION NOTEREJ06B0357-0100O/Rev.1.00 March 2004 Page 1 of 17SH7145FAsynchronous Serial Data Transmission/ReceptionSummaryThe SH7144 series is a s

Strona 2 - 1. Specifications

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 10 of 17RegisterBitSet Value FunctionSMR_1 MP 0 Multip

Strona 3 - 2 Functions Used

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 11 of 175. Flowcharts(1) Main Routinemain()init_sci()r

Strona 4

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 12 of 17(2) SCI1 Initialize RoutineNoYesCancel SCI1 mo

Strona 5 - • Bit Rate Register (BRR_1)

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 13 of 17(3) Data Receive RoutineNoYesRead receive data

Strona 6 - 3. Operation

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 14 of 176. Program Listing/***************************

Strona 7 - Table 3 Processing

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 15 of 17Function : init_sciOperation : Initialize seri

Strona 8 - 4. Software

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 16 of 17P_SCI1.SSR_1.BIT.RDRF = 0; /* Clear RDRF */tra

Strona 9

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 17 of 171. These materials are intended as a reference

Strona 10

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 2 of 171. SpecificationsAs shown in figure 1, asynchro

Strona 11 - 5. Flowcharts

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 3 of 172 Functions UsedIn this task example the SCI (S

Strona 12 - (2) SCI1 Initialize Routine

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 4 of 17• On-Chip Peripheral Clock PφThis is the refere

Strona 13 - (4) Data Transfer Routine

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 5 of 17• Bit Rate Register (BRR_1)This 8-bit register

Strona 14 - 6. Program Listing

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 6 of 173. OperationFigure 3 shows the operation of asy

Strona 15

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 7 of 17Table 3 ProcessingSoftware Processing Hardware

Strona 16

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 8 of 174. Software(1) Module DescriptionsTable 4 lists

Strona 17

SH7145FAsynchronous Serial Data Transmission/ReceptionREJ06B0357-0100O/Rev.1.00 March 2004 Page 9 of 17Table 6 On-Chip Register DescriptionsRegisterBi

Komentarze do niniejszej Instrukcji

Brak uwag