EM78P312N
8-Bit Microcontroller
5.9 Timer/Counter 2
Registers for Timer/Counter 2 Circuit
R_BANK | Address | Name | Bit 7 | Bit 6 |
| Bit 5 |
| Bit 4 |
| Bit 3 |
| Bit 2 | Bit 1 |
| Bit 0 |
Bank 1 | 0X08 | TC2CR | ADD1 | ADD0 |
| 0 |
| TC2M |
| TC2S |
| TC2CK2 | TC2CK1 |
| TC2CK0 |
R | R |
|
| R/W |
| R/W |
| R/W | R/W |
| R/W | ||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bank 1 | 0X09 | TC2DH | TC2D15 | TC2D14 |
| TC2D13 |
| TC2D12 |
| TC2D11 |
| TC2D10 | TC2D9 |
| TC2D8 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
R/W | R/W |
| R/W |
| R/W |
| R/W |
| R/W | R/W |
| R/W | |||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bank 1 | 0X0A | TC2DL | TC2D7 | TC2D6 |
| TC2D5 |
| TC2D4 |
| TC2D3 |
| TC2D2 | TC2D1 |
| TC2D0 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
R/W | R/W |
| R/W |
| R/W |
| R/W |
| R/W | R/W |
| R/W | |||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bank 0 | 0x0E | ISFR1 | EXIF5 | TCIF2 |
| ADIF |
| 0 |
| EXIF3 |
| TCIF4 | SPIF |
| TCIF3 |
R/W | R/W |
| R/W |
|
| R/W |
| R/W | R/W |
| R/W | ||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SFR | 0x0B | INTCR | INT1NR | INT0EN |
| 0 |
| INT3ES1 |
| INT3ES0 |
| 0 | INT1ES |
| TC2ES |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
R/W | R/W |
|
|
| R/W |
| R/W |
|
| R/W |
| R/W | |||
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SFR | 0x0E | IMR1 | EXIE5 | TCIE2 |
| ADIE |
| 0 |
| EXIE3 |
| TCIE4 | SPIE |
| TCIE3 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
R/W | R/W |
| R/W |
|
| R/W |
| R/W | R/W |
| R/W | ||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| TC2ES |
|
|
|
|
TC2 |
|
|
|
|
|
Pin | M | Window |
|
|
|
fc/223 |
|
|
|
| |
|
|
| Clear |
| |
fc/213 | MUX |
| |||
fc/28 |
|
|
|
| |
fc/23 |
|
|
|
|
|
fc |
|
|
|
|
|
|
|
|
| Comparator | TC2 |
|
|
|
| Interrupt | |
|
|
|
|
| |
| TC2CK 3 | TC2S |
|
|
|
| TC2CR | TCR2H | TCR2L |
|
|
| Fig. |
|
|
Product Specification (V1.0) 10.03.2006 | • 35 |
(This specification is subject to change without further notice)