Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Microcontroller Features:
Interrupt Capability
PIC16F527 Operating Speed:
- DC 20 MHz Crystal oscillator
- DC 200 ns Instruction cycle
Flash Program Memory:
- 1024 x 12 user execution memory
- 64 x 8 self-writable data memory
- 10K minimum erase/write cycles
General Purpose Registers (SRAM):
- 68 x 8 for PIC16F527
Only 36 Single-Word Instructions to Learn:
- Added RETURN and RETFIE instructions
- Added MOVLB instruction
All Instructions are Single-Cycle except for
Program Branches which are Two-Cycle
Four-Level Deep Hardware Stack
Direct, Indirect and Relative Addressing modes
for Data and Instructions
Peripheral Features:
CMOS Technology:
Device Features:
- 1 Input-only pin
- 17 I/Os
- Individual direction control
- High-current source/sink
8-Bit Real-Time Clock/Counter (TMR0) with 8-Bit
Programmable Prescaler
In-Circuit Serial Programming (ICSP) via Two
External Pin Connections
Analog Comparator (CMP):
- Two analog comparators
- Absolute and programmable references
Analog-to-Digital Converter (ADC):
- 8-bit resolution
- 8 external input channels
- 1 internal channel to convert comparator
- 0.6V reference input
Operational Amplifiers (op amps):
- 2 operational amplifiers
- Fully-accessible visibility
Preliminary
DS41652A-page 1
PIC16F527
Program
Memory
Data Memory
Device
I/O
Flash (words) SRAM (bytes)
PIC16F527
1024
FIGURE 1:
Flash
(bytes)
68
64
18
8-bit A/D
Channels
Op Amps
FIGURE 2:
1
2
RA4
RA3/MCLR/VPP
RC5
4
5
RC4
RC3
RC6
13
RC7
RB7
12
11
PIC16F527
VDD
RA5
20
19
VSS
18
17
RA1/ICSPCLK
RA2
RC0
16
15
14
10
RA0/ICSPDAT
RC1
RC2
RB4
RB5
RB6
DS41652A-page 2
VSS
RA0/ICSPDAT
17
16
VDD
18
8
9
10
12
11
RB5
RB4
RC6
PIC16F527 13
RB6
RC3
RA4
RA5
3
4
5
RC4
15
14
RB7
RC5
RC7
RA3/MCLR/VPP
20
19
20-pin QFN
Preliminary
RA1/ICSPCLK
RA2
RC0
RC1
RC2
PIC16F527
20-PIn PDIP/SOIC/SSOP
20-Pin QFN
Analog
Oscillator
Comparator
Reference
Timers
Op Amp
Clock Reference
ICSP
Basic
Pull-up
Interrupt-on-Change
I/O
TABLE 1:
RA0
19
16
AN0
C1IN+
ICSPDAT
RA1
18
15
AN1
C1IN-
CVREF
ICSPCLK
RA2
17
14
AN2
C1OUT
T0CKI
RA3
MCLR
VPP
RA4
20
AN3
OSC2
CLKOUT
RA5
19
OSC1
CLKIN
RB4
13
10
OP2-
RB5
12
OP2+
RB6
11
RB7
10
RC0
16
13
AN4
C2IN+
RC1
15
12
AN5
C2IN-
RC2
14
11
AN6
OP2
RC3
AN7
OP1
RC4
C2OUT
RC5
RC6
OP1-
RC7
OP1+
VDD
18
VSS
20
17
Preliminary
DS41652A-page 3
PIC16F527
Table of Contents
1.0 General Description..................................................................................................................................................................... 5
2.0 PIC16F527 Device Varieties .................................................................................... .................................................................. 7
3.0 Architectural Overview ................................................................................................................................................................ 9
4.0 Memory Organization ................................................................................................................................................................ 15
5.0 Flash Data Memory Control ...................................................................................................................................................... 25
6.0 I/O Port ...................................................................................................................................................................................... 29
7.0 Timer0 Module and TMR0 Register .......................................................................................................................................... 35
8.0 Special Features of the CPU ..................................................................................................................................................... 41
9.0 Analog-to-Digital (A/D) Converter.............................................................................................................................................. 59
10.0 Comparator(s) ........................................................................................................................................................................... 63
11.0 Comparator Voltage Reference Module .................................................................................................................................... 69
12.0 Operational Amplifier (OPA) Module ......................................................................................................................................... 71
13.0 Instruction Set Summary ........................................................................................................................................................... 73
14.0 Development Support................................................................................................................................................................ 81
15.0 Electrical Characteristics ........................................................................................................................................................... 85
16.0 DC and AC Characteristics Graphs and Charts ........................................................................................................................ 99
17.0 Packaging Information............................................................................................................................................................. 101
Index .................................................................................................................................................................................................. 113
The Microchip Web Site .................................................................................................................................................................... 115
Customer Change Notification Service ............................................................................................................................................. 115
Customer Support ............................................................................................................................................................................. 115
Reader Response ............................................................................................................................................................................. 116
Product Identification System............................................................................................................................................................ 117
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
Microchips Worldwide Web site; http://www.microchip.com
Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
DS41652A-page 4
Preliminary
PIC16F527
1.0
GENERAL DESCRIPTION
1.1
Applications
TABLE 1-1:
Clock
Memory
Peripherals
Features
20
1024
68
64
Timer Module(s)
TMR0
Yes
I/O Pins
17
Input Pins
Internal Pull-ups
Yes
Yes
Number of Instructions
36
Packages
The PIC16F527 device has Power-on Reset, selectable Watchdog Timer, selectable code-protect, high I/O current capability
and precision internal oscillator.
The PIC16F527 device uses serial programming with the ICSPDAT data pin and the ICSPCLK clock pin.
Preliminary
DS41652A-page 5
PIC16F527
NOTES:
DS41652A-page 6
Preliminary
PIC16F527
2.0
2.1
2.2
Preliminary
DS41652A-page 7
PIC16F527
NOTES:
DS41652A-page 8
Preliminary
PIC16F527
3.0
ARCHITECTURAL OVERVIEW
TABLE 3-1:
PIC16F527 MEMORY
Program
Memory
Data Memory
Device
PIC16F527
Flash
(words)
SRAM
(bytes)
Flash
(bytes)
1024
68
64
Preliminary
DS41652A-page 9
PIC16F527
FIGURE 3-1:
64x8
Program
Bus
STACK2
STACK3
12
STACK4
RAM Addr
RA0/ICSPDAT
RA1/ICSPCLK
RA2
RA3/MCLR/VPP
RA4/OSC2/CLKOUT
RA5/OSC1/CLKIN
PORTB
Addr MUX
Instruction reg
0-4
Direct Addr
3
PORTA
RAM
68
bytes
File
Registers
STACK1
Program
Memory
Data Bus
Program Counter
Direct Addr
BSR
0-7
5-7
RB4
RB5
RB6
RB7
Indirect
Addr
FSR reg
PORTC
STATUS reg
8
3
Brown-out
Reset
Instruction
Decode &
Control
Device Reset
Timer
OSC1/CLKIN
OSC2/CLKOUT
MUX
ALU
Power-on
Reset
Timing
Generation
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
8
OPAMP1 & OPAMP2
W reg
Watchdog
Timer
Internal RC
Clock
OP1
OP1OP1+
OP2
OP2OP2+
Timer0
MCLR
Comparator 1
VDD, VSS
T0CKI
VREF
C2IN+
AN0
Comparator 2
AN1
AN2
AN3
C1IN+
C1INC1OUT
8-bit ADC
AN4
CVREF
CVREF
AN5
C2INC2OUT
CVREF
AN6
AN7
VREF
DS41652A-page 10
Preliminary
PIC16F527
TABLE 3-2:
Name
Function
Input Type
Output Type
RA0/AN0/C1IN+/ICSPDAT
RA0
TTL
CMOS
ICSPDAT
ST
CMOS
C1IN+
AN
Comparator 1 input.
AN0
AN
RA1
TTL
CMOS
RA1/AN1/C1IN-/CVREF/
ICSPCLK
Description
Bidirectional I/O pin. It can be software
programmed for internal weak pull-up and
wake-up from Sleep on pin change.
ICSP mode Schmitt Trigger.
ICSPCLK
ST
C1IN-
AN
Comparator 1 input.
CVREF
AN
AN1
AN
RA2
TTL
CMOS
C1OUT
CMOS
Comparator 1 output.
AN2
AN
RA2/AN2/C1OUT/T0CKI
T0CKI
ST
RA3
TTL
MCLR
ST
VPP
HV
RA4
TTL
CMOS
OSC2
XTAL
CLKOUT
CMOS
AN3
AN
RA3/MCLR/VPP
RA4/AN3/OSC2/CLKOUT
RA5/OSC1/CLKIN
RA5
TTL
CMOS
OSC1
XTAL
CLKIN
ST
RB4
TTL
CMOS
RB4/OP2RB5/OP2+
OP2-
AN
RB5
TTL
CMOS
OP2+
AN
RB6
TTL
CMOS
RB7
RB7
TTL
CMOS
RC0/AN4/C2IN+
RC0
ST
CMOS
RB6
Legend:
AN4
AN
C2IN+
AN
Comparator 2 input.
I = Input, O = Output, I/O = Input/Output, P = Power, = Not Used, TTL = TTL input, ST = Schmitt Trigger input,
HV = High Voltage, AN = Analog Voltage
Preliminary
DS41652A-page 11
PIC16F527
TABLE 3-2:
Name
RC1/AN5/C2IN-
RC2/AN6/OP2
RC3/AN7/OP1
RC4/C2OUT
Input Type
Output Type
Description
RC1
ST
CMOS
AN5
AN
C2IN-
AN
Comparator 2 input.
RC2
ST
CMOS
AN6
AN
OP2
AN
Op amp 2 output.
RC3
ST
CMOS
AN7
AN
OP1
AN
Op amp 1 output.
RC4
ST
CMOS
C2OUT
CMOS
Comparator 2 output.
RC5
RC5
ST
CMOS
RC6/OP1-
RC6
ST
CMOS
OP1-
AN
RC7
ST
CMOS
OP1+
AN
VDD
VSS
RC7/OP1+
VDD
VSS
Legend:
I = Input, O = Output, I/O = Input/Output, P = Power, = Not Used, TTL = TTL input, ST = Schmitt Trigger input,
HV = High Voltage, AN = Analog Voltage
DS41652A-page 12
Preliminary
PIC16F527
3.1
Clocking Scheme/Instruction
Cycle
3.2
Instruction Flow/Pipelining
FIGURE 3-2:
CLOCK/INSTRUCTION CYCLE
Q2
Q1
Q3
Q4
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
OSC1
Q1
Q2
Internal
Phase
Clock
Q3
Q4
PC
PC
PC + 1
EXAMPLE 3-1:
PC + 2
1. MOVLW 03H
2. MOVWF PORTB
3. CALL SUB_1
Fetch 1
Execute 1
Fetch 2
Execute 2
Fetch 3
Execute 3
Fetch 4
Flush
Fetch SUB_1 Execute SUB_1
All instructions are single cycle, except for any program branches. These take two cycles, since the fetch instruction
is flushed from the pipeline, while the new instruction is being fetched and then executed.
Preliminary
DS41652A-page 13
PIC16F527
NOTES:
DS41652A-page 14
Preliminary
PIC16F527
MEMORY ORGANIZATION
FIGURE 4-1:
4.1
MEMORY MAP
000h
User Memory
Space
Interrupt Vector
Data Memory
Space
On-chip User
Program
Memory (Page 0)
On-chip User
Program
Memory (Page 1)
Reset Vector
Self-writable
Flash Data Memory
User ID Locations
Backup OSCCAL
Locations
Configuration Memory
Space
4.0
004h
005h
1FFh
200h
3FEh
3FFh
400h
43Fh
440h
443h
444h
447h
448h
Reserved
49Fh
4A0h
Unimplemented
7FEh
Configuration Word
7FFh
Preliminary
DS41652A-page 15
PIC16F527
4.2
4.2.1
4.2.2
BSR<1:0>
00
01
10
20h
File Address
40h
11
60h
00h
INDF(1)
INDF(1)
INDF(1)
01h
TMR0
EECON
TMR0
IW
02h
PCL
PCL
PCL
PCL
03h
STATUS
STATUS
STATUS
STATUS
INDF(1)
04h
FSR
FSR
FSR
FSR
05h
OSCCAL
EEDATA
OSCCAL
INTCON1
06h
PORTA
EEADR
PORTA
ISTATUS
07h
PORTB
CM1CON0
PORTB
IFSR
08h
PORTC
CM2CON0
PORTC
IBSR
09h
ADCON0
VRCON
ADCON0
OPACON
0Ah
ADRES
INTCON0
ANSEL
INTCON0
ADRES
INTCON0
4Ch
ANSEL
INTCON0
0Bh
2Ch
0Ch
General
Purpose
Registers
10h
4Fh
30h
General
Purpose
Registers
1Fh
6Fh
50h
General
Purpose
Registers
3Fh
Bank 0
6Ch
0Fh
Note 1:
FIGURE 4-2:
70h
General
Purpose
Registers
5Fh
Bank 1
General
Purpose
Registers
7Fh
Bank 2
Bank 3
Not a physical register. See Section 4.8 Direct and Indirect Addressing.
DS41652A-page 16
Preliminary
PIC16F527
TABLE 4-1:
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR/BOR
Value on all
other Resets
Bank 0
N/A
W(2)
xxxx xxxx
xxxx xxxx
N/A
TRIS
1111 1111
1111 1111
N/A
OPTION
1111 1111
1111 1111
N/A
BSR(2)
---- -000
---- -0uu
BSR2
BSR1
BSR0
00h
INDF
xxxx xxxx
uuuu uuuu
01h
TMR0
xxxx xxxx
uuuu uuuu
02h
PCL(1)
1111 1111
1111 1111
-001 1xxx
-00q qqqq
(2)
03h
STATUS
04h
FSR(2)
05h
OSCCAL
Reserved
CAL6
Reserved
PA0
TO
PD
DC
0xxx xxxx
0uuu uuuu
CAL4
CAL3
CAL2
CAL1
CAL0
1111 111-
uuuu uuu-
06h
PORTA
RA5
RA4
RA3
RA2
RA1
RA0
--xx xxxx
--uu uuuu
07h
PORTB
RB7
RB6
RB5
RB4
xxxx ----
uuuu ----
08h
PORTC
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
xxxx xxxx
uuuu uuuu
09h
ADCON0
ADCS1
ADCS0
CHS3
CHS2
CHS1
CHS0
GO/DONE
ADON
1111 1100
1111 1100
0Ah
ADRES
xxxx xxxx
uuuu uuuu
RAIF
0000 ---0
0000 ---0
0Bh
INTCON0
CWIF
T0IF
GIE
Bank 1
N/A
W(2)
xxxx xxxx
xxxx xxxx
N/A
TRIS
1111 1111
1111 1111
N/A
OPTION
1111 1111
1111 1111
N/A
BSR(2)
---- -000
---- -0uu
xxxx xxxx
uuuu uuuu
---0 0000
---0 0000
20h
INDF
21h
EECON
22h
PCL(1)
23h
STATUS(2)
24h
FSR(2)
25h
EEDATA
26h
EEADR
BSR2
BSR1
BSR0
WR
RD
FREE
WRERR
WREN
Reserved
PA0
PD
TO
DC
1111 1111
1111 1111
-001 1xxx
-00q qqqq
0xxx xxxx
0uuu uuuu
xxxx xxxx
uuuu uuuu
--xx xxxx
--uu uuuu
27h
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
1111 1111
quuu uuuu
28h
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
1111 1111
quuu uuuu
29h
VRCON
VREN
VROE
VRR
VR3
VR2
VR1
VR0
001- 1111
uuu- uuuu
2Ah
ANSEL
ANS7
ANS6
ANS5
ANS4
ANS3
ANS2
ANS1
ANS0
1111 1111
1111 1111
RAIF
GIE
0000 ---0
0000 ---0
2Bh
INTCON0
Legend:
Note 1:
2:
3:
ADIF
CWIF
T0IF
x = unknown, u = unchanged, = unimplemented, read as '0' (if applicable), q = value depends on condition.
Shaded cells = unimplemented or unused
The upper byte of the Program Counter is not directly accessible. See Section 4.6 Program Counter for an explanation of how to access
these bits.
Registers are implemented as two physical registers. When executing from within an ISR, a secondary register is used at the same logical
location. Both registers are persistent. See Section 8.11 Interrupts.
These registers show the contents of the registers in the other context: ISR or main line code. See Section 8.11 Interrupts.
Preliminary
DS41652A-page 17
PIC16F527
TABLE 4-1:
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR/BOR
Value on all
other Resets
Bank 2
N/A
W(2)
xxxx xxxx
xxxx xxxx
N/A
TRIS
1111 1111
1111 1111
N/A
OPTION
1111 1111
1111 1111
N/A
BSR(2)
---- -000
---- -0uu
BSR2
BSR1
BSR0
40h
INDF
xxxx xxxx
uuuu uuuu
41h
TMR0
xxxx xxxx
uuuu uuuu
42h
PCL(1)
1111 1111
1111 1111
(2)
Reserved
Reserved
PA0
TO
PD
DC
43h
STATUS
44h
FSR(2)
45h
OSCCAL
46h
PORTA
47h
PORTB
RB7
RB6
RB5
RB4
48h
PORTC
RC7
RC6
RC5
RC4
RC3
RC2
49h
ADCON0
ADCS1
ADCS0
CHS3
CHS2
CHS1
CHS0
GO/DONE
4Ah
ADRES
RAIF
4Bh
INTCON0
-001 1xxx
-00q qqqq
0xxx xxxx
0uuu uuuu
CAL6
CAL5
CAL4
CAL3
CAL2
CAL1
CAL0
1111 111-
uuuu uuu-
RA5
RA4
RA3
RA2
RA1
RA0
--xx xxxx
--uu uuuu
xxxx ----
uuuu ----
RC1
RC0
xxxx xxxx
uuuu uuuu
ADON
1111 1100
1111 1100
xxxx xxxx
uuuu uuuu
0000 ---0
0000 ---0
CWIF
T0IF
GIE
Bank 3
N/A
W(2)
xxxx xxxx
xxxx xxxx
N/A
TRIS
1111 1111
1111 1111
N/A
OPTION
1111 1111
1111 1111
N/A
BSR(2)
---- -000
---- -0uu
BSR2
BSR1
BSR0
60h
INDF
xxxx xxxx
uuuu uuuu
61h
IW(3)
xxxx xxxx
xxxx xxxx
62h
PCL(1)
1111 1111
1111 1111
63h
STATUS(2)
-001 1xxx
-00q qqqq
64h
FSR(2)
0xxx xxxx
0uuu uuuu
Reserved
Reserved
PA0
ADIE
CWIE
T0IE
RAIE
WUR
0000 ---0
0000 ---0
Reserved
PA0
TO
PD
DC
-xxx xxxx
-00q qqqq
0xxx xxxx
0uuu uuuu
BSR2
BSR1
BSR0
---- -0xx
---- -0uu
OPA2ON
OPA1ON
---- --00
---- --00
T0IF
RAIF
GIE
0000 ---0
0000 ---0
67h
IFSR(3)
68h
IBSR(3)
69h
OPACON
6Bh
INTCON0
ADIF
CWIF
3:
DC
Reserved
INTCON1
ISTATUS(3)
2:
66h
Note 1:
PD
65h
Legend:
TO
x = unknown, u = unchanged, = unimplemented, read as '0' (if applicable), q = value depends on condition.
Shaded cells = unimplemented or unused
The upper byte of the Program Counter is not directly accessible. See Section 4.6 Program Counter for an explanation of how to access
these bits.
Registers are implemented as two physical registers. When executing from within an ISR, a secondary register is used at the same logical
location. Both registers are persistent. See Section 8.11 Interrupts.
These registers show the contents of the registers in the other context: ISR or main line code. See Section 8.11 Interrupts.
DS41652A-page 18
Preliminary
PIC16F527
4.3
STATUS Register
REGISTER 4-1:
R-0
R-0
R/W-0
R-1
R-1
R/W-x
R/W-x
R/W-x
Reserved
Reserved
PA0
TO
PD
DC
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-6
Reserved: Read as 0
bit 5
bit 4
bit 3
bit 2
Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
bit 1
bit 0
Preliminary
DS41652A-page 19
PIC16F527
4.4
OPTION Register
Note:
REGISTER 4-2:
W-1
W-1
W-1
W-1
W-1
W-1
W-1
W-1
RAWU(2)
RAPU
T0CS(1)
T0SE
PSA
PS2
PS1
PS0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
Note 1:
2:
Bit Value
Timer0 Rate
WDT Rate
000
001
010
011
100
101
110
111
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
1 : 256
1:1
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
x = Bit is unknown
If the T0CS bit is set to 1, it will override the TRIS function on the T0CKI pin.
The RAWU bit of the OPTION register must be set to enable the RAIF function in the INTCON0 register.
DS41652A-page 20
Preliminary
PIC16F527
4.5
OSCCAL Register
REGISTER 4-3:
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
U-0
CAL6
CAL5
CAL4
CAL3
CAL2
CAL1
CAL0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-1
0000001
0000000 = Center frequency
1111111
bit 0
Unimplemented: Read as 0
Preliminary
x = Bit is unknown
DS41652A-page 21
PIC16F527
4.6
4.6.1
Program Counter
EFFECTS OF RESET
FIGURE 4-3:
LOADING OF PC
BRANCH INSTRUCTIONS
GOTO Instruction
10 9 8 7
PC
0
PCL
Instruction Word
PA0
4.7
Status
CALL or Modify PCL Instruction
10 9 8 7
PC
Stack
0
PCL
Instruction Word
Reset to 0
PA0
0
Status
DS41652A-page 22
Preliminary
PIC16F527
4.8
4.8.1
4.8.2
EXAMPLE 4-1:
NEXT
MOVLW
MOVWF
CLRF
INCF
BTFSC
GOTO
CONTINUE
:
:
;initialize pointer
;to RAM
;clear INDF
;register
;inc pointer
;all done?
;NO, clear next
;YES, continue
Preliminary
DS41652A-page 23
PIC16F527
FIGURE 4-4:
(BSR)
1
DIRECT/INDIRECT ADDRESSING
Direct Addressing
(opcode)
4
bank select
Indirect Addressing
(FSR)
0
location select
00
01
10
11
bank
select
location select
00h
Data
Memory(1)
0Bh
0Ch
Addresses map back to
addresses in Bank 0.
0Fh
10h
2Fh
4Fh
6Fh
1Fh
3Fh
5Fh
7Fh
Bank 0
Bank 1
Bank 2
Bank 3
Note 1:For register map detail see Section 4.3 STATUS Register.
DS41652A-page 24
Preliminary
PIC16F527
5.0
3.
4.
5.1
EXAMPLE 1:
MOVF DATA_EE_ADDR, W
MOVWF EEADR
;Data Memory
BANKSEL EECON1
;
;EE Read
MOVF EEDATA, W
;W = EEDATA
2.
2.
3.
4.
EXAMPLE 2:
1.
5.2
5.2.1
;Address to read
BSF EECON, RD
BANKSEL EEADR
BANKSEL
EEADR
MOVLW
EE_ADR_ERASE
MOVWF
EEADR
BSF
EECON,FREE
; SELECT ERASE
BSF
EECON,WREN
; ENABLE WRITES
BSF
EECON,WR
; INITITATE ERASE
; ERASE
Note 1: The FREE bit may be set by any command normally used by the core. However, the WREN and WR bits can only be
set using a series of BSF commands, as
documented in Example 1. No other
sequence of commands will work, no
exceptions.
Preliminary
DS41652A-page 25
PIC16F527
5.2.2
5.3
Write Verify
EXAMPLE 4:
MOVF
EEDATA, W
BSF
EECON, RD
EEDATA, W
BTFSS
STATUS, Z
GOTO
WRITE_ERR
EXAMPLE 3:
BANKSEL
MOVLW
MOVWF
MOVLW
MOVWF
BSF
BSF
EEADR
EE_ADR_WRITE
EEADR
EE_DATA_TO_WRITE
EEDATA
EECON,WREN
EECON,WR
;
;
;
;
;
;
LOAD ADDRESS
LOAD DATA
INTO EEDATA REGISTER
ENABLE WRITES
INITITATE ERASE
DS41652A-page 26
Preliminary
PIC16F527
5.4
REGISTER 5-1:
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
EEDATA7
EEDATA6
EEDATA5
EEDATA4
EEDATA3
EEDATA2
EEDATA1
EEDATA0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-0
x = Bit is unknown
REGISTER 5-2:
U-0
U-0
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
EEADR5
EEADR4
EEADR3
EEADR2
EEADR1
EEADR0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-6
Unimplemented: Read as 0.
bit 5-0
Preliminary
x = Bit is unknown
DS41652A-page 27
PIC16F527
REGISTER 5-3:
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
FREE
WRERR
WREN
WR
RD
bit 7
bit 0
Legend:
S = Bit can only be set
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-5
Unimplemented: Read as 0.
bit 4
bit 3
bit 2
bit 1
bit 0
5.5
Code Protection
DS41652A-page 28
Preliminary
PIC16F527
6.0
I/O PORT
6.2
6.1
PORTA
6.3
PORTC
6.4
PORTB
TRIS Register
Preliminary
DS41652A-page 29
PIC16F527
6.5
FIGURE 6-1:
I/O Interfacing
RxPU
Data
Bus
Q
Data
Latch
WR
Port
I/O Pin(1)
Q
CK
W
Reg
Q
TRIS
Latch
TRIS f
CK
Reset
(2)
(2)
RD Port
Q
CK
Pin Change
ADC
COMP
Note 1:
2:
DS41652A-page 30
Preliminary
PIC16F527
6.6
REGISTER 6-1:
U-0
U-0
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
RA5
RA4
RA3
RA2
RA1
RA0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-6
Unimplemented: Read as 0
bit 5-0
TABLE 6-1:
x = Bit is unknown
Priority
RA5
RA4
RA3
RA2
RA1
RA0
1
2
3
4
OSC1
CLKIN
TRISA5
OSC2
CLKOUT
AN3
TRISA5
RA3/MCLR
AN2
C1OUT
T0CKI
TRISA2
CVREF
AN1
C1INTRISA1
AN0
C1IN+
TRISA0
TABLE 6-2:
Device
PIC16F527
Yes
Yes
Yes
Yes
REGISTER 6-2:
R/W-x
R/W-x
R/W-x
R/W-x
U-0
U-0
U-0
U-0
RB7
RB6
RB5
RB4
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-4
bit 3-0
Unimplemented: Read as 0
TABLE 6-3:
x = Bit is unknown
Priority
RB7
RB6
TRISB7
TRISB6
OP2+
OP2-
TRISB5
TRISB4
RB5
RB4
Preliminary
DS41652A-page 31
PIC16F527
REGISTER 6-3:
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-0
x = Bit is unknown
TABLE 6-4:
Priority
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
1
2
3
OP1+
TRISC7
OP1TRISC6
TRISC5
C2OUT
TRISC4
OP1
AN7
TRISC3
OP2
AN6
TRISC2
C2INAN5
TRISC1
C2IN+
AN4
TRISC0
REGISTER 6-4:
ANSEL REGISTER
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
ANS7
ANS6
ANS5
ANS4
ANS3
ANS2
ANS1
ANS0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-0
Note 1: When the ANSx bits are set, the channels selected will automatically be forced into Analog mode,
regardless of the pin function previously defined. The only exception to this is the comparator, where the
analog input to the comparator and the ADC will be active at the same time. It is the users responsibility to
ensure that the ADC loading on the comparator input does not affect their application.
2: The ANS<7:0> bits are active regardless of the condition of ADON.
TABLE 6-5:
Address
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
1111 1111
1111 1111
RA2
RA1
RA0
--xx xxxx
--uu uuuu
Value on
MCLR and
WDT Reset
N/A
TRIS(1)
06h
PORTA
07h
PORTB
RB7
RB6
RB5
RB4
xxxx ----
uuuu ----
27h
PORTC
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
xxxx xxxx
uuuu uuuu
RA5
RA4
RA3
Legend:
Note 1:
DS41652A-page 32
Preliminary
PIC16F527
6.7
EXAMPLE 6-1:
6.7.1
6.7.2
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
PC
Instruction
Fetched
SUCCESSIVE OPERATIONS ON
I/O PORTS
FIGURE 6-2:
READ-MODIFY-WRITE
INSTRUCTIONS ON AN
I/O PORT(e.g. PIC16F527)
MOVWF PORTB
PC + 1
MOVF PORTB, W
Q1 Q2 Q3 Q4
PC + 2
PC + 3
NOP
NOP
RB<5:0>
MOVWF PORTB
(Write to PORTB)
Port pin
sampled here
MOVF PORTB,W
(Read PORTB)
Preliminary
DS41652A-page 33
PIC16F527
NOTES:
DS41652A-page 34
Preliminary
PIC16F527
7.0
FIGURE 7-1:
Comparator
Output
FOSC/4
PSOUT
1
1
Programmable
Prescaler(2)
T0SE(1)
T0CKI
pin
T0CS(1)
8
Sync with
Internal
Clocks
TMR0 Reg
PSOUT
(2 cycle delay) Sync
PSA(1)
C1T0CS
Note 1: Bits T0CS, T0SE, PSA, PS2, PS1 and PS0 are located in the OPTION register.
2: The prescaler is shared with the Watchdog Timer.
3: The C1T0CS bit is in the CM1CON0 register.
Preliminary
DS41652A-page 35
PIC16F527
FIGURE 7-2:
PC
(Program
Counter)
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
PC 1
Instruction
Fetch
PC
PC + 1
MOVWF TMR0
T0
Timer0
T0 + 1
T0 + 2
Instruction
Executed
Write TMR0
executed
FIGURE 7-3:
PC
(Program
Counter)
PC + 2
PC + 3
PC + 4
PC + 5
PC + 6
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
NT0 + 1
NT0
Read TMR0
reads NT0
Read TMR0
reads NT0
Read TMR0
reads NT0
NT0 + 2
Read TMR0
Read TMR0
reads NT0 + 1 reads NT0 + 2
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
PC 1
Instruction
Fetch
Timer0
PC
PC + 1
MOVWF TMR0
T0
PC + 2
PC + 4
PC + 5
PC + 6
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
T0 + 1
Instruction
Executed
NT0
Write TMR0
executed
TABLE 7-1:
PC + 3
Read TMR0
reads NT0
Read TMR0
reads NT0
NT0 + 1
Read TMR0
reads NT0
Read TMR0
Read TMR0
reads NT0 + 1 reads NT0 + 2
Register
on page
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
66
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1 C2WU
67
OPTION
RAWU
RAPU
T0CS
T0SE
PSA
PS2
Name
TMR0
TRIS
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
(1)
Bit 2
Bit 1
PS1
PS0
DS41652A-page 36
Preliminary
20
PIC16F527
7.1
7.1.1
EXTERNAL CLOCK
SYNCHRONIZATION
FIGURE 7-4:
7.1.2
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Small pulse
misses sampling
(1)
External Clock/Prescaler
Output After Sampling
(3)
Note 1:
T0
T0 + 1
T0 + 2
Delay from clock input change to Timer0 increment is 3 TOSC to 7 TOSC. (Duration of Q = TOSC). Therefore, the error
in measuring the interval between two edges on Timer0 input = 4 TOSC max.
2:
3:
Preliminary
DS41652A-page 37
PIC16F527
7.2
EXAMPLE 7-1:
Prescaler
7.2.1
CHANGING PRESCALER
(TIMER0 WDT)
CLRWDT
CLRF
TMR0
MOVLW b'00xx1111'
CLRWDT
MOVLW b'00xx1xxx'
OPTION
;Clear WDT
;Clear TMR0 & Prescaler
;PS<2:0> are 000 or 001
;Set Postscaler to
;desired WDT rate
EXAMPLE 7-2:
CHANGING PRESCALER
(WDT TIMER0)
CLRWDT
MOVLW
b'xxxx0xxx'
OPTION
SWITCHING PRESCALER
ASSIGNMENT
DS41652A-page 38
Preliminary
PIC16F527
FIGURE 7-5:
TCY (= FOSC/4)
Data Bus
0
Comparator
Output
0
1
M
U
X
1
0
1
T0CKI
Pin
M
U
X
T0SE(1)
T0CS(1)
Sync
2
Cycles
TMR0 Reg
PSA(1)
C1TOCS
Watchdog
Timer
8-bit Prescaler
M
U
X
8
PS<2:0>(1)
8-to-1 MUX
(1)
PSA
WDT Enable bit
0
MUX
PSA(1)
WDT
Time-out
Note 1:
Preliminary
DS41652A-page 39
PIC16F527
NOTES:
DS41652A-page 40
Preliminary
PIC16F527
8.0
8.1
Configuration Bits
Oscillator Selection
Reset:
- Power-on Reset (POR)
- Brown-out Reset (BOR)
- Device Reset Timer (DRT)
- Wake-up from Sleep on Pin Change
Watchdog Timer (WDT)
Sleep
Code Protection
ID Locations
In-Circuit Serial Programming
Clock Out
The device has a Watchdog Timer, which can be shut
off only through Configuration bit WDTE. The
Watchdog Timer runs off of its own RC oscillator for
added reliability.
There is also a Device Reset Timer (DRT), intended to
keep the chip in Reset until the crystal oscillator is
stable. The DRT can be enabled with the DRTEN
Configuration bit. For the HS, XT or LP oscillator
options, the 18 ms (nominal) delay is always provided
by the Device Reset Timer and the DRTEN bit is
ignored. When using the EC clock, INTRC or EXTRC
oscillator options, there is a standard delay of 10 us on
power-up, which can be extended to 18 ms with the
use of the DRT timer. With the DRT timer on-chip,
most applications require no additional external Reset
circuitry.
The Sleep mode is designed to offer a very low current
Power-Down mode. The user can wake-up from Sleep
through a change on input pin or through a Watchdog
Timer time-out. Several oscillator options are also
made available to allow the part to fit the application,
including an internal 4/8 MHz oscillator. The EXTRC
oscillator option saves system cost while the LP crystal
option saves power. A set of Configuration bits are
used to select various options.
Preliminary
DS41652A-page 41
PIC16F527
8.2
REGISTER 8-1:
U-1
U-1
R/P-1
R/P-1
R/P-1
R/P-1
IOSCFS MCLRE
R/P-1
R/P-1
R/P-1
CP
WDTE
R/P-1
R/P-1
bit 11
bit 0
Legend:
R = Readable bit
P = Programmable bit
0 = Bit is cleared
1 = Bit is set
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
Note 1: Refer to the PIC16F527 Memory Programming Specification, DS41640 to determine how to access the
Configuration Word.
2: DRT length and start-up time are functions of the Clock mode selection. It is the responsibility of the
application designer to ensure the use of either will result in acceptable operation. Refer to Section 15.0
Electrical Characteristics for VDD rise time and stability requirements for this mode of operation.
3: The optional DRTEN fuse can be used to extend the start-up time to 18 ms.
DS41652A-page 42
Preliminary
PIC16F527
8.3
FIGURE 8-1:
Oscillator Configurations
8.3.1
OSCILLATOR TYPES
LP:
XT:
HS:
INTRC:
EXTRC:
EC:
8.3.2
CRYSTAL OPERATION
(OR CERAMIC
RESONATOR)
(HS, XT OR LP OSC
CONFIGURATION)
Low-Power Crystal
Crystal/Resonator
High-Speed Crystal/Resonator
Internal 4/8 MHz Oscillator
External Resistor/Capacitor
External High-Speed Clock Input
C1(1)
PIC Device
Sleep
XTAL
RS(2)
RF(3)
To internal
logic
OSC2
C2(1)
Note 1:
CRYSTAL OSCILLATOR/CERAMIC
RESONATORS
OSC1
2:
3:
FIGURE 8-2:
OSC1/CLKIN
PIC Device
OSC2/CLKOUT
Note 1:
OSC2/CLKOUT(1)
TABLE 8-1:
Osc
Type
Resonator
Freq.
XT
4.0 MHz
30 pF
30 pF
HS
16 MHz
10-47 pF
10-47 pF
Note 1:
Preliminary
Cap. Range
C1
Cap. Range
C2
DS41652A-page 43
PIC16F527
TABLE 8-2:
Osc
Type
Resonator
Freq.
Cap. Range
C1
Cap. Range
C2
LP
32 kHz(1)
15 pF
15 pF
XT
200 kHz
1 MHz
4 MHz
47-68 pF
15 pF
15 pF
47-68 pF
15 pF
15 pF
20 MHz
15-47 pF
15-47 pF
HS
Note 1:
2:
FIGURE 8-4:
330
FIGURE 8-3:
+5V
To Other
Devices
10k
74AS04
CLKIN
74AS04
PIC Device
10k
XTAL
74AS04
74AS04
CLKIN
0.1 mF
PIC Device
XTAL
EXTERNAL RC OSCILLATOR
EXTERNAL PARALLEL
RESONANT CRYSTAL
OSCILLATOR CIRCUIT
4.7k
To Other
Devices
330
74AS04
8.3.4
8.3.3
EXTERNAL SERIES
RESONANT CRYSTAL
OSCILLATOR CIRCUIT
10k
20 pF
DS41652A-page 44
20 pF
Preliminary
PIC16F527
Also, see the Electrical Specifications section for
variation of oscillator frequency due to VDD for given
REXT/CEXT values, as well as frequency variation due
to operating temperature for given R, C and VDD
values.
FIGURE 8-5:
EXTERNAL RC
OSCILLATOR MODE
VDD
REXT
OSC1
Internal
clock
CEXT
PIC Device
VSS
FOSC/4
OSC2/CLKOUT
8.3.5
Erasing the device will also erase the preprogrammed internal calibration value for
the internal oscillator. The calibration
value must be read prior to erasing the
part so it can be reprogrammed correctly
later.
Preliminary
DS41652A-page 45
PIC16F527
8.4
Reset
TABLE 8-3:
0001 1xxx
000u uuuu
0001 0uuu
0000 0uuu
0000 uuuu
1001 0uuu
0101 0uuu
DS41652A-page 46
Preliminary
PIC16F527
8.4.1
MCLR ENABLE
FIGURE 8-6:
MCLR SELECT
RAPU
MCLR/VPP
MCLRE
8.5
Internal MCLR
The PIC16F527 device incorporates an on-chip Poweron Reset (POR) circuitry, which provides an internal
chip Reset for most power-up situations.
The on-chip POR circuit holds the chip in Reset until
VDD has reached a high enough level for proper operation. To take advantage of the internal POR, program
the MCLR/VPP pin as MCLR and tie through a resistor
to VDD, or program the pin as an input pin. An internal
weak pull-up resistor is implemented using a transistor
(refer to Table 15-7 for the pull-up resistor ranges). This
will eliminate external RC components usually needed
to create a Power-on Reset. A maximum rise time for
VDD is specified. See Section 15.0 Electrical Characteristics for details.
When the device starts normal operation (exit the
Reset condition), device operating parameters (voltage, frequency, temperature,...) must be met to ensure
operation. If these conditions are not met, the device
must be held in Reset until the operating parameters
are met.
Preliminary
DS41652A-page 47
PIC16F527
FIGURE 8-7:
VDD
Power-up
Detect
MCLR/VPP
MCLR Reset
S
MCLRE
WDT Time-out
Pin Change
Sleep
WDT Reset
Start-up Timer
(10 us or 18 ms)
CHIP Reset
Comparator Change
Wake-up on
Comparator Change
FIGURE 8-8:
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
FIGURE 8-9:
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
DS41652A-page 48
Preliminary
PIC16F527
FIGURE 8-10:
V1
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
Note:
When VDD rises slowly, the TDRT time-out expires long before VDD has reached its final
value. In this example, the chip will reset properly if, and only if, V1 VDD min.
Preliminary
DS41652A-page 49
PIC16F527
8.6
TABLE 8-4:
8.7
Oscillator
Configuration
Subsequent
Resets
HS, XT, LP
18 ms
18 ms
EC
10 us
10 s
INTOSC, EXTRC
10 us
10 s
8.7.1
WDT PERIOD
8.7.2
WDT PROGRAMMING
CONSIDERATIONS
DS41652A-page 50
Preliminary
PIC16F527
FIGURE 8-11:
Watchdog
Time
Postscaler
8-to-1 MUX
PS<2:0>(1)
PSA
WDT Enable
Configuration
Bit
1
MUX
PSA(1)
WDT Time-out
Note 1:
TABLE 8-5:
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register on
page
OPTION
RAWU
RAPU
T0SC
T0SE
PSA
PS2
PS1
PS0
20
8.8
TABLE 8-6:
TO
PD
Reset Caused By
Legend: u = unchanged
Note 1: The TO and PD bits maintain their status
(u) until a Reset occurs. A low pulse on
the MCLR input does not change the TO
and PD Status bits.
Preliminary
DS41652A-page 51
PIC16F527
8.9
Note:
FIGURE 8-12:
VDD
VBOR + VHYST
VBOR
37
Reset
(due to BOR)
32
FIGURE 8-13:
BROWN-OUT SITUATIONS
VDD
Internal
Reset
VBOR
18 ms
(DRTEN = 1)
VDD
Internal
Reset
VBOR
< 18 ms
18 ms
(DRTEN = 1)
VDD
Internal
Reset
DS41652A-page 52
VBOR
18 ms
(DRTEN = 1)
Preliminary
PIC16F527
8.10
8.10.1
SLEEP
8.10.2
Preliminary
DS41652A-page 53
PIC16F527
8.11
Interrupts
8.13
Timer0 Overflow
ADC Completion
Comparator Output Change
Interrupt-on-change pin
8.12
Operation
8.14
TABLE 8-7:
DS41652A-page 54
Preliminary
INTERRUPT PRIORITIES
In Sleep
GIE
WUR
Wake-up Inline
Watchdog
Wake-up Inline
Watchdog
Wake-up Reset
Vector or
Wake-up and Vector
Wake-up Reset
PIC16F527
8.15
REGISTER 8-2:
INTCON0 REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
U-0
R/W-0
ADIF
CWIF
T0IF
RAIF
GIE
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3-1
Unimplemented: Read as 0
bit 0
x = Bit is unknown
Note 1: This bit only functions when the C1WU or C2WU bits are set (see Register 10-1 and Register 10-2).
2: The RAWU bit of the OPTION register must be set to enable this function (see Register 4-2).
Preliminary
DS41652A-page 55
PIC16F527
REGISTER 8-3:
INTCON1 REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
U-0
R/W-0
ADIE
CWIE
T0IE
RAIE
WUR
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7
bit 6
bit 5
bit 4
bit 3-1
Unimplemented: Read as 0
bit 0
DS41652A-page 56
Preliminary
PIC16F527
8.16
FIGURE 8-14:
Program Verification/Code
Protection
8.17
External
Connector
Signals
ID Locations
TYPICAL IN-CIRCUIT
SERIAL PROGRAMMING
CONNECTION
To Normal
Connections
PIC Device
+5V
VDD
0V
VSS
VPP
MCLR/VPP
CLK
ICSPCLK
Data
ICSPDAT
VDD
8.18
To Normal
Connections
Preliminary
DS41652A-page 57
PIC16F527
NOTES:
DS41652A-page 58
Preliminary
PIC16F527
9.0
ANALOG-TO-DIGITAL (A/D)
CONVERTER
Note:
9.1
Clock Divisors
9.1.1
The ADC clock is derived from the instruction clock. The ADCS divisors are then
applied to create the ADC clock
VOLTAGE REFERENCE
9.1.2
9.1.3
TABLE 9-1:
Event
MCLR
ADCS<1:0>
11
Conversion completed
CS<1:0>
Conversion terminated
CS<1:0>
Power-on
11
11
9.1.4
Preliminary
DS41652A-page 59
PIC16F527
9.1.5
SLEEP
TABLE 9-2:
Source
350
kHz
200
kHz
100
kHz
Divisor
11
.5 s
1 s
.25 s
.5 s
1 s
4 s
8 s
11 s
20 s
40 s
125 s
INTOSC
20
MHz
500
kHz
ADCS
<1:0>
32 kHz
FOSC
10
.2 s
FOSC
01
.4 s
.5 s
1 s
2 s
8 s
16 s
23 s
40 s
80 s
250 s
FOSC
00
16
.8 s
1 s
2 s
4 s
16 s
32 s
46 s
80 s
160 s
500 s
TABLE 9-3:
ADCS1
ADCS0
CHS<3:0>
GO/DONE
ADON
Entering Sleep
Unchanged
Wake or Reset
DS41652A-page 60
Preliminary
PIC16F527
9.1.6
REGISTER 9-1:
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-0
R/W-0
ADCS1
ADCS0
CHS3
CHS2
CHS1
CHS0
GO/DONE
ADON
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-2
bit 1
bit 0
Note 1:
2:
Preliminary
DS41652A-page 61
PIC16F527
REGISTER 9-2:
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
ADRES7
ADRES6
ADRES5
ADRES4
ADRES3
ADRES2
ADRES1
ADRES0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-0
EXAMPLE 9-1:
PERFORMING AN
ANALOG-TO-DIGITAL
CONVERSION
EXAMPLE 9-2:
loop0
x = Bit is unknown
MOVLW 0xF1
;configure A/D
MOVWF ADCON0
BSF ADCON0, 1 ;start conversion
BTFSC ADCON0, 1;wait for DONE
GOTO loop0
MOVF ADRES, W ;read result
MOVWF result0 ;save result
loop1
loop2
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
BSF ADCON0, 2
;configure A/D
loop0
;start conversion
;setup for read of
;channel 1
BTFSC ADCON0, 1;wait for DONE
GOTO loop0
MOVF ADRES, W ;read result
MOVWF result0 ;save result
loop1
BSF ADCON0, 2
DS41652A-page 62
CHANNEL SELECTION
CHANGE DURING
CONVERSION
loop2
Preliminary
PIC16F527
10.0
COMPARATOR(S)
FIGURE 10-1:
and
C1PREF
C1IN+
C1OUTEN
+
C1IN-
0
C1OUT (Register)
1
-
VREF
(0.6V)
0
C1NREF
C1POL
C1ON
T0CKI
T0CKI Pin
C1T0CS
RC4/C2OUT
C2PREF1
C2IN+
READ
CM1CON0
C2OUTEN
1
+
0
C2OUT (Register)
0
C2PREF2
C2IN-
C2POL
C2ON
1
0
CVREF
C2NREF
C1WU
S
CWIF
READ
CM2CON0
C2WU
Preliminary
DS41652A-page 63
PIC16F527
10.1
Comparator Operation
10.4
FIGURE 10-2:
VIN+
Note:
10.5
Result
VIN-
SINGLE COMPARATOR
Comparator Output
C1WU = 0 (CM1CON0<0>) or
C2WU = 0 (CM2CON0<0>)
CM1CON0 or CM2CON0 has been read to latch
the last known state of the C1OUT and C2OUT bit
(MOVF CM1CON0, W)
The output of a comparator has changed state
VINVIN+
10.6
10.2
Comparator Reference
10.3
DS41652A-page 64
10.7
Effects of Reset
10.8
Preliminary
PIC16F527
FIGURE 10-3:
RS < 10 K
RIC
AIN
CPIN
5 pF
VA
VT = 0.6V
ILEAKAGE
500 nA
VSS
Legend:
CPIN
VT
ILEAKAGE
RIC
RS
VA
=
=
=
=
=
=
Input Capacitance
Threshold Voltage
Leakage Current at the Pin
Interconnect Resistance
Source Impedance
Analog Voltage
Preliminary
DS41652A-page 65
PIC16F527
10.9
REGISTER 10-1:
R-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
x = Bit is unknown
2: When comparator is turned on, these control bits assert themselves. Otherwise, the other registers have
precedence.
3: The C1WU bit must be set to enable the CWIF function. See the INTCON0 register (Register 8-2) for more
information.
DS41652A-page 66
Preliminary
PIC16F527
REGISTER 10-2:
R-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
x = Bit is unknown
TABLE 10-1:
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register
on page
PA0
TO
PD
DC
19
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
66
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF C2PREF1
C2WU
67
Name
STATUS
TRIS
Preliminary
DS41652A-page 67
PIC16F527
NOTES:
DS41652A-page 68
Preliminary
PIC16F527
11.0
COMPARATOR VOLTAGE
REFERENCE MODULE
11.2
11.1
EQUATION 11-1:
REGISTER 11-1:
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
VREN
VROE
VRR
VR3
VR2
VR1
VR0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
Unimplemented: Read as 0
bit 3-0
x = Bit is unknown
Note 1: When this bit is set, the TRIS for the CVREF pin is overridden and the analog voltage is placed on the
CVREF pin.
Preliminary
DS41652A-page 69
PIC16F527
FIGURE 11-1:
8R
VDD
8R
VRR
16-1 Analog
MUX
VREN
CVREF to
Comparator 2
Input
VR<3:0>
RA1/CVREF
VREN
VR<3:0> = 0000
VRR
VROE
TABLE 11-1:
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register
on page
VREN
VROE
VRR
VR3
VR2
VR1
VR0
69
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
66
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
67
Name
VRCON
DS41652A-page 70
Preliminary
PIC16F527
12.0
OPERATIONAL AMPLIFIER
(OPA) MODULE
12.1
OPACON Register
FIGURE 12-1:
OPACON<OPA2ON>
OP2+
OPA2
OP2OP2
Preliminary
DS41652A-page 71
PIC16F527
REGISTER 12-1:
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
OPA2ON
OPA1ON
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-2
Unimplemented: Read as 0
bit 1
bit 0
12.2
Effects of a Reset
12.3
Input offset voltage is a measure of the voltage difference between the OPA+ and OPA- inputs in a closed
loop circuit with the OPA in its linear region. The offset
voltage will appear as a DC offset in the output equal to
the input offset voltage, multiplied by the gain of the
circuit. The input offset voltage is also affected by the
common mode voltage.
TABLE 12-1:
x = Bit is unknown
12.4
Effects of Sleep
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register on
page
ANSEL
ANS7
ANS6
ANS5
ANS4
ANS3
ANS2
ANS1
ANS0
32
OPACON
TRIS
OPA2ON OPA1ON
72
Legend: x = unknown, u = unchanged, - = unimplemented, read as 0. Shaded cells are not used for the OPA
module.
DS41652A-page 72
Preliminary
PIC16F527
13.0
FIGURE 13-1:
11
Label name
PC
WDT
TO
OPCODE
0
k (literal)
Options
Contents
italics
0
k (literal)
Time-out bit
Destination, either the W register or the specified
register file location
Program Counter
PD
< >
dest
0
f (FILE #)
Destination select;
d = 0 (store result in W)
d = 1 (store result in file register f)
Default is d = 1
Top-of-Stack
8 7
5 4
b (BIT #)
OPCODE
TOS
0
f (FILE #)
Description
label
5
d
d = 0 for destination W
d = 1 for destination f
f = 5-bit file register address
OPCODE FIELD
DESCRIPTIONS
Field
6
OPCODE
TABLE 13-1:
Assigned to
Register bit field
In the set of
User defined term (font is courier)
Preliminary
DS41652A-page 73
PIC16F527
TABLE 13-2:
Mnemonic,
Operands
ADDWF
ANDWF
CLRF
CLRW
COMF
DECF
DECFSZ
INCF
INCFSZ
IORWF
MOVF
MOVWF
NOP
RLF
RRF
SUBWF
SWAPF
XORWF
Cycles
MSb
LSb
Status
Notes
Affected
f, d
f, d
f
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f
f, d
f, d
f, d
f, d
f, d
Return, maintain W
2
0000 0001 1110
SLEEP
DS41652A-page 74
Preliminary
PIC16F527
ADDWF
Add W and f
BCF
f,d
Bit Clear f
Syntax:
[ label ] ADDWF
Syntax:
[ label ] BCF
Operands:
0 f 31
d 01
Operands:
0 f 31
0b7
Operation:
Operation:
0 (f<b>)
Status
Affected:
C, DC, Z
Status Affected:
None
Description:
Description:
Bit Set f
Syntax:
[ label ] BSF
Operands:
0 f 31
0b7
Operation:
1 (f<b>)
Status Affected: Z
Status Affected:
None
Description:
Description:
BTFSC
ANDWF
AND W with f
Syntax:
[ label ] ANDWF
Operands:
Operation:
ANDLW
Syntax:
[ label ] ANDLW
Operands:
0 k 255
Operation:
f,b
Syntax:
Operands:
0 f 31
d [0,1]
0 f 31
0b7
Operation:
skip if (f<b>) = 0
Status Affected:
None
Description:
f,d
Status Affected: Z
Description:
f,b
Preliminary
DS41652A-page 75
PIC16F527
BTFSS
CLRW
Syntax:
Syntax:
[ label ] CLRW
0 f 31
0b<7
Operands:
None
Operation:
00h (W);
1Z
Operands:
Clear W
Operation:
skip if (f<b>) = 1
Status Affected:
None
Status Affected:
Description:
Description:
CALL
Subroutine Call
CLRWDT
Syntax:
[ label ] CALL k
Syntax:
[ label ] CLRWDT
Operands:
0 k 255
Operands:
None
Operation:
(PC) + 1 Top-of-Stack;
k PC<7:0>;
(STATUS<6:5>) PC<10:9>;
0 PC<8>
Operation:
00h WDT;
0 WDT prescaler (if assigned);
1 TO;
1 PD
Status Affected:
None
Status Affected:
TO, PD
Description:
Description:
CLRF
Clear f
COMF
Complement f
Syntax:
[ label ] CLRF
Syntax:
[ label ] COMF
Operands:
0 f 31
Operands:
Operation:
00h (f);
1Z
0 f 31
d [0,1]
Operation:
(f) (dest)
Status Affected:
Status Affected:
Description:
Description:
DS41652A-page 76
Preliminary
f,d
PIC16F527
DECF
Decrement f
INCF
Syntax:
Syntax:
[ label ]
Operands:
0 f 31
d [0,1]
Operands:
0 f 31
d [0,1]
Operation:
(f) 1 (dest)
Operation:
(f) + 1 (dest)
Status Affected:
Status Affected:
Description:
Decrement register f. If d is 0,
the result is stored in the W
register. If d is 1, the result is
stored back in register f.
Description:
DECFSZ
Decrement f, Skip if 0
INCFSZ
Increment f, Skip if 0
Syntax:
Syntax:
[ label ]
Operands:
0 f 31
d [0,1]
Operands:
0 f 31
d [0,1]
Operation:
(f) 1 d;
Operation:
Status Affected:
None
Status Affected:
None
Description:
Description:
GOTO
Unconditional Branch
IORLW
Syntax:
[ label ]
Syntax:
[ label ]
Operands:
0 k 511
Operands:
0 k 255
Operation:
k PC<8:0>;
STATUS<6:5> PC<10:9>
Operation:
Status Affected:
Status Affected:
None
Description:
Description:
skip if result = 0
GOTO k
Preliminary
Increment f
INCF f,d
INCFSZ f,d
IORLW k
DS41652A-page 77
PIC16F527
IORWF
Inclusive OR W with f
MOVWF
Syntax:
[ label ]
Syntax:
[ label ]
Operands:
0 f 31
d [0,1]
Operands:
0 f 31
Operation:
(W) (f)
Operation:
Status Affected:
None
Status Affected:
Description:
Description:
MOVF
Move f
NOP
No Operation
Syntax:
[ label ]
Syntax:
[ label ]
Operands:
0 f 31
d [0,1]
Operands:
None
Operation:
No operation
IORWF
f,d
MOVF f,d
Move W to f
MOVWF
NOP
Operation:
(f) (dest)
Status Affected:
None
Status Affected:
Description:
No operation.
Description:
MOVLB
OPTION
Syntax:
[ label ]
Syntax:
[ label ]
Operands:
0k7
Operands:
None
Operation:
k (BSR)
Operation:
(W) OPTION
Status Affected:
None
Status Affected:
None
Description:
MOVLB k
Description:
MOVLW
Move Literal to W
RETFIE
Syntax:
[ label ]
RETFIE
Syntax:
[ label ]
Operands:
0 k 255
Operands:
None
Operation:
k (W)
Operation:
TOS PC
1 GIE
Status Affected:
None
Status Affected:
None
Description:
Description:
DS41652A-page 78
MOVLW k
OPTION
Preliminary
PIC16F527
RETLW
RRF
Syntax:
[ label ]
Syntax:
[ label ]
Operands:
0 k 255
Operands:
Operation:
k (W);
TOS PC
0 f 31
d [0,1]
Operation:
Status Affected:
None
Status Affected:
Description:
Description:
RETURN
Return
Syntax:
[ label ]
RETLW k
RRF f,d
register f
C
RETURN
Operands:
None
Operation:
TOS PC
Status Affected:
None
Description:
RLF
Syntax:
[ label ]
Operands:
0 f 31
d [0,1]
RLF
Operation:
Description:
Syntax:
[label ]
Operands:
None
Operation:
00h WDT;
0 WDT prescaler;
1 TO;
0 PD
Status Affected:
Description:
SUBWF
Subtract W from f
f,d
Status Affected:
SLEEP
register f
SLEEP
Syntax:
[label ]
Operands:
0 f 31
d [0,1]
Operation:
Status Affected:
C, DC, Z
Description:
Preliminary
SUBWF f,d
DS41652A-page 79
PIC16F527
SWAPF
Swap Nibbles in f
XORWF
Exclusive OR W with f
Syntax:
Syntax:
[ label ] XORWF
Operands:
0 f 31
d [0,1]
Operands:
0 f 31
d [0,1]
Operation:
(f<3:0>) (dest<7:4>);
(f<7:4>) (dest<3:0>)
Operation:
Status Affected:
Status Affected:
None
Description:
Description:
TRIS
Syntax:
[ label ] TRIS
Operands:
f=6
Operation:
Status Affected:
None
Description:
TRIS register f (f = 6, 7 or 8) is
loaded with the contents of the W
register
XORLW
Syntax:
[ label ] XORLW k
Operands:
0 k 255
Operation:
(W) .XOR. k W)
Status Affected:
Description:
DS41652A-page 80
f,d
Preliminary
PIC16F527
14.0
DEVELOPMENT SUPPORT
14.1
Preliminary
DS41652A-page 81
PIC16F527
14.2
14.3
MPASM Assembler
14.4
14.5
14.6
DS41652A-page 82
Preliminary
PIC16F527
14.7
14.9
14.8
MPLAB ICD 3 In-Circuit Debugger System is Microchip's most cost effective high-speed hardware
debugger/programmer for Microchip Flash Digital Signal Controller (DSC) and microcontroller (MCU)
devices. It debugs and programs PIC Flash microcontrollers and dsPIC DSCs with the powerful, yet easyto-use graphical user interface of MPLAB Integrated
Development Environment (IDE).
The MPLAB ICD 3 In-Circuit Debugger probe is connected to the design engineer's PC using a high-speed
USB 2.0 interface and is connected to the target with a
connector compatible with the MPLAB ICD 2 or MPLAB
REAL ICE systems (RJ-11). MPLAB ICD 3 supports all
MPLAB ICD 2 headers.
Preliminary
DS41652A-page 83
PIC16F527
14.11 PICkit 2 Development
Programmer/Debugger and
PICkit 2 Debug Express
14.13 Demonstration/Development
Boards, Evaluation Kits, and
Starter Kits
DS41652A-page 84
Preliminary
PIC16F527
15.0
ELECTRICAL CHARACTERISTICS
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above
those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions
for extended periods may affect device reliability.
Preliminary
DS41652A-page 85
PIC16F527
PIC16F527 VOLTAGE-FREQUENCY GRAPH, -40C TA +125C
FIGURE 15-1:
6.0
5.5
5.0
VDD
(Volts)
4.5
4.0
3.5
3.0
2.5
2.0
0
20
10
25
Frequency (MHz)
FIGURE 15-2:
Oscillator Mode
LP
XT
XTRC
INTOSC
EC
HS
0
200 kHz
4 MHz
8 MHz
20 MHz
Frequency
DS41652A-page 86
Preliminary
PIC16F527
15.1
DC Characteristics
Param
No.
D001
Sym.
VDD
Characteristic
Supply Voltage
Voltage(2)
D002
VDR
D003
VPOR
D004
SVDD
D005
IDDP
D010
IDD
Min.
Typ.(1)
Max.
Units
2.0
5.5
Conditions
1.5*
Vss
0.05*
V/ms
250*
Supply Current(3, 4, 6)
175
400
A
A
250
0.75
A
mA
1.4
mA
11
38
A
A
D020
IPD
Power-down Current(5)
0.1
0.35
A
A
VDD = 2.0V
VDD = 5.0V
D022
IWDT
WDT Current(5)
1.0
7.0
A
A
VDD = 2.0V
VDD = 5.0V
D023
ICMP
Comparator Current(5)
15
60
A
A
D022
ICVREF
CVREF Current(5)
30
75
A
A
D023
IFVR
100
175
120
200
0.20
0.36
3.0V
5.0V
IAD1*
D024
IAD2
D025
IBOR
D026
*
Note 1:
2:
3:
4:
5:
6:
Preliminary
DS41652A-page 87
PIC16F527
15.2
DC Characteristics
Param
No.
D001
Sym.
VDD
Characteristic
Supply Voltage
Voltage(2)
D002
VDR
D003
VPOR
D004
SVDD
D005
IDDP
D010
IDD
Min.
Typ.(1)
Max.
Units
2.0
5.5
Conditions
1.5*
Vss
0.05*
V/ms
250*
Supply Current(3,4,6)
175
400
A
A
250
0.75
A
mA
1.4
mA
11
38
A
A
D020
IPD
Power-down Current(5)
0.1
0.35
A
A
VDD = 2.0V
VDD = 5.0V
D022
IWDT
WDT Current(5)
1.0
7.0
A
A
VDD = 2.0V
VDD = 5.0V
D023
ICMP
Comparator Current(5)
15
60
A
A
D022
ICVREF
CVREF Current(5)
30
75
A
A
D023
IFVR
100
175
120
200
0.20
0.36
3.0V
5.0V
IAD1*
D024
IAD2
D025
IBOR
D026
*
Note 1:
2:
3:
4:
5:
6:
DS41652A-page 88
Preliminary
PIC16F527
TABLE 15-1:
DC CHARACTERISTICS
Param
No.
Sym.
VIL
Characteristic
Min.
Typ.
Max.
Units
Conditions
D030
D030A
Vss
0.8
Vss
0.15 VDD
Otherwise
D031
Vss
0.15 VDD
D032
MCLR, T0CKI
Vss
0.15 VDD
D033
Vss
0.15 VDD
D033
Vss
0.3 VDD
D033
Vss
0.3
VIH
D040
D040A
2.0
VDD
0.25 VDD
+ 0.8V
VDD
Otherwise
For entire VDD range
D041
0.85 VDD
VDD
D042
MCLR, T0CKI
0.85 VDD
VDD
D042A
0.85 VDD
VDD
D042A
0.7 VDD
VDD
D043
1.6
VDD
50
250
400
D070
IPUR
IIL
D060
I/O ports
D061
RB3/MCLR(3)
0.7
D063
OSC1
0.6
0.6
VDD 0.7
VDD 0.7
VOL
D080
D080A
VOH
D090
D090A
15
pF
D101
CIO
50
pF
D120
ED
Byte endurance
100K
1M
E/W
-40C TA +85C
D120A
ED
Byte endurance
10K
100K
E/W
+85C TA +125C
D121
VDRW
VMIN
5.5
Data in Typ column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not tested.
Note 1:
In EXTRC oscillator configuration, the OSC1/CLKIN pin is a Schmitt Trigger input. It is not recommended that the PIC16F527 be driven
with external clock in RC mode.
2:
Negative current is defined as coming out of the pin.
3:
This spec. applies to RB3/MCLR configured as RB3 with pull-up disabled.
4:
This spec. applies to all weak pull-up devices, including the weak pull-up found on RB3/MCLR. The current value listed will be the same
whether or not the pin is configured as RB3 with pull-up enabled or as MCLR.
5:
The leakage current on the MCLR pin is strongly dependent on the applied voltage level. The specified levels represent normal operating
conditions. Higher leakage may be measured at different input voltages.
Preliminary
DS41652A-page 89
PIC16F527
TABLE 15-2:
COMPARATOR SPECIFICATIONS
Comparator Specifications
Characteristics
Sym.
Min.
Typ.
Max.
Units
0.70
VIVRF
0.50
0.60
VOS
5.0
mV
VCM
VDD 1.5
db
CMRR*
Response Time
(1)*
CMRR
55
TRT
150
ns
TMC2COV
10
Comments
TABLE 15-3:
Sym.
CVRES
*
Note 1:
2:
Typ.
Max.
Units
Resolution
Characteristics
VDD/24*
VDD/32
LSb
LSb
Comments
Absolute Accuracy(2)
1/2*
1/2*
LSb
LSb
2K*
Settling Time(1)
10*
DS41652A-page 90
Preliminary
PIC16F527
TABLE 15-4:
OPA DC CHARACTERISTICS
Param
No.
Sym.
Characteristics
Min.
Typ.
Max.
Units
Comments
VOS
mV
OPA02*
OPA03*
IB
IOS
2*
1*
nA
pA
OPA04*
OPA05*
VCM
CMR
Common Mode
Common mode input range
Common mode rejection
VSS
65
70
VDD 1.5
V
dB
VDD = 5.0V
VCM = VDD/2, Freq. = DC
90
60
dB
dB
No load
Standard load
VSS+100
VDD 100
mV
To VDD/2 (20 k
connected to VDD,
20 k + 20 pF to Vss)
OPA01
OPA06A* AOL
OPA06B* AOL
OPA07*
Vout
Output
Output voltage swing
OPA08*
Isc
25
28
mA
OPA10*
PSR
Power Supply
Power supply rejection
80
dB
TABLE 15-5:
OPA AC CHARACTERISTICS
Param
No.
Symbol
Characteristics
Typ.
Max.
Units
OPA11* GBWP
MHz
OPA12* TON
Turn on time
10
15
OPA13* M
Phase margin
60
deg
OPA14* SR
Slew rate
V/s
Comments
Preliminary
DS41652A-page 91
PIC16F527
TABLE 15-6:
Sym.
Characteristic
Min.
Typ.
Max.
Units
bit
Conditions
NR
Resolution
Integral Error
1.5
1.5
-0.7
+2.2
A03
EINL
A04
A06
A07
EGN
Gain Error
A10
Monotonicity
A25
VAIN
Analog Input
Voltage
VSS
A30
ZAIN
Recommended
Impedance of
Analog Voltage
Source
(1)
VDD
10
guaranteed
TABLE 15-7:
VDD (Volts)
RA0/RA1/RA4
2.0
5.5
RA3
2.0
5.5
DS41652A-page 92
Min.
Typ.
Max.
Units
-40
25
85
125
-40
25
85
125
73K
73K
82K
86K
15K
15K
19K
23K
105K
113K
123K
132k
21K
22K
26k
29K
186K
187K
190K
190K
33K
34K
35K
35K
-40
25
85
125
-40
25
85
125
63K
77K
82K
86K
16K
16K
24K
26K
81K
93K
96k
100K
20k
21K
25k
27K
96K
116K
116K
119K
22K
23K
28K
29K
Preliminary
PIC16F527
15.3
The timing parameter symbols have been created following one of the following formats:
1. TppS2ppS
2. TppS
T
F
Frequency
T Time
to
mc
MCLR
ck
CLKOUT
osc
Oscillator
cy
Cycle time
os
OSC1
drt
t0
T0CKI
io
I/O port
wdt
Watchdog Timer
Fall
Period
High
Rise
Invalid (high-impedance)
Valid
Low
High-impedance
FIGURE 15-3:
LOAD CONDITIONS
Legend:
Pin
CL
VSS
FIGURE 15-4:
Q1
Q3
Q2
Q4
Q1
OSC1
1
Preliminary
DS41652A-page 93
PIC16F527
TABLE 15-8:
AC CHARACTERISTICS
Param
No.
Sym.
Characteristic
Min.
Typ.(1)
1A
FOSC
DC
DC
20
DC
200
Oscillator Frequency(2)
TOSC
Oscillator Period
(2)
Max.
Units
kHz
0.1
20
200
kHz
LP Oscillator mode
250
ns
XT Oscillator mode
50
ns
LP Oscillator mode
250
ns
250
10,000
ns
XT Oscillator mode
50
250
ns
LP Oscillator mode
TCY
200
4/FOSC
ns
TosL,
TosH
50*
ns
TosR,
TosF
*
Note 1:
2:
LP Oscillator mode
Conditions
XT Oscillator
2*
LP Oscillator
10*
ns
HS/EC Oscillator
25*
ns
XT Oscillator
50*
ns
LP Oscillator
15*
ns
HS/EC Oscillator
DS41652A-page 94
Preliminary
PIC16F527
TABLE 15-9:
AC CHARACTERISTICS
Param
No.
Freq.
Min.
Tolerance
F10
Sym.
FOSC
Characteristic
Internal Calibrated
INTOSC Frequency(1)
Typ.
Max.
Units
Conditions
1%
7.92
8.00
8.08
2%
7.84
8.00
8.16
5%
7.60
8.00
8.40
FIGURE 15-5:
I/O TIMING
Q1
Q4
Q2
Q3
OSC1
I/O Pin
(input)
17
I/O Pin
(output)
19
18
New Value
Old Value
20, 21
Note:
All tests must be done with specified capacitive loads (see data sheet) 50 pF on I/O pins and CLKOUT.
Preliminary
DS41652A-page 95
PIC16F527
TABLE 15-10: TIMING REQUIREMENTS
Standard Operating Conditions (unless otherwise specified)
Operating Temperature -40C TA +85C (industrial)
AC
-40C TA +125C (extended)
CHARACTERISTICS
Operating Voltage VDD range is described in Section 15.1 DC Characteristics: PIC16F527
(Industrial)
Param
No.
Sym.
Characteristic
Min.
Typ.(1)
Max.
Units
17
TOSH2IOV
100*
ns
18
TOSH2IOI
50
ns
19
TIOV2OSH
20
ns
10
50**
ns
10
58**
ns
20
21
TIOR
TIOF
(3)
(3)
FIGURE 15-6:
VDD
MCLR
30
Internal
POR
32
32
32
DRT
Time-out(2)
Internal
Reset
Watchdog
Timer
Reset
31
34
34
I/O pin(1)
Note 1:
2:
I/O pins must be taken out of High-Impedance mode by enabling the output drivers in software.
Runs in MCLR or WDT Reset only in XT, LP and HS modes.
DS41652A-page 96
Preliminary
PIC16F527
TABLE 15-11: RESET, WATCHDOG TIMER AND DEVICE RESET TIMER
Standard Operating Conditions (unless otherwise specified)
Operating Temperature -40C TA +85C (industrial)
-40C TA +125C (extended)
Operating Voltage VDD range is described in
Section 15.1 DC Characteristics: PIC16F527 (Industrial)
AC CHARACTERISTICS
Param
No.
Typ.(1)
Max.
Units
Conditions
Sym.
Characteristic
Min.
30
TMCL
2000*
ns
VDD = 5.0V
31
TWDT
9*
9*
18*
18*
30*
40*
ms
ms
32
TDRT
18*
18*
30*
40*
ms
ms
2000*
ns
Standard
34
*
Note 1:
TIOZ
FIGURE 15-7:
T0CKI
40
41
42
AC CHARACTERISTICS
Param
Sym.
No.
Characteristic
Min.
40
Tt0H
No Prescaler
41
Tt0L
No Prescaler
42
Tt0P
T0CKI Period
*
Note 1:
With Prescaler
With Prescaler
Conditions
ns
10*
ns
ns
10*
ns
20 or TCY + 40* N
ns
Whichever is greater.
N = Prescale Value
(1, 2, 4,..., 256)
Preliminary
DS41652A-page 97
PIC16F527
TABLE 15-13: FLASH DATA MEMORY WRITE/ERASE TIME
Standard Operating Conditions (unless otherwise specified)
Operating Temperature -40C TA +85C (industrial)
-40C TA +125C (extended)
Operating Voltage VDD range is described in
Section 15.1 DC Characteristics: PIC16F527 (Industrial)
AC CHARACTERISTICS
Param
No.
Sym.
43
TDW
44
TDE
*
Note 1:
Min.
Typ.(1)
Max.
Units
3.5
ms
3.5
ms
Characteristic
Conditions
DS41652A-page 98
Preliminary
PIC16F527
16.0
DC AND AC
CHARACTERISTICS GRAPHS
AND CHARTS
Preliminary
DS41652A-page 99
PIC16F527
NOTES:
DS41652A-page 100
Preliminary
PIC16F527
17.0
PACKAGING INFORMATION
17.1
Example
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX
YYWWNNN
PIC16F527 -E/P e3
1220123
Example
PIC16F527
-E/SO e3
1220123
Legend: XX...X
Y
YY
WW
NNN
e3
Note:
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week 01)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
Standard PICmicro device marking consists of Microchip part number, year code, week code and
traceability code. For PICmicro device marking beyond this, certain price adders apply. Please check
with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP
price.
Preliminary
DS41652A-page 101
PIC16F527
Package Marking Information (Continued)
20-Lead SSOP (5.30 mm)
Example
PIC16F527
-E/SS e3
1220123
Example
PIN 1
PIN 1
Legend: XX...X
Y
YY
WW
NNN
e3
Note:
PIC16
F527
E/ML e3
220123
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week 01)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
Standard PICmicro device marking consists of Microchip part number, year code, week code and
traceability code. For PICmicro device marking beyond this, certain price adders apply. Please check
with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP
price.
DS41652A-page 102
Preliminary
PIC16F527
/HDG3ODVWLF'XDO,Q/LQH3PLO%RG\>3',3@
1RWH
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
E1
NOTE 1
3
D
E
A2
A1
b1
b
eB
e
8QLWV
'LPHQVLRQ/LPLWV
1XPEHURI3LQV
,1&+(6
0,1
120
0$;
3LWFK
7RSWR6HDWLQJ3ODQH
0ROGHG3DFNDJH7KLFNQHVV
$
%DVHWR6HDWLQJ3ODQH
$
6KRXOGHUWR6KRXOGHU:LGWK
0ROGHG3DFNDJH:LGWK
(
2YHUDOO/HQJWK
'
7LSWR6HDWLQJ3ODQH
/HDG7KLFNQHVV
E
H%
8SSHU/HDG:LGWK
/RZHU/HDG:LGWK
2YHUDOO5RZ6SDFLQJ
%6&
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
6LJQLILFDQW&KDUDFWHULVWLF
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
Preliminary
DS41652A-page 103
PIC16F527
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS41652A-page 104
Preliminary
PIC16F527
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Preliminary
DS41652A-page 105
PIC16F527
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS41652A-page 106
Preliminary
PIC16F527
/HDG3ODVWLF6KULQN6PDOO2XWOLQH66PP%RG\>6623@
1RWH
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
D
N
E
E1
NOTE 1
1 2
e
b
c
A2
A1
L1
8QLWV
'LPHQVLRQ/LPLWV
1XPEHURI3LQV
L
0,//,0(7(56
0,1
120
0$;
3LWFK
2YHUDOO+HLJKW
%6&
0ROGHG3DFNDJH7KLFNQHVV
$
6WDQGRII
$
2YHUDOO:LGWK
0ROGHG3DFNDJH:LGWK
(
2YHUDOO/HQJWK
'
)RRW/HQJWK
)RRWSULQW
/
5()
/HDG7KLFNQHVV
)RRW$QJOH
/HDG:LGWK
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
Preliminary
DS41652A-page 107
PIC16F527
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS41652A-page 108
Preliminary
PIC16F527
/HDG3ODVWLF4XDG)ODW1R/HDG3DFNDJH0/[[PP%RG\>4)1@
1RWH
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
D2
EXPOSED
PAD
e
E2
2
E
b
1
K
N
N
NOTE 1
TOP VIEW
BOTTOM VIEW
A
A1
A3
8QLWV
'LPHQVLRQ/LPLWV
1XPEHURI3LQV
0,//,0(7(56
0,1
120
0$;
3LWFK
2YHUDOO+HLJKW
6WDQGRII
$
&RQWDFW7KLFNQHVV
$
2YHUDOO:LGWK
([SRVHG3DG:LGWK
(
2YHUDOO/HQJWK
'
([SRVHG3DG/HQJWK
%6&
5()
%6&
%6&
'
&RQWDFW:LGWK
&RQWDFW/HQJWK
&RQWDFWWR([SRVHG3DG
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
3DFNDJHLVVDZVLQJXODWHG
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
Preliminary
DS41652A-page 109
PIC16F527
1RWH
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
DS41652A-page 110
Preliminary
PIC16F527
APPENDIX A:
DATA SHEET
REVISION HISTORY
Revision A (09/2012)
Initial release of this document.
Preliminary
DS41652A-page 111
PIC16F527
NOTES:
DS41652A-page 112
Preliminary
PIC16F527
INDEX
A
A/D
B
Block Diagram
On-Chip Reset Circuit ................................................. 48
Timer0......................................................................... 35
TMR0/WDT Prescaler................................................. 39
Watchdog Timer.......................................................... 51
Block Diagrams
OPA Module................................................................ 71
C
Carry ..................................................................................... 9
Clock Divisors ..................................................................... 59
Clocking Scheme ................................................................ 13
Code Protection ............................................................ 41, 54
Comparator ......................................................................... 64
CONFIG1 Register.............................................................. 42
Configuration Bits................................................................ 41
Customer Change Notification Service ............................. 115
Customer Notification Service........................................... 115
Customer Support ............................................................. 115
D
Data Memory (SRAM and FSRs)
Register File Map.................................................. 16, 19
DC and AC Characteristics ................................................. 99
Graphs and Tables ..................................................... 99
Development Support ......................................................... 81
Digit Carry ............................................................................. 9
E
Effects of Reset
OPA module................................................................ 72
Errata .................................................................................... 4
External Clock Timing ......................................................... 93
F
Flash Data Memory Control ................................................ 25
FSR ..................................................................................... 23
Fuses. See Configuration Bits
H
HI-TECH C for Various Device Families ............................. 82
I
I/O Interfacing ............................................................... 30, 32
I/O Port................................................................................ 29
I/O Programming Considerations........................................ 33
ID Locations .................................................................. 41, 57
INDF.................................................................................... 23
Indirect Data Addressing..................................................... 23
Instruction Cycle ................................................................. 13
Instruction Flow/Pipelining .................................................. 13
Instruction Set Summary..................................................... 74
Internet Address................................................................ 115
L
Loading of PC ..................................................................... 22
O
OPA2CON Register............................................................ 72
Operational Amplifier (OPA) Module
Associated Registers.................................................. 72
OPTION Register................................................................ 20
OSC selection..................................................................... 41
OSCCAL Register............................................................... 21
Oscillator Configurations..................................................... 43
Oscillator Types
EC............................................................................... 43
EXTRC ....................................................................... 43
HS............................................................................... 43
INTRC......................................................................... 43
LP ............................................................................... 43
XT ............................................................................... 43
P
PIC16F527 Device Varieties................................................. 7
POR
Device Reset Timer (DRT) ................................... 41, 50
PD............................................................................... 51
Power-on Reset (POR)............................................... 41
TO............................................................................... 51
PORTA ............................................................................... 29
PORTB ............................................................................... 29
PORTC ............................................................................... 29
Power-down Mode.............................................................. 53
Prescaler ............................................................................ 38
Program Counter ................................................................ 22
Q
Q cycles .............................................................................. 13
R
RC Oscillator....................................................................... 44
Reader Response............................................................. 116
Read-Modify-Write.............................................................. 33
Registers
CONFIG1 (Configuration Word Register 1)................ 42
Op Amp 2 Control Register (OPA2CON) ................... 72
Special Function ......................................................... 16
Reset .................................................................................. 41
Revision History................................................................ 111
S
Sleep ............................................................................ 41, 53
Software Simulator (MPLAB SIM) ...................................... 83
Special Features of the CPU .............................................. 41
Special Function Registers ........................................... 16, 19
Stack................................................................................... 22
STATUS ............................................................................. 19
Preliminary
DS41652A-page 113
PIC16F527
STATUS Register................................................................ 19
STATUS register ................................................................. 51
Status Register................................................................ 9, 19
T
Timer0
Timer0 ......................................................................... 35
Timer0 (TMR0) Module ............................................... 35
TMR0 with External Clock........................................... 37
Timing Diagrams
Brown-out Reset Situations ........................................ 52
Timing Parameter Symbology and Load Conditions........... 93
TRIS Register...................................................................... 29
W
Wake-up from Sleep ........................................................... 53
Watchdog Timer (WDT) ................................................ 41, 50
Period.......................................................................... 50
Programming Considerations ..................................... 50
WWW Address.................................................................. 115
WWW, On-Line Support........................................................ 4
Z
Zero bit .................................................................................. 9
DS41652A-page 114
Preliminary
PIC16F527
THE MICROCHIP WEB SITE
CUSTOMER SUPPORT
Product Support Data sheets and errata, application notes and sample programs, design
resources, users guides and hardware support
documents, latest software releases and archived
software
General Technical Support Frequently Asked
Questions (FAQ), technical support requests,
online discussion groups, Microchip consultant
program member listing
Business of Microchip Product selector and
ordering guides, latest Microchip press releases,
listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives
Distributor or Representative
Local Sales Office
Field Application Engineer (FAE)
Technical Support
Customers should contact their distributor, representative or field application engineer (FAE) for support.
Local sales offices are also available to help customers. A listing of sales offices and locations is included in
the back of this document.
Technical support is available through the web site
at: http://microchip.com/support
Preliminary
DS41652A-page 115
PIC16F527
READER RESPONSE
It is our intention to provide you with the best documentation possible to ensure successful use of your Microchip
product. If you wish to provide your comments on organization, clarity, subject matter, and ways in which our
documentation can better serve you, please FAX your comments to the Technical Publications Manager at
(480) 792-4150.
Please list the following information, and use this outline to provide us with your comments about this document.
TO:
RE:
Reader Response
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________
Application (optional):
Would you like a reply?
Device: PIC16F527
Questions:
1. What are the best features of this document?
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this document easy to follow? If not, why?
4. What additions to the document do you think would enhance the structure and subject?
5. What deletions from the document could be made without affecting the overall usefulness?
DS41652A-page 116
Preliminary
PIC16F527
PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
PART NO.
/XX
XXX
Device
Temperature
Range
Package
Pattern
Examples:
a)
b)
c)
Device:
PIC16F527
Temperature
Range:
I
E
Package:
P
SO
SS
ML
Pattern:
Special Requirements
d)
=
=
=
=
=
=
Plastic (PDIP)(2)
20L Small Outline, 7.50 mm (SOIC)(1,2)
Shrink Small Outline (SSOP)(1,2)
20-Lead 4x4 (QFN)(1,2)
Note 1:
2:
Preliminary
DS41652A-page 117
PIC16F527
NOTES:
DS41652A-page 118
Preliminary
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchips Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchips code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
PIC32 logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,
TSHARC, UniWinDriver, WiperLock and ZENA are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2012, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-62076-527-2
== ISO/TS 16949 ==
2012 Microchip Technology Inc.
Preliminary
DS41652A-page 119
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Japan - Osaka
Tel: 81-66-152-7160
Fax: 81-66-152-9310
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
China - Hangzhou
Tel: 86-571-2819-3187
Fax: 86-571-2819-3189
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-330-9305
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
DS41652A-page 120
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
11/29/11
Preliminary