Renesas MN4 Manual de usuario

Busca en linea o descarga Manual de usuario para Destornilladores Motorizados Renesas MN4. Renesas MN4 User manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 57
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 0
1 2 3 4 5 6 ... 56 57

Indice de contenidos

Pagina 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

Pagina 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

Pagina 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

Pagina 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)

Pagina 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)

Pagina 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

Pagina 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

Pagina 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

Pagina 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)

Pagina 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

Pagina 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)

Pagina 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

Pagina 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)

Pagina 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)

Pagina 15

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 21

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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)

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 35

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

Pagina 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

Pagina 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)

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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:/

Pagina 51

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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)

Pagina 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

Comentarios a estos manuales

Sin comentarios