Renesas Asynchronous SH7145F Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Vernetzung Renesas Asynchronous SH7145F herunter. SH7145 Group Application Note SCI Break Detection Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 20
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
APPLICATION NOTE
REJ06B0384-0100Z/Rev.1.00 September 2004 Page 1 of 20
SH7145 Group
SCI Break Detection
Introduction
This application note discusses break detection during asynchronous communication using the SH7145F's SCI (Serial
Communication Interface) module.
Target Device
SH7145F
Contents
1. Specifications.................................................................................................................................... 2
2. Description of Functions ................................................................................................................... 3
3. Description of Operation ................................................................................................................... 6
4. Description of Software..................................................................................................................... 7
5. Flowchart......................................................................................................................................... 10
6. Program Listing............................................................................................................................... 15
Seitenansicht 0
1 2 3 4 5 6 ... 19 20

Inhaltsverzeichnis

Seite 1 - SH7145 Group

APPLICATION NOTE REJ06B0384-0100Z/Rev.1.00 September 2004 Page 1 of 20 SH7145 Group SCI Break Detection Introduction This application note discusses

Seite 2 - 1. Specifications

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 10 of 20 5. Flowchart 5.1 Main Routine main ()init_sci () Initialize t

Seite 3 - 2. Description of Functions

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 11 of 20 5.2 SCI Routine init_sci ()returnCancel the module standby st

Seite 4

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 12 of 20 5.3 Receive Routine rcv_sci ()returnbreakReceived data transf

Seite 5

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 13 of 20 5.4 Error Processing Routine err ()returnOverrun error?NoYes

Seite 6 - 3. Description of Operation

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 14 of 20 5.5 CMT0 Interrupt Routine cmt_int ()returnStop counting by

Seite 7 - 4.2 Internal Registers

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 15 of 20 6. Program Listing /*****************************************

Seite 8

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 16 of 20 /************************************************************

Seite 9

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 17 of 20 /* Initialize SCI asynchronous mode */ P_SCI0.SCR_0.B

Seite 10 - 5.1 Main Routine

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 18 of 20 /************************************************************

Seite 11 - 5.2 SCI Routine

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 19 of 20 Revision Record Description Rev. Date Page Summary 1.00 Se

Seite 12 - 5.3 Receive Routine

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 2 of 20 1. Specifications As shown in figure 1, break detection is per

Seite 13

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 20 of 20 1. These materials are intended as a reference to assist our

Seite 14 - 5.5 CMT0 Interrupt Routine

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 3 of 20 2. Description of Functions In this sample task, the SCI (Ser

Seite 15 - 6. Program Listing

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 4 of 20 • In asynchronous mode, serial data communication is performe

Seite 16

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 5 of 20 2.2 Compare-Match Timer (CMT) The CMT generates an interrupt

Seite 17

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 6 of 20 3. Description of Operation Figure 4 shows the operation duri

Seite 18

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 7 of 20 4. Description of Software 4.1 Modules Table 4 describes the

Seite 19 - Revision Record

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 8 of 20 Table 6 Description of Internal Registers (2) Register Name B

Seite 20

SH7145 Group SCI Break Detection REJ06B0384-0100Z/Rev.1.00 September 2004 Page 9 of 20 Table 7 Description of Internal Registers (3) Register Name B

Kommentare zu diesen Handbüchern

Keine Kommentare