Renesas MN4 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Chaves de fendas elétricas Renesas MN4. Renesas MN4 User manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 57
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 0
1 2 3 4 5 6 ... 56 57

Resumo do Conteúdo

Página 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

Página 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

Página 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

Página 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)

Página 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)

Página 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

Página 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

Página 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

Página 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)

Página 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

Página 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)

Página 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

Página 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)

Página 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)

Página 15

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 21

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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)

Página 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

Página 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

Página 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

Página 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

Página 35

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

Página 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

Página 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)

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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:/

Página 51

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

Página 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

Página 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

Página 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

Página 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

Página 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)

Página 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

Comentários a estes Manuais

Sem comentários