RW1 & RW0 | Select read/write operation | |||
|
|
|
|
|
| Operation |
| RW1 | RW0 |
|
|
|
|
|
| Counter latch |
| 0 | 0 |
| Read/write LSB | 0 | 1 | |
| Read/write MSB | 1 | 0 | |
|
|
|
| |
| Read/write LSB first, | 1 | 1 |
then MSB
M2, M1 & M0 | Select operating mode | ||||
|
|
|
|
|
|
| M2 | M1 | M0 | Mode | Description |
|
|
|
|
| |
| 0 | 0 | 0 | 0 | Stop on terminal count |
0 | 0 | 1 | 1 | Programmable one shot | |
| X | 1 | 0 | 2 | Rate generator |
|
|
|
|
|
|
| X | 1 | 1 | 3 | Square wave rate generator |
|
|
|
|
|
|
| 1 | 0 | 0 | 4 | Software triggered strobe |
| 1 | 0 | 1 | 5 | Hardware triggered strobe |
BCD Select binary or BCD counting.
BCD Type
0Binary counting
1Binary coded decimal (BCD) counting
If you set the module for binary counting, the count can be any number from 0 up to 65535. If you set it for BCD (Binary Coded Decimal) counting, the count can be any number from 0 to 9999.
If you set both SC1 and SC0 bits to 1, the counter control register is in
54