Renesas MN4 Uživatelský manuál Strana 1

Procházejte online nebo si stáhněte Uživatelský manuál pro Výkonové šroubováky Renesas MN4. Renesas MN4 User manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 57
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
APPLICATION NOTE
R01AN0922EJ0100 Rev.1.00 Page 1 of 54
Jan 13, 2012
V850E2/MN4
Timer Array Unit Control
Introduction
This application note explains how to set up the 16-bit timer array unit A (TAUA) and 32-bit timer array unit J (TAUJ)
and also gives an outline of the operation and describes the procedure for using a sample program. The sample program
makes the TAUA generate the PWM signal and output the signal to the TAUJ and makes the TAUJ measure the width
of the signal input from the TAUA.
Target Device
V850E2/MN4 Microcontrollers
Contents
1. Overview ........................................................................................................................................... 2
2. Usage Environment........................................................................................................................... 3
3. Software ............................................................................................................................................ 4
4. Sample Application............................................................................................................................ 5
R01AN0922EJ0100
Rev.1.00
Jan 13, 2012
Zobrazit stránku 0
1 2 3 4 5 6 ... 56 57

Shrnutí obsahu

Strany 1

APPLICATION NOTE R01AN0922EJ0100 Rev.1.00 Page 1 of 54 Jan 13, 2012 V850E2/MN4 Timer Array Unit Control Introduction This application note expl

Strany 2 - 1.3 TAUJ Setup

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 10 of 54 Jan 13, 2012 4.4 Register Setup This section explains how to set up

Strany 3 - 2.1 Circuit Diagram

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 11 of 54 Jan 13, 2012 4.4.2 TAUAn Prescaler Registers • TAUAn prescaler clo

Strany 4 - 3.1 File Organization

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 12 of 54 Jan 13, 2012 Figure 4.8 TAUAnTPS Register Format (2/4)

Strany 5 - 4.1 Flow Charts

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 13 of 54 Jan 13, 2012 Figure 4.9 TAUAnTPS Register Format (3/4)

Strany 6

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 14 of 54 Jan 13, 2012 Figure 4.10 TAUAnTPS Register Format (4/4) Setting

Strany 7 - 4.2 Details of TAUA Setup

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 15 of 54 Jan 13, 2012 4.4.3 TAUAn Control Registers • TAUAn channel data re

Strany 8

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 16 of 54 Jan 13, 2012 • TAUAn channel counter register (TAUAnCNTm) This regi

Strany 9 - 4.3 Details of TAUJ Setup

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 17 of 54 Jan 13, 2012 Figure 4.13 TAUAnCNTm Register Format (2/2)

Strany 10 - 4.4 Register Setup

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 18 of 54 Jan 13, 2012 • TAUAn channel mode OS register (TAUAnCMORm) This reg

Strany 11

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 19 of 54 Jan 13, 2012 Figure 4.15 TAUAnCMORm Register Format (2/4)

Strany 12

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 2 of 54 Jan 13, 2012 1. Overview This application note illustrates the usage

Strany 13 - Jan 13, 2012

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 20 of 54 Jan 13, 2012 Figure 4.16 TAUAnCMORm Register Format (3/4)

Strany 14

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 21 of 54 Jan 13, 2012 Figure 4.17 TAUAnCMORm Register Format (4/4)

