Renesas MN4 Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Kraftschraubendreher Renesas MN4 herunter. Renesas MN4 Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 43
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
APPLICATION NOTE
R01AN0924EJ0100 Rev.1.00 Page 1 of 40
Feb 10, 2012
V850E2/MN4
CSIH Control
Introduction
This application note explains how to set up the CSIH (clocked three-wire serial interface) and also gives an outline of
the operation and describes the procedures for using a sample program. The sample program transmits and receives data
between the CSIH0 and CSIH3. The CSIH0 transmits data in master mode, while the CSIH3 receives data in slave
mode. The sample program uses two memory modes: direct access modes and dual buffer mode.
Target Device
V850E2/MN4 Microcontrollers
Contents
1. Overview ........................................................................................................................................... 2
2. Usage Environment........................................................................................................................... 8
3. Software ............................................................................................................................................ 9
4. Sample Application.......................................................................................................................... 10
R01AN0924EJ0100
Rev.1.00
Feb 10, 2012
Seitenansicht 0
1 2 3 4 5 6 ... 42 43

Inhaltsverzeichnis

Seite 1 - V850E2/MN4

APPLICATION NOTE R01AN0924EJ0100 Rev.1.00 Page 1 of 40 Feb 10, 2012 V850E2/MN4 CSIH Control Introduction This application note explains how t

Seite 2 - 1. Overview

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 10 of 40 Feb 10, 2012 4. Sample Application This section explains how to set up the CSIH

Seite 3

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 11 of 40 Feb 10, 2012 4.1.2 Master Direct-Access Transmit-Only Mode Master direct-acce

Seite 4

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 12 of 40 Feb 10, 2012 4.1.3 Slave Direct-Access Receive-Only Mode Slave direct-access

Seite 5

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 13 of 40 Feb 10, 2012 4.1.4 Master Dual-Buffer Transmit-Only Mode Master dual-buffer t

Seite 6 - 1.3 Interrupt Enabling

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 14 of 40 Feb 10, 2012 4.1.5 Slave Dual-Buffer Receive-Only Mode Slave dual-buffer recei

Seite 7 - 1.4 Main Loop Processing

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 15 of 40 Feb 10, 2012 4.1.6 Communication Error Interrupt Processing If a communication

Seite 8 - 2.2 Development Environment

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 16 of 40 Feb 10, 2012 4.2 Register Setup This section explains how to set up the relevan

Seite 9 - 3.1 File Organization

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 17 of 40 Feb 10, 2012 4.2.2 CSIH Control Register 2 (CSIHnCTL2) The CSIHnCTL2 register

Seite 10 - 4.1 Flow Charts

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 18 of 40 Feb 10, 2012 Setting example CSIHnCTL2 = 0x2104; /* master mode;

Seite 11

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 19 of 40 Feb 10, 2012 4.2.3 CSIH Control Register 0 (CSIHnCTL0) The CSIHnCTL0 register

Seite 12

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 2 of 40 Feb 10, 2012 1. Overview This application note explains the following four opera

Seite 13

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 20 of 40 Feb 10, 2012 Figure 4.9 CSIHnCTL0 Register Format (2/2) CSIHnCTL0 = 0x00;

Seite 14

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 21 of 40 Feb 10, 2012 4.2.4 CSIH Control Register 1 (CSIHnCTL1) The CSIHnCTL1 register

Seite 15

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 22 of 40 Feb 10, 2012 Figure 4.11 CSIHnCTL1 Register Format (2/3)

Seite 16 - 4.2 Register Setup

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 23 of 40 Feb 10, 2012 Figure 4.12 CSIHnCTL1 Register Format (3/3) CSIHnCTL1 = 0x00010

Seite 17

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 24 of 40 Feb 10, 2012 4.2.5 CSIH Configuration Register x (CSIHnCFGx) The CSIHnCFGx reg

Seite 18

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 25 of 40 Feb 10, 2012 Figure 4.14 CSIHnCFGx Register Format (2/5)

Seite 19

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 26 of 40 Feb 10, 2012 Figure 4.15 CSIHnCFGx Register Format (3/5)

Seite 20

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 27 of 40 Feb 10, 2012 Figure 4.16 CSIHnCFGx Register Format (4/5)

Seite 21

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 28 of 40 Feb 10, 2012 Figure 4.17 CSIHnCFGx Register Format (5/5) CSIHnCFG0 = 0x0800

Seite 22

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 29 of 40 Feb 10, 2012 4.2.6 CSIH Memory Control Register 0 (CSIHnMCTL0) The CSIHnMCTL0

Seite 23

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 3 of 40 Feb 10, 2012 The main points in slave dual-buffer receive-only mode are illustra

Seite 24

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 30 of 40 Feb 10, 2012 4.2.7 CSIH Status Clear Register 0 (CSIHnSTCR0) The CSIH can dete

Seite 25

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 31 of 40 Feb 10, 2012 /* Clear status flags to 0 */ CSIHnTMOEC = 1; /* Clear timeout

Seite 26

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 32 of 40 Feb 10, 2012 4.3 Memory Modes The CSIH supports FIFO mode, dual buffer mode, tr

Seite 27

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 33 of 40 Feb 10, 2012 4.4 Function Specifications This section describes the specifica

Seite 28

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 34 of 40 Feb 10, 2012 [Function Name] hbus_initial() [Function] Initializes the AHB

Seite 29

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 35 of 40 Feb 10, 2012 [Function Name] display() [Function] Controls the LEDs accordi

Seite 30

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 36 of 40 Feb 10, 2012 [Function Name] csih_receive_2_initial() [Function] The CSIH3

Seite 31

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 37 of 40 Feb 10, 2012 [Function Name] csih_transmit_2_initial() [Function] The CSIH0

Seite 32 - 4.3 Memory Modes

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 38 of 40 Feb 10, 2012 4.4.5 Interrupt Processing (interrupt.c) [Function Name] int_csi

Seite 33

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 39 of 40 Feb 10, 2012 [Function Name] int_csih3ire() [Function] Processes CSIH3 macr

Seite 34

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 4 of 40 Feb 10, 2012 The main points in master direct-access transmit-only mode (Job mod

Seite 35

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 40 of 40 Feb 10, 2012 Website and Support Renesas Electronics Website http://www.renesa

Seite 36

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

Seite 37

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

Seite 38

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

Seite 39

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 5 of 40 Feb 10, 2012 The main points in slave direct-access receive-only mode are illust

Seite 40 - Website and Support

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 6 of 40 Feb 10, 2012 The basic communication specifications are shown below. Memory mode

Seite 41 - Revision Record

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 7 of 40 Feb 10, 2012 1.4 Main Loop Processing • The operation of data transfer via the

Seite 42

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 8 of 40 Feb 10, 2012 2. Usage Environment This section provides the circuit diagram and

Seite 43 - SALES OFFICES

V850E2/MN4 CSIH Control R01AN0924EJ0100 Rev.1.00 Page 9 of 40 Feb 10, 2012 3. Software This section describes the organization of the compress

Kommentare zu diesen Handbüchern

Keine Kommentare