iii
38B7 Group User’s Manual
List of figures
Fig. 96 Timings during erase verify........................................................................................... 1-92
Fig. 97 Timings at error checking .............................................................................................. 1-93
Fig. 98 Flash memory control register bit configuration ......................................................... 1-95
Fig. 99 Flash command register bit configuration ................................................................... 1-96
Fig. 100 CPU mode register bit configuration in CPU rewriting mode ................................ 1-96
Fig. 101 Flowchart of program/erase operation at CPU reprogramming mode .................. 1-98
CHAPTER 2 APPLICATION
Fig. 2.1.1 Memory assignment of I/O port relevant registers .................................................. 2-2
Fig. 2.1.2 Structure of port Pi (i = 0 to 7, 9, A) ....................................................................... 2-3
Fig. 2.1.3 Structure of port P8 ..................................................................................................... 2-3
Fig. 2.1.4 Structure of port PB..................................................................................................... 2-4
Fig. 2.1.5 Structure of port Pi (i = 1, 3 to 7, 9, A) direction register .................................... 2-4
Fig. 2.1.6 Structure of port P8 direction register ...................................................................... 2-5
Fig. 2.1.7 Structure of port PB direction register ...................................................................... 2-5
Fig. 2.1.8 Structure of pull-up control register 1 ....................................................................... 2-6
Fig. 2.1.9 Structure of pull-up control register 2 ....................................................................... 2-6
Fig. 2.1.10 Structure of pull-up control register 3 ..................................................................... 2-7
Fig. 2.2.1 Memory map of registers relevant to timers .......................................................... 2-11
Fig. 2.2.2 Structure of Timer i (i=1, 3 to 6) ............................................................................. 2-12
Fig. 2.2.3 Structure of Timer 2 .................................................................................................. 2-12
Fig. 2.2.4 Structure of Timer 6 PWM register ......................................................................... 2-12
Fig. 2.2.5 Structure of Timer 12 mode register ....................................................................... 2-13
Fig. 2.2.6 Structure of Timer 34 mode register ....................................................................... 2-13
Fig. 2.2.7 Structure of Timer 56 mode register ....................................................................... 2-14
Fig. 2.2.8 Structure of Timer X (low-order, high-order) .......................................................... 2-15
Fig. 2.2.9 Structure of Timer X mode register 1 ..................................................................... 2-16
Fig. 2.2.10 Structure of Timer X mode register 2 ................................................................... 2-17
Fig. 2.2.11 Structure of Interrupt request register 1 ............................................................... 2-18
Fig. 2.2.12 Structure of Interrupt request register 2 ............................................................... 2-19
Fig. 2.2.13 Structure of Interrupt control register 1 ................................................................ 2-20
Fig. 2.2.14 Structure of Interrupt control register 2 ................................................................ 2-20
Fig. 2.2.15 Timers connection and setting of division ratios ................................................. 2-22
Fig. 2.2.16 Relevant registers setting ....................................................................................... 2-23
Fig. 2.2.17 Control procedure ..................................................................................................... 2-24
Fig. 2.2.18 Peripheral circuit example ....................................................................................... 2-25
Fig. 2.2.19 Timers connection and setting of division ratios ................................................. 2-25
Fig. 2.2.20 Relevant registers setting ....................................................................................... 2-26
Fig. 2.2.21 Control procedure ..................................................................................................... 2-26
Fig. 2.2.22 Judgment method of valid/invalid of input pulses ............................................... 2-27
Fig. 2.2.23 Relevant registers setting ....................................................................................... 2-28
Fig. 2.2.24 Control procedure ..................................................................................................... 2-29
Fig. 2.2.25 Timers connection and setting of division ratios ................................................. 2-30
Fig. 2.2.26 Relevant registers setting ....................................................................................... 2-31
Fig. 2.2.27 Control procedure ..................................................................................................... 2-32
Fig. 2.2.28 Timers connection and table example of timer X/RTP setting values ............. 2-34
Fig. 2.2.29 RTP output example ................................................................................................ 2-34
Fig. 2.2.30 Relevant registers setting ....................................................................................... 2-35
Fig. 2.2.31 Control procedure ..................................................................................................... 2-36