Table of Contents
3/125
3
6.2.2 I/O Port Alternate Functions ...........................................47
6.2.3 Miscellaneous Registers Description .................................... 48
6.3 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 50
6.3.1 Introduction . . . .................................................... 50
6.3.2 Main Features . . . . . . ...............................................50
6.3.3 Functional Description . . . . ........................................... 50
6.3.4 Hardware Watchdog Option . . . . . . . . . . ................................. 51
6.3.5 Low Power Modes . . . ............................................... 51
6.3.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 51
6.3.7 Register Description . . . . . . ........................................... 51
6.4 16-BIT TIMER . . . . . . . . . . . . . . . . . . ........................................53
6.4.1 Introduction . . . .................................................... 53
6.4.2 Main Features . . . . . . ...............................................53
6.4.3 Functional Description . . . . ........................................... 53
6.4.4 Low Power Modes . . ............................................... 64
6.4.5 Interrupts . . . . . ....................................................64
6.4.6 Register Description . . . . . . ........................................... 65
6.5 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . ...........70
6.5.1 Introduction . . . .................................................... 70
6.5.2 Main Features . . . . . . ...............................................70
6.5.3 General description . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.5.4 Functional Description . . . . ........................................... 72
6.5.5 Low Power Modes . . . ............................................... 79
6.5.6 Interrupts . . . . . ....................................................79
6.5.7 Register Description . . . . . . ........................................... 80
6.6 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6.6.1 Introduction . . . .................................................... 83
6.6.2 Main Features . . . . . . ...............................................83
6.6.3 General Description . . . . . . ........................................... 83
6.6.4 Functional Description . . . . ........................................... 85
6.6.5 Low Power Modes . . . ............................................... 90
6.6.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 90
6.6.7 Register Description . . . . . . ........................................... 91
6.7 8-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . ........................... 95
6.7.1 Introduction . . . .................................................... 95
6.7.2 Main Features . . . . . . ...............................................95
6.7.3 Functional Description . . . . ........................................... 95
6.7.4 Low Power Modes . . . ............................................... 96
6.7.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 96
6.7.6 Register Description . . . . . . ........................................... 97
7 INSTRUCTION SET . . . . . . . . . . . . . . . . . . ........................................ 99
7.1 ST7 ADDRESSING MODES . . . . . . . . . .. . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.1.1 Inherent . . . . . . . . . . . .............................................. 100
7.1.2 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 100
7.1.3 Direct . .......................................................... 100
7.1.4 Indexed (No Offset, Short, Long) . . . . .. . . . . . . .......................... 100
7.1.5 Indirect (Short, Long) . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.1.6 Indirect Indexed (Short, Long) . ....................................... 101