Page 105 - Making PIC Microcontroller Instruments and Controllers
P. 105
llMERl: tHE SECOIID TllilER 95
limer operailon
ini{fii{!{1qj.411 Timerl usase (Rudimenlary thal depends on value ol
POT-1) (Continued)
; b1! 3: RBIE: RB Port Chanqe lnLerrupt EnabLe bi!
; t = Enables the RB port change intetrupl
; o = Disables the RB port change intefupt
; bi! 2: T01F: TMRo Oweiflov hterrupt Flaq blt
; 1- = TMRo resisler has overflowed (must be cleaxed in
; softvare)
; 0 = TMRo resrster did not overflow
; bir 1: INTF: RB0/rNT External Interlupt FLag lrit
i 1 = The RBO/IN1' externaf interrupb occurred (nusl be
; cleated in sofLware)
'
e
; 0 T n - P B o \ l 6 a L 4 ' o l , n r r r - p t d _ d o o c u
, bit O: RBIF: RB Port Change Interrupt FLag bit
; L = At leas! one of the !B7:RB4 pins chansed state (nus!
; be cleared in software)
D B p : n q o d s q P
; 0 N o n - o . " e : o B l n a e c h d '
; TlcoN is Lhe tiner 1 contro} reqister.
TlcoN =%00000001
; biL 7 6: Uninplenenred: Read as '0'
; bit 5 4: TlcKpsl : TlcKPso : Tinerl hput Clock Prescale selec! bits
; 11 = 1:8 Prescale value
; 10 = 1.4 Prescale vafue
; 01 = 1.2 Prescale vafue
; 00 = 1.1 PrescaLe vaLue
; bit 3: TloscEN: Tinerl oscillator Enable control bi!
; I = oscillator is enabled
; 0 = oscillator is shut off (rhe osciltaLor inwerter
; is Lurned off Lo elininare pooex drain)
; bit 2: T1S1NC: Tinerl External CLock hput Sl4chronization
; conlro1 bit
; TIIR1CS = 1
j L = Do noL synchronize external clock inpu!
; 0 = Synchronize extelna1 clock input
; TMR1CS = 0
- This bit is ignored. Tinerl uses the inlernal clock
; when TMR1CS = 0.
; bit 1: TMR.Lcs: Tinerl clock source selecr bit
r ! = External clock from pin RCQ/T1OSO/TICKI (on the
; risiner edge)
; 0 = Internal cLock (Fosc/4)
; biL 0: TMRION. Tinerl On bit
; 0 = Stops Tinerl
; The oplion regisLer
lContirueA