Samsung S3F80JB manual Timer 1 Control Register T1CON

Models: S3F80JB

1 346
Download 346 pages 34.13 Kb
Page 260
Image 260

S3F80JB

TIMER 1

 

 

TIMER 1 CONTROL REGISTER (T1CON)

The Timer 1 control register, T1CON, is located in Set 1, FAH, Bank0 and is read/write addressable. T1CON contains control settings for the following T1 functions:

Timer 1 input clock selection

Timer 1 operating mode selection

Timer 1 16-bit down counter clear

Timer 1 overflow interrupt enable/disable

Timer 1 match or capture interrupt enable/disable

Timer 1 interrupt pending control (read for status, write to clear)

A reset operation clears T1CON to ‘00H’, selecting fosc divided by 4 as the T1 clock, configuring Timer 1 as a normal interval Timer, and disabling the Timer 1 interrupts.

MSB

Timer 1 Control Register (T1CON)

FAH, Set 1, Bank 0 , R/W

.7

.6

 

.5

.4

.3

.2

.1

.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LSB

Timer 1 Input Clock Selection Bits: 00 = fOSC/4

01 = fOSC/8

10 = fOSC/16

11 = Internal clock (T-F/F)

Timer 1 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 = Capture mode (capture on rising and

falling edge, counter running, OVF can occur)

Timer 1 Interrupt Pending Bit:

0 = No interrupt pending

0 = Clear pending bit (when write)

1 = Interrupt is pending

Timer 1 Interrupt Match/capture Enable Bit: 0 = Disable interrupt

1 = Enable interrupt

Timer 1 Overflow Interrupt Enable Bit: 0 = Disable overflow interrupt

1 = Enable overflow interrupt

Timer 1 Counter Clear Bit:

0 = No effect

1 = Clear the timer 0 counter (when write)

Figure 11-4. Timer 1 Control Register (T1CON)

11-5

Page 260
Image 260
Samsung S3F80JB manual Timer 1 Control Register T1CON