Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F616-I/STSQTP Datasheet(PDF) 45 Page - Cirrus Logic

Part # PIC16F616-I/STSQTP
Description  14-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PDF  172 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  APEX [Cirrus Logic]
Direct Link  http://www.cirrus.com
Logo APEX - Cirrus Logic

PIC16F616-I/STSQTP Datasheet(HTML) 45 Page - Cirrus Logic

Back Button PIC16F616-I/STSQTP Datasheet HTML 41Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 42Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 43Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 44Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 45Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 46Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 47Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 48Page - Cirrus Logic PIC16F616-I/STSQTP Datasheet HTML 49Page - Cirrus Logic Next Button
Zoom Inzoom in Zoom Outzoom out
 45 / 172 page
background image
© 2006 Microchip Technology Inc.
Preliminary
DS41288A-page 43
PIC16F616/16HV616
6.7
Timer1 Interrupt
The Timer1 register pair (TMR1H:TMR1L) increments
to FFFFh and rolls over to 0000h. When Timer1 rolls
over, the Timer1 interrupt flag bit of the PIR1 register is
set. To enable the interrupt on rollover, you must set
these bits:
• TMR1IE bit of the PIE1 register
• PEIE bit of the INTCON register
• GIE bit of the INTCON register
• T1SYNC bit of the T1CON register
• TMR1CS bit of the T1CON register
• T1OSCEN bit of the T1CON register (can be set)
The interrupt is cleared by clearing the TMR1IF bit in
the Interrupt Service Routine.
6.8
Timer1 Operation During Sleep
Timer1 can only operate during Sleep when setup in
Asynchronous Counter mode. In this mode, an external
crystal or clock source can be used to increment the
counter. To set up the timer to wake the device:
• TMR1ON bit of the T1CON register must be set
• TMR1IE bit of the PIE1 register must be set
• PEIE bit of the INTCON register must be set
The device will wake-up on an overflow. If the GIE bit of
the INTCON register is set, the device will call the
Interrupt Service Routine (0004h) on an overflow. If the
GIE bit is clear, execution will continue with the next
instruction.
6.9
ECCP Capture/Compare Time Base
The ECCP module uses the TMR1H:TMR1L register
pair as the time base when operating in Capture or
Compare mode.
In Capture mode, the value in the TMR1H:TMR1L
register pair is copied into the CCPR1H:CCPR1L
register pair on a configured event.
In Compare mode, an event is triggered when the value
CCPR1H:CCPR1L register pair matches the value in
the TMR1H:TMR1L register pair. This event can be a
Special Event Trigger.
For more information, see Section 10.0 “Enhanced
Capture/Compare/PWM (With Auto-Shutdown and
Dead Band) Module”.
6.10
ECCP Special Event Trigger
When the ECCP is configured to trigger a special
event, the trigger will clear the TMR1H:TMR1L register
pair. This special event does not cause a Timer1 inter-
rupt. The ECCP module may still be configured to gen-
erate a ECCP interrupt.
In this mode of operation, the CCPR1H:CCPR1L
register pair effectively becomes the period register for
Timer1.
Timer1 should be synchronized to the FOSC to utilize
the Special Event Trigger. Asynchronous operation of
Timer1 can cause a Special Event Trigger to be
missed.
In the event that a write to TMR1H or TMR1L coincides
with a Special Event Trigger from the ECCP, the write
will take precedence.
For more information, see Section 10.2.4 “Special
Event Trigger”.
6.11
Comparator Synchronization
The same clock used to increment Timer1 can also be
used to synchronize the comparator output. This
feature is enabled in the Comparator module.
When using the comparator for Timer1 gate, the
comparator output should be synchronized to Timer1.
This ensures Timer1 does not miss an increment if the
comparator changes.
For
more
information,
see
Section 8.8.2
“Synchronizing Comparator C2 Output to Timer1”.
FIGURE 6-2:
TIMER1 INCREMENTING EDGE
Note:
The TMR1H:TTMR1L register pair and the
TMR1IF bit should be cleared before
enabling interrupts.
T1CKI = 1
when TMR1
Enabled
T1CKI = 0
when TMR1
Enabled
Note 1:
Arrows indicate counter increments.
2:
In Counter mode, a falling edge must be registered by the counter prior to the first incrementing rising edge of the clock.



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