3/82
Table of Contents
3
4 ON-CHIP PERIPHERALS . . . ...................................................32
4.1 I/OPORTS.............................................................32
4.1.1 Operating Modes . . . . ...............................................33
4.1.2 Safe I/O State Switching Sequence . . . ..................................34
4.1.3 ARTimer alternate functions ..........................................36
4.1.4 SPI alternate functions . . . ............................................36
4.1.5 UART alternate functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ................36
4.1.6 I/O Port Option Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ................38
4.1.7 I/O Port Data Direction Registers. . . ....................................38
4.1.8 I/O Port Data Registers . . . . ..........................................38
4.2 TIMER ................................................................39
4.2.1 Timer Operating Modes . . .. . . . . . . . . ..................................40
4.2.2 Timer Interrupt . . . . . . . . . . ...........................................40
4.2.3 Application Notes . . . . ...............................................41
4.2.4 Timer Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . .........................41
4.3 ARTIMER 16 . . . ........................................................42
4.3.1 CENTRAL COUNTER . . . ............................................43
4.3.2 SIGNAL GENERATION MODES . . . ....................................44
4.3.3 TIMINGS MEASUREMENT MODES. . ..................................46
4.3.4 INTERRUPT CAPABILITIES ..........................................48
4.3.5 CONTROL REGISTERS . . . ..........................................49
4.3.6 16-BIT REGISTERS . . . . . . . . ........................................51
4.4 A/D CONVERTER (ADC) . . . ..............................................53
4.4.1 Application Notes . . . . ...............................................53
4.5 U. A. R. T. (UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER). ..........55
4.5.1 PORTS INTERFACING . . . . . . . . . . . . ..................................55
4.5.2 CLOCK GENERATION . . . . ..........................................56
4.5.3 DATA TRANSMISSION . . .. . . . . . . . . ..................................56
4.5.4 DATA RECEPTION .................................................57
4.5.5 INTERRUPT CAPABILITIES ..........................................57
4.5.6 REGISTERS ......................................................57
4.6 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . ........................59
5SOFTWARE ................................................................61
5.1 ST6 ARCHITECTURE . . . . . . . . . . . . . . . .....................................61
5.2 ADDRESSING MODES . . . . ...............................................61
5.3 INSTRUCTION SET . . . ...................................................62
6 ELECTRICAL CHARACTERISTICS. . . . . . . . . . . . ..................................67
6.1 ABSOLUTE MAXIMUM RATINGS. ..........................................67
6.2 RECOMMENDED OPERATING CONDITIONS. . . ..............................68
6.3 DC ELECTRICAL CHARACTERISTICS ......................................69
6.4 AC ELECTRICAL CHARACTERISTICS ......................................70
6.5 A/D CONVERTER CHARACTERISTICS. . . ...................................70
6.6 TIMER CHARACTERISTICS . . . ............................................71
6.7 .SPI CHARACTERISTICS .................................................71
6.8 ARTIMER16 ELECTRICAL CHARACTERISTICS. . . . . . . . . . . . . . . ................71