Strany 15

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 22 of 54 Jan 13, 2012 Setting examples TAUA1CMOR0 = 0x0801; /* CK0, mast

Strany 16

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 23 of 54 Jan 13, 2012 Figure 4.18 TAUAnTS Register Format Setting exampl

Strany 17

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 24 of 54 Jan 13, 2012 • TAUAn channel enable status register (TAUAnTE) This

Strany 18

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 25 of 54 Jan 13, 2012 • TAUAn channel stop trigger register (TAUAnTT) This r

Strany 19

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 26 of 54 Jan 13, 2012 4.4.4 TAUAn Output Registers • TAUAn channel output en

Strany 20

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 27 of 54 Jan 13, 2012 • TAUAn channel output mode register (TAUAnTOM) This r

Strany 21

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 28 of 54 Jan 13, 2012 • TAUAn channel output configuration register (TAUAnTO

Strany 22

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 29 of 54 Jan 13, 2012 • TAUAn channel dead time output enable register (TAUA

Strany 23

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 3 of 54 Jan 13, 2012 2. Usage Environment This section explains the circuit d

Strany 24

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 30 of 54 Jan 13, 2012 • TAUAn channel real-time output enable register (TAUA

Strany 25

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 31 of 54 Jan 13, 2012 4.4.5 TAUAn Channel Output Level Registers • TAUAn ch

Strany 26 - 4.4.4 TAUAn Output Registers

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 32 of 54 Jan 13, 2012 4.4.6 TAUAn Simultaneous Rewrite Registers • TAUAn ch

Strany 27

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 33 of 54 Jan 13, 2012 • TAUAn channel reload data control channel select reg

Strany 28

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 34 of 54 Jan 13, 2012 • TAUAn channel reload data mode register (TAUAnRDM) T

Strany 29

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 35 of 54 Jan 13, 2012 4.4.7 TAUJn Prescaler Registers • TAUJn prescaler clo

Strany 30

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 36 of 54 Jan 13, 2012 Figure 4.31 TAUJnTPS Register Format (2/3)

Strany 31

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 37 of 54 Jan 13, 2012 Figure 4.32 TAUJnTPS Register Format (3/3) Setting

Strany 32

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 38 of 54 Jan 13, 2012 4.4.8 TAUJn Control Registers • TAUJn channel data re

Strany 33

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 39 of 54 Jan 13, 2012 • TAUJn channel counter register (TAUJnCNTm) This regi

Strany 34

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 4 of 54 Jan 13, 2012 3. Software This section describes the file organization

Strany 35

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 40 of 54 Jan 13, 2012 Figure 4.35 TAUJnCNTm read values

Strany 36

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 41 of 54 Jan 13, 2012 • TAUJn channel mode OS register (TAUJnCMORm) This reg

Strany 37

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 42 of 54 Jan 13, 2012 Figure 4.37 TAUJnCMORm Register Format (2/3)

Strany 38

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 43 of 54 Jan 13, 2012 Figure 4.38 TAUJnCMORm Register Format (3/3) Setti

Strany 39

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 44 of 54 Jan 13, 2012 • TAUJn channel mode user register (TAUJnCMURm) This r

Strany 40

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 45 of 54 Jan 13, 2012 • TAUJn channel status register (TAUJnCSRm) This regi

Strany 41

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 46 of 54 Jan 13, 2012 • TAUJn channel status clear register (TAUJnCSCm) This

Strany 42

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 47 of 54 Jan 13, 2012 • TAUJn channel start trigger register (TAUJnTS) This

Strany 43

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 48 of 54 Jan 13, 2012 • TAUJn channel enable status register (TAUJnTE) This

Strany 44

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 49 of 54 Jan 13, 2012 • TAUJn channel stop trigger register (TAUJnTT) This r

Strany 45

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 5 of 54 Jan 13, 2012 4. Sample Application This section explains how to set u

Strany 46

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 50 of 54 Jan 13, 2012 4.4.9 TAUJn Output Registers • TAUJn channel output e

Strany 47

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 51 of 54 Jan 13, 2012 4.4.10 TAUJn Channel Output Level Registers • TAUJn c

Strany 48

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 52 of 54 Jan 13, 2012 4.5 Function Specifications This section describes th

Strany 49

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 53 of 54 Jan 13, 2012 4.5.4 Timer Array Unit J Control (tauj_control.c) [Fun

Strany 50

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 54 of 54 Jan 13, 2012 Website and Support Renesas Electronics Website http:/

Strany 51

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

Strany 52 - 4.5.1 Main (main.c)

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

Strany 53

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

Strany 54 - Website and Support

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 6 of 54 Jan 13, 2012 4.1.2 Interrupt Processing Flow The INTTUAJ0I0 interrup

Strany 55 - Revision Record

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 7 of 54 Jan 13, 2012 4.2 Details of TAUA Setup In this sample program, the T

Strany 56

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 8 of 54 Jan 13, 2012 Slave channel: Positive logic (TAUAnTOL.TAUAnTOLm = 0)

Strany 57 - Colophon 1.1

V850E2/MN4 Timer Array Unit Control R01AN0922EJ0100 Rev.1.00 Page 9 of 54 Jan 13, 2012 4.3 Details of TAUJ Setup In this sample program, the T

Komentáře k této Příručce

Žádné komentáře