Table of Contents
3/107
5.4 16-BIT TIMER . . . . . . . . . . . . . . . . . . ........................................ 36
5.4.1 Introduction . . . .................................................... 36
5.4.2 Main Features . . . . . . ...............................................36
5.4.3 Functional Description . . . . ...........................................36
5.4.4 Low Power Modes . . ............................................... 48
5.4.5 Interrupts . . . . . ....................................................48
5.4.6 Summary of Timer modes . . . . . . . . . . . . . . .............................. 48
5.4.7 Register Description . . . . . . ...........................................49
5.5 SERIAL COMMUNICATIONSINTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.5.1 Introduction . . . .................................................... 54
5.5.2 Main Features . . . . . . ...............................................54
5.5.3 General Description . . . . . ............................................ 54
5.5.4 Functional Description . . . . ...........................................56
5.5.5 Low Power Modes . . . ............................................... 60
5.5.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 60
5.5.7 Register Description . . . . . . ...........................................61
5.6 USB INTERFACE (USB) . . . . . . . . . . ........................................65
5.6.1 Introduction . . . .................................................... 65
5.6.2 Main Features . . . . . . ...............................................65
5.6.3 Functional Description . . . . ...........................................65
5.6.4 Register Description . . . . . . ...........................................66
5.6.5 Programming Considerations ......................................... 71
5.7 I2C BUS INTERFACE (I2C) . . . . . ...........................................73
5.7.1 Introduction . . . .................................................... 73
5.7.2 Main Features . . . . . . ...............................................73
5.7.3 General Description . . . . . ............................................ 73
5.7.4 Functional Description . . . . ...........................................75
5.7.5 Low Power Modes . . . ............................................... 78
5.7.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 78
5.7.7 Register Description . . . . . . ...........................................79
5.8 8-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . ........................... 84
5.8.1 Introduction . . . .................................................... 84
5.8.2 Main Features . . . . . . ...............................................84
5.8.3 Functional Description . . . . ...........................................85
5.8.4 Low Power Modes . . . ............................................... 85
5.8.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . ................................. 85
5.8.6 Register Description . . . . . . ...........................................86
6 INSTRUCTION SET . . . . . . . . . . . . . . . . . . ........................................87
6.1 ST7 ADDRESSING MODES . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
6.1.1 Inherent . . . . .. . . . . . ...............................................88
6.1.2 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 88
6.1.3 Direct . ........................................................... 88
6.1.4 Indexed (No Offset, Short, Long) . . . . . . . . . . . . ........................... 88
6.1.5 Indirect (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.1.6 Indirect Indexed (Short,Long) . ........................................89
6.1.7 Relative mode (Direct,Indirect) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . .................................90