English
Language : 

C508_01 Datasheet, PDF (129/267 Pages) Infineon Technologies AG – 8-Bit CMOS Microcontroller
C508
On-Chip Peripheral Components
Bit
Function
CT1RES Compare timer 1 reset control
CT1R Compare timer 1 run/stop control
These two bits control the start, stop, and reset function of Compare Timer 1.
CT1RES is used to reset Compare Timer 1 and CT1R is used to start and
stop the Compare Timer 1. The following table shows the functions of these
two bits:
CT1RES CT1R
0
0
1
0
0
0→1
1
0→1
0
1→0
1
1→0
Function
Compare Timer 1 is stopped and holds its value; the
compare outputs stay in the logic state as they are.
Compare Timer 1 is stopped and reset; compare outputs
are set to the logic state as defined in SFR COINI (default
after reset).
Compare Timer 1 starts. Before CT1R is set the first time,
the CMSEL register should be programmed (enable
Capture/Compare functions).
Compare Timer 1 starts running from count value 0000H;
compare outputs are set to the logic state as defined in SFR
COINI.
Compare Timer 1 is stopped and holds its value; the
Compare outputs drive their actual logic state.
Compare Timer 1 is stopped and reset to 0000H; Compare
outputs are set to the logic state as defined in SFR COINI.
Note for Capture mode:
Setting CT1R = 0 and CT1RES = 1 after a capture event will destroy
the value stored in the capture register CCx. Therefore, CT1RES
should be set to 0 in capture mode. Reason: if CT1R = 0 and
CT1RES = 1 all shadow registers are transparent (switched directly) to
the real registers.
Note: When software power-down mode is entered with CT1RES bit of SFR CT1CON
set, the Compare Timer 1 is reset after the execution of a wake-up from power-
down mode procedure. When CT1RES is cleared before software power-down
mode is entered and a wake-up from power-down mode procedure has been
executed, the Compare Timer 1 is not reset. Depending on the state of bit CT1R
at power-down mode entry, the Compare Timer 1 either stops (CT1R = 0) or
continues (CT1R = 1) counting after a wake-up from power-down mode
procedure. Further details of the power-down mode are provided in Chapter 9.2.
User’s Manual
6-64
2001-05