Samsung S3F80P5X User Manual page 245

S3f80p5 microcontrollers
Table of Contents

Advertisement

S3F80P5_UM_ REV1.00
MS
B
Timer 0 Input Clock Selection Bits:
00 = f
/4096
OSC
01 = f
/256
OSC
10 = f
/8
OSC
11 = External clock
Timer 0 Operating Mode Selection Bits:
00 = Interval mode
01 = Capture mode (capture on rising edge, counter running, OVF can occur)
10 = Capture mode (capture on falling edge, counter running, OVF can occur)
11 = PWM mode (OVF interrupt can occur)
NOTE:
The external clock source of timer 0 is P3.1/T0CK (Pin 22).
Timer 0 Control Register (T0CON)
D2H, Set 1, Bank0 , R/W
.7
.6
.5
.4
(NOTE)
Figure 10-2. Timer 0 Control Register (T0CON)
Timer 0 Data Register (T0DATA)
D1H, Set1, Bank 0 , R/W
MSB
.7
.6
.5
Figure 10-3. Timer 0 DATA Register (T0DATA)
.3
.2
.1
.0
Timer 0 Interrupt Match/capture Enable Bit:
0 = Disable interrupt
1 = Enable interrupt
Timer 0 Overflow Interrupt Enable Bit:
0 = Disable overflow interrupt
1 = Enable overflow interrupt
Timer 0 Counter Clear Bit:
0 = No effect
1 = Clear the timer 0 counter (when write)
.4
.3
.2
.1
Reset Value: FFH
BASIC TIMER and TIMER 0
LSB
Timer 0 Interrupt Pending Bit:
0 = No interrupt pending
0 = Clear pending bit (when write)
1 = Interrupt is pending
.0
LSB
10-5

Advertisement

Table of Contents
loading

Table of Contents