Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F690-I/SSSQTP Datasheet(PDF) 84 Page - Microchip Technology

Part # PIC16F690-I/SSSQTP
Description  20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PDF  294 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F690-I/SSSQTP Datasheet(HTML) 84 Page - Microchip Technology

Back Button PIC16F690-I/SSSQTP Datasheet HTML 80Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 81Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 82Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 83Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 84Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 85Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 86Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 87Page - Microchip Technology PIC16F690-I/SSSQTP Datasheet HTML 88Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 84 / 294 page
background image
PIC16F631/677/685/687/689/690
DS41262D-page 82
© 2007 Microchip Technology Inc.
5.1.3
SOFTWARE PROGRAMMABLE
PRESCALER
A single software programmable prescaler is available
for use with either Timer0 or the Watchdog Timer
(WDT), but not both simultaneously. The prescaler
assignment is controlled by the PSA bit of the OPTION
register. To assign the prescaler to Timer0, the PSA bit
must be cleared to a ‘0’.
There are 8 prescaler options for the Timer0 module
ranging from 1:2 to 1:256. The prescale values are
selectable via the PS<2:0> bits of the OPTION register.
In order to have a 1:1 prescaler value for the Timer0
module, the prescaler must be assigned to the WDT
module.
The prescaler is not readable or writable. When the
prescaler is assigned to the Timer0 module, all
instructions writing to the TMR0 register will clear the
prescaler.
When the prescaler is assigned to WDT, a CLRWDT
instruction will clear the prescaler along with the WDT.
5.1.3.1
Switching Prescaler Between
Timer0 and WDT Modules
As a result of having the prescaler assigned to either
Timer0 or the WDT, it is possible to generate an
unintended device Reset when switching prescaler
values. When changing the prescaler assignment from
Timer0 to the WDT module, the instruction sequence
shown in Example 5-1, must be executed.
EXAMPLE 5-1:
CHANGING PRESCALER
(TIMER0
→ WDT)
When changing the prescaler assignment from the
WDT to the Timer0 module, the following instruction
sequence must be executed (see Example 5-2).
EXAMPLE 5-2:
CHANGING PRESCALER
(WDT
→ TIMER0)
5.1.4
TIMER0 INTERRUPT
Timer0 will generate an interrupt when the TMR0
register overflows from FFh to 00h. The T0IF interrupt
flag bit of the INTCON register is set every time the
TMR0 register overflows, regardless of whether or not
the Timer0 interrupt is enabled. The T0IF bit must be
cleared in software. The Timer0 interrupt enable is the
T0IE bit of the INTCON register.
5.1.5
USING TIMER0 WITH AN
EXTERNAL CLOCK
When Timer0 is in Counter mode, the synchronization
of the T0CKI input and the Timer0 register is accom-
plished by sampling the prescaler output on the Q2 and
Q4 cycles of the internal phase clocks. Therefore, the
high and low periods of the external clock source must
meet
the
timing
requirements
as
shown
in
Section 17.0 “Electrical Specifications”.
BANKSEL
TMR0
;
CLRWDT
;Clear WDT
CLRF
TMR0
;Clear TMR0 and
;
prescaler
BANKSEL
OPTION_REG
;
BSF
OPTION_REG,PSA
;Select WDT
CLRWDT
;
;
MOVLW
b’11111000’
;Mask prescaler
ANDWF
OPTION_REG,W
;
bits
IORLW
b’00000101’
;Set WDT prescaler
MOVWF
OPTION_REG
;
to 1:32
Note:
The Timer0 interrupt cannot wake the
processor from Sleep since the timer is
frozen during Sleep.
CLRWDT
;Clear WDT and
;prescaler
BANKSEL OPTION_REG
;
MOVLW
b’11110000’
;Mask TMR0 select and
ANDWF
OPTION_REG,W ; prescaler bits
IORLW
b’00000011’
;Set prescale to 1:16
MOVWF
OPTION_REG
;



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com