Atar862-8 – Rainbow Electronics ATAR862-8 User Manual
Page 102
102
ATAR862-8
4589B–4BMCU–02/03
Bi-directional Ports ............................................................................. 33
Bi-directional Port 1 ............................................................................................ 33
Bi-directional Port 2 ............................................................................................ 34
Port 2 Data Register (P2DAT) ...................................................................... 35
Port 2 Control Register (P2CR) .................................................................... 35
Bi-directional Port 5 ............................................................................................ 35
Port 5 Data Register (P5DAT) ...................................................................... 36
Port 5 Control Register (P5CR) Byte Write ................................................... 36
Bi-directional Port 4 ............................................................................................ 37
Port 4 Data Register (P4DAT) ...................................................................... 38
Port 4 Control Register (P4CR) Byte Write ................................................... 38
Bi-directional Port 6 ............................................................................................ 38
Port 6 Data Register (P6DAT) ...................................................................... 39
Port 6 Control Register (P6CR) .................................................................... 39
Universal Timer/Counter/ Communication Module (UTCM) ...............................39
Timer 1 ................................................................................................................ 40
Timer 1 Control Register 1 (T1C1) ................................................................ 42
Timer 1 Control Register 2 (T1C2) ................................................................ 43
Watchdog Control Register (WDC) ...............................................................43
Timer 2 ................................................................................................................ 44
Timer 2 Modes .................................................................................................... 45
Mode 1: 12-bit Compare Counter ................................................................. 45
Mode 2: 8-bit Compare Counter with 4-bit Programmable Prescaler ...........45
Mode 3/4: 8-bit Compare Counter and 4-bit Programmable Prescaler ......... 46
Timer 2 Output Modes ........................................................................................ 46
Timer 2 Output Signals ....................................................................................... 47
Timer 2 Output Mode 1 ................................................................................. 47
Timer 2 Output Mode 2 ................................................................................. 48
Timer 2 Output Mode 3 ................................................................................. 48
Timer 2 Output Mode 4 ................................................................................. 49
Timer 2 Output Mode 5 ................................................................................. 49
Timer 2 Output Mode 7 ................................................................................. 49
Timer 2 Registers ...............................................................................................50
Timer 2 Control Register (T2C) ..................................................................... 50
Timer 2 Mode Register 1 (T2M1) .................................................................. 51
Duty Cycle Generator ................................................................................... 51
Timer 2 Mode Register 2 (T2M2) .................................................................. 52
Timer 2 Compare and Compare Mode Registers ......................................... 53
Timer 2 Compare Mode Register (T2CM) .................................................... 53
Timer 2 COmpare Register 1 (T2CO1) .........................................................53
Timer 2 COmpare Register 2 (T2CO2) Byte Write ....................................... 54
Timer 3 ................................................................................................. 54
Features ........................................................................................................ 54
Timer/Counter Modes .........................................................................................55
Timer 3 – Mode 1: Timer/Counter ................................................................. 56