10 User’s Manual U10676EJ3V0UM
4.6 Accumulator........................................................................................................................ 70
4.7 Stack Pointer (SP) and Stack Bank Select Register (SBS).......................................... 70
4.8 Program Status Word (PSW)............................................................................................. 74
4.9 Bank Select Register (BS) ................................................................................................ 78
CHAPTER 5 EEPROM ....................................................................................................................... 80
5.1 EEPROM Configuration..................................................................................................... 80
5.2 EEPROM Features.............................................................................................................. 80
5.3 EEPROM Write Control Register (EWC).......................................................................... 81
5.4 Interrupt Related to EEPROM Control ............................................................................ 82
5.5 EEPROM Manipulation Method ........................................................................................ 83
5.5.1 EEPROM manipulation instructions...................................................................................... 83
5.5.2 Read manipulation................................................................................................................. 84
5.5.3 Write manipulation ................................................................................................................. 85
5.6 Cautions on EEPROM Writing.......................................................................................... 87
CHAPTER 6 PERIPHERAL HARDWARE FUNCTION..................................................................... 88
6.1 Digital I/O Ports .................................................................................................................. 88
6.1.1 Types, features, and configurations of digital I/O ports....................................................... 89
6.1.2 Setting I/O mode.................................................................................................................... 94
6.1.3 Digital I/O port manipulation instruction ............................................................................... 96
6.1.4 Operation of digital I/O port................................................................................................... 98
6.1.5 Connecting pull-up resistor ................................................................................................... 100
6.1.6 I/O timing of digital I/O port................................................................................................... 1 01
6.2 Clock Generator ................................................................................................................. 103
6.2.1 Configuration of clock generator........................................................................................... 103
6.2.2 Function and operation of clock generator........................................................................... 105
6.2.3 Setting CPU clock.................................................................................................................. 112
6.3 Basic Interval Timer/Watchdog Timer ............................................................................. 114
6.3.1 Configuration of basic interval timer/watchdog timer........................................................... 11 4
6.3.2 Basic interval timer mode register (BTM)............................................................................. 11 5
6.3.3 Watchdog timer enable flag (WDTM).................................................................................... 117
6.3.4 Operation as basic interval timer .......................................................................................... 118
6.3.5 Operation as watchdog timer ................................................................................................ 119
6.3.6 Other functions....................................................................................................................... 121
6.4 Timer Counter..................................................................................................................... 122
6.4.1 Configuration of timer counter............................................................................................... 122
6.4.2 Operation in 8-bit timer counter mode.................................................................................. 134
6.4.3 Operation in PWM pulse generator mode (PWM mode) ..................................................... 145
6.4.4 Operation in 16-bit timer counter mode................................................................................ 151
6.4.5 Operation in carrier generator mode (CG mode)................................................................. 1 60
6.4.6 Notes on using timer counter................................................................................................ 1 73
6.5 Programmable Threshold Port (Analog Input Port)...................................................... 180
6.5.1 Configuration and operation of programmable threshold port............................................. 180
6.5.2 Programmable threshold port mode (PTHM) register.......................................................... 182
6.5.3 Programmable threshold port application............................................................................. 183
6.6 Bit Sequential Buffer ......................................................................................................... 184