Renesas MN4 Dokumentacja

Przeglądaj online lub pobierz Dokumentacja dla Wkrętarki elektryczne Renesas MN4. Renesas MN4 Specifications Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 33
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
APPLICATION NOTE
R01AN0926EJ0100 Rev.1.00 Page 1 of 30
Feb 07, 2012
V850E2/MN4
UARTJ Control
Introduction
This application note explains how to set up the UARTJ serial interface (with FIFO) and also gives an outline of the
operation and describes the procedures for using a sample program. The sample program sets the baud rate to 19200 bps
and executes serial communication between the UARTJ1 and the UARTJ3. The UARTJ1 transmits data and the
UARTJ3 receives the data. The internal RAM has a 16-byte user transmit array and a 16-byte user receive array.
Target Device
V850E2/MN4 Microcontrollers
Contents
1. Overview ........................................................................................................................................... 2
2. Usage Environment........................................................................................................................... 5
3. Software ............................................................................................................................................ 6
4. Sample Application............................................................................................................................ 7
R01AN0926EJ0100
Rev.1.00
Feb 07, 2012
Przeglądanie stron 0
1 2 3 4 5 6 ... 32 33

Podsumowanie treści

Strona 1 - V850E2/MN4

APPLICATION NOTE R01AN0926EJ0100 Rev.1.00 Page 1 of 30 Feb 07, 2012 V850E2/MN4 UARTJ Control Introduction This application note explains how to

Strona 2 - 1. Overview

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 10 of 30 Feb 07, 2012 4.1.4 Transmit/Receive Control Processing When transmit data is w

Strona 3

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 11 of 30 Feb 07, 2012 4.1.5 Status Interrupt Processing A status interrupt request occu

Strona 4 - 1.2 UARTJ Setup

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 12 of 30 Feb 07, 2012 4.2 Register Setup This section explains how to set up the relevan

Strona 5 - 2.2 Development Environment

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 13 of 30 Feb 07, 2012 4.2.2 UARTJn Control Register 2 (URTJnCTL2) The UARTJnCTL2 regist

Strona 6 - 3.1 File Organization

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 14 of 30 Feb 07, 2012 Setting example URTJnCTL2 = 0x60D9; /* Assume that PCLK is set

Strona 7 - 4.1 Flow Charts

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 15 of 30 Feb 07, 2012 4.2.3 UARTJn Control Register 0 (URTJnCTL0) The UARTJnCTL0 regist

Strona 8

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 16 of 30 Feb 07, 2012 Figure 4.8 URTJnCTL0 Register Format (2/2) Setting examples URT

Strona 9

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 17 of 30 Feb 07, 2012 4.2.4 UARTJn Control Register 1 (URTJnCTL1) The UARTJnCTL1 regist

Strona 10 - V850E2/MN4 UARTJ Control

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 18 of 30 Feb 07, 2012 Figure 4.10 URTJnCTL1 Register Format (2/3)

Strona 11

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 19 of 30 Feb 07, 2012 Figure 4.11 URTJnCTL1 Register Format (3/3) Setting example: U

Strona 12 - 4.2 Register Setup

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 2 of 30 Feb 07, 2012 1. Overview This application note illustrates the usage examples of

Strona 13

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 20 of 30 Feb 07, 2012 4.2.5 FIFO Control Register 0 (URTJnFCTL0) The URTJnFCTL0 registe

Strona 14

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 21 of 30 Feb 07, 2012 4.2.6 FIFO Control Register 1 (URTJnFCTL1) The URTJnFCTL1 registe

Strona 15

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 22 of 30 Feb 07, 2012 4.2.7 UARTJn Status Clear Register 0 (URTJnSTC) The error flags i

Strona 16

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 23 of 30 Feb 07, 2012 4.2.8 FIFO Status Clear Register (URTJnFSTC) The error flags in U

Strona 17

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 24 of 30 Feb 07, 2012 4.3 Function Specifications This section describes the specifica

Strona 18

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 25 of 30 Feb 07, 2012 [Function Name] hbus_initial() [Function] Initializes the AHB

Strona 19

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 26 of 30 Feb 07, 2012 [Function Name] wait() [Function] Waits for a certain number o

Strona 20

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 27 of 30 Feb 07, 2012 4.3.4 Transmit Processing (uartj_transmit.c) [Function Name] urt

Strona 21

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 28 of 30 Feb 07, 2012 4.3.5 Interrupt Processing (interrupt.c) [Function Name] int_urt

Strona 22

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 29 of 30 Feb 07, 2012 [Function Name] int_urtj3ire () [Function] Processes the UARTJ

Strona 23

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 3 of 30 Feb 07, 2012 The basic communication specifications are shown below. Receive I/F

Strona 24

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 30 of 30 Feb 07, 2012 Website and Support Renesas Electronics Website http://www.renesas

Strona 25

A-1 Revision Record Description Rev. Date Page Summary 1.00 Feb 07, 2012 — First edition issued

Strona 26

General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed

Strona 27

Notice1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chan

Strona 28

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 4 of 30 Feb 07, 2012 1.1 Initialization The general registers and functional pins are in

Strona 29

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 5 of 30 Feb 07, 2012 2. Usage Environment This section provides the circuit diagram and

Strona 30 - Website and Support

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 6 of 30 Feb 07, 2012 3. Software This section describes the file organization of the sam

Strona 31 - Revision Record

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 7 of 30 Feb 07, 2012 4. Sample Application This section explains how to set up the UARTJ

Strona 32

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 8 of 30 Feb 07, 2012 4.1.2 Receive Interrupt Processing When data is received via the U

Strona 33 - SALES OFFICES

V850E2/MN4 UARTJ Control R01AN0926EJ0100 Rev.1.00 Page 9 of 30 Feb 07, 2012 4.1.3 Transmit Interrupt Processing If the fill stage of the trans

Komentarze do niniejszej Instrukcji

Brak uwag