Renesas RL78/I1D Application Note page 2

Hide thumbs Also See for RL78/I1D:
Table of Contents

Advertisement

RL78/I1D
Contents
1.
Specification ............................................................................................................................................ 3
2.
Operation condition confirmation ............................................................................................................ 4
3.
Hardware explanation ............................................................................................................................. 5
3.1.
Example of hardware structure ........................................................................................................ 5
3.2.
Used pin list ..................................................................................................................................... 5
4.
Software explanation .............................................................................................................................. 6
4.1.
Outline of operation ......................................................................................................................... 6
4.2.
Setting of option byte ....................................................................................................................... 7
4.3.
List of Constants .............................................................................................................................. 7
4.4.
List of Variable ................................................................................................................................. 8
4.5.
Function list ...................................................................................................................................... 9
4.6.
Function specification .................................................................................................................... 10
4.7.
Flow chart ...................................................................................................................................... 14
4.7.1.
The main processing .............................................................................................................. 14
4.7.2.
Initialization ............................................................................................................................. 15
4.7.3.
Peripheral function Initialization ............................................................................................. 16
4.7.4.
I/O Port Setup ......................................................................................................................... 16
4.7.5.
CPU clock initialization ........................................................................................................... 18
4.7.6.
12-bit interval timer initialization ............................................................................................. 23
4.7.7.
Clock output initialization ........................................................................................................ 24
4.7.8.
INTP0 initialization .................................................................................................................. 24
4.7.9.
The main user initialization ..................................................................................................... 25
4.7.10.
INTP0 interrupt enable processing ..................................................................................... 25
4.7.11.
12-bit interval timer start processing ................................................................................... 26
4.7.12.
Clock output start processing ............................................................................................. 26
4.7.13.
Flash operation mode switching (LV) processing ............................................................... 27
4.7.14.
Flash operation mode switching (LS normal) processing ................................................... 29
4.7.15.
Flash operation mode switching (LS low consumption) processing ................................... 31
4.7.16.
Flash operation mode switching (HS) processing .............................................................. 32
4.7.17.
A/D converter initialization .................................................................................................. 34
4.7.18.
A/D conversion operation start processing ......................................................................... 35
4.7.19.
A/D converter stop processing ........................................................................................... 35
4.7.20.
Flash operation mode switching (LP) processing ............................................................... 36
4.7.21.
External interruption (INTP0) processing ........................................................................... 37
4.7.22.
12-bit interval timer interrupt processing ............................................................................ 39
4.7.23.
A/D conversion complete interrupt processing ................................................................... 40
4.7.24.
A/D conversion result acquisition process .......................................................................... 40
5.
Power supply current measurement of the flash operating modes ...................................................... 41
6.
Sample code ......................................................................................................................................... 42
7.
Reference document ............................................................................................................................ 42
R01AN3597EJ0100 Rev.1.00
Jan. 31, 2017
Operation state switching IAR
Page 2 of 42

Advertisement

Table of Contents
loading

Table of Contents