PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 121

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
FIGURE 15-8:
TABLE 15-6:
© 2006 Microchip Technology Inc.
INSTRUCTION FLOW
0Bh, 8Bh INTCON
0Ch
8Ch
Legend:
(INTCON<1>)
(INTCON<7>)
Address
Note 1:
CLKOUT
Instruction
Instruction
INTF Flag
Executed
Fetched
INT pin
GIE bit
OSC1
2:
3:
4:
5:
PIR1
PIE1
PC
(3)
x = unknown, u = unchanged, – = unimplemented read as ‘0’, q = value depends upon condition. Shaded cells are not
used by the Interrupt module.
Name
INTF flag is sampled here (every Q1).
Asynchronous interrupt latency = 3-4 T
Latency is the same whether Inst (PC) is a single cycle or a 2-cycle instruction.
CLKOUT is available only in INTOSC and RC Oscillator modes.
For minimum width of INT pulse, refer to AC specifications in Section 19.0 “Electrical Specifications”.
INTF is enabled to be set any time during the Q4-Q1 cycles.
SUMMARY OF INTERRUPT REGISTERS
Q1
Inst (PC - 1)
Bit 7
EEIF
EEIE
Inst (PC)
GIE
INT PIN INTERRUPT TIMING
(1)
Q2
PC
Q3
(4)
ADIE
PEIE
ADIF
Bit 6
Q4
(5)
Q1
CCP1IF
CCP1IE
Bit 5
T0IE
Inst (PC + 1)
Inst (PC)
Q2
(1)
PC + 1
CY
Q3
INTE
C2IE
Bit 4
C2IF
. Synchronous latency = 3 T
Preliminary
Q4
Interrupt Latency
Q1
RAIE
C1IE
Bit 3
C1IF
Dummy Cycle
Q2
PC + 1
OSFIE
OSFIF
Q3
Bit 2
T0IF
PIC16F785/HV785
Q4
(2)
CY
TMR2IF TMR1IF 0000 0000 0000 0000
TMR2IE TMR1IE 0000 0000 0000 0000
, where T
INTF
Bit 1
Q1
Dummy Cycle
Inst (0004h)
Q2
0004h
CY
RAIF
Bit 0
Q3
= instruction cycle time.
Q4
0000 0000 0000 0000
POR, BOR
Value on:
Q1
DS41249D-page 119
Inst (0005h)
Q2
Inst (0004h)
0005h
Value on all
Q3
Resets
other
Q4

Related parts for PIC16F785-I/P