Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16C641-04/TQ Datasheet(PDF) 67 Page - Microchip Technology

Part # PIC16C641-04/TQ
Description  8-Bit EPROM Microcontrollers with Analog Comparators
PDF  136 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16C641-04/TQ Datasheet(HTML) 67 Page - Microchip Technology

Back Button PIC16C641-04/TQ Datasheet HTML 63Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 64Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 65Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 66Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 67Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 68Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 69Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 70Page - Microchip Technology PIC16C641-04/TQ Datasheet HTML 71Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 67 / 136 page
background image
© 1996 Microchip Technology Inc.
Preliminary
DS30559A-page 67
PIC16C64X & PIC16C66X
9.5.1
RB0/INT INTERRUPT
The external interrupt on the RB0/INT pin is edge trig-
gered: either rising if bit INTEDG (OPTION<6>) is set,
or falling, if bit INTEDG is clear. When a valid edge
appears
on
the
RB0/INT
pin,
flag
bit
INTF
(INTCON<1>) is set. This interrupt can be enabled/dis-
abled
by
setting/clearing
enable
bit
INTE
(INTCON<4>). The INTF bit must be cleared in soft-
ware in the interrupt service routine before re-enabling
this interrupt. The RB0/INT interrupt can wake-up the
processor from SLEEP, if bit INTE was set prior to
going into SLEEP. The status of the GIE bit decides
whether or not the processor branches to the interrupt
vector following wake-up. See Section 9.8 for details
on SLEEP and Figure 9-19 for timing of wake-up from
SLEEP through RB0/INT interrupt.
9.5.2
TMR0 INTERRUPT
An overflow (FFh
→ 00h) in the TMR0 register will
set the T0IF (INTCON<2>) bit. The interrupt can
be
enabled/disabled
by
setting/clearing
T0IE
(INTCON<5>) bit. For operation of the Timer0 module,
see Section 6.0.
9.5.3
PORTB INTERRUPT
An input change on any bit of PORTB<7:4> sets flag bit
RBIF (INTCON<0>). The interrupt can be enabled/dis-
abled
by
setting/clearing
enable
bit
RBIE
(INTCON<4>). For operation of PORTB (Section 5.2).
9.5.4
COMPARATOR INTERRUPT
See Section 7.6 for complete description of the com-
parator interrupt.
FIGURE 9-16: RB0/INT PIN INTERRUPT TIMING
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
OSC1
CLKOUT
INT pin
INTF flag
(INTCON<1>)
GIE bit
(INTCON<7>)
INSTRUCTION FLOW
PC
Instruction
fetched
Instruction
executed
Interrupt Latency
PC
PC+1
PC+1
0004h
0005h
Inst (0004h)
Inst (0005h)
Dummy Cycle
Inst (PC)
Inst (PC+1)
Inst (PC-1)
Inst (0004h)
Dummy Cycle
Inst (PC)
—
1
4
5
1
Note 1: INTF flag is sampled here (every Q1).
2: Interrupt latency = 3-4 Tcy where Tcy = instruction cycle time.
Latency is the same whether Inst (PC) is a single cycle or a 2-cycle instruction.
3: CLKOUT is available only in RC oscillator mode.
4: For minimum width of INT pulse, refer to AC specs.
5: INTF is enabled to be set anytime during the Q4-Q1 cycles.
2
3



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