IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,18PIN,PLASTIC

PIC16F54T-I/SO

Manufacturer Part NumberPIC16F54T-I/SO
DescriptionIC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,18PIN,PLASTIC
ManufacturerMicrochip Technology
SeriesPIC® 16F
PIC16F54T-I/SO datasheets
 


Specifications of PIC16F54T-I/SO

Rohs CompliantYESCore ProcessorPIC
Core Size8-BitSpeed20MHz
PeripheralsPOR, WDTNumber Of I /o12
Program Memory Size768B (512 x 12)Program Memory TypeFLASH
Ram Size25 x 8Voltage - Supply (vcc/vdd)2 V ~ 5.5 V
Oscillator TypeExternalOperating Temperature-40°C ~ 85°C
Package / Case18-SOIC (7.5mm Width)Lead Free Status / RoHS StatusLead free / RoHS Compliant
Eeprom Size-Data Converters-
Connectivity-  
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 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
Page 1/88

Download datasheet (2Mb)Embed
Next
PIC16F5X
Data Sheet
Flash-Based, 8-Bit CMOS
Microcontroller Series
© 2007 Microchip Technology Inc.
DS41213D

PIC16F54T-I/SO Summary of contents

  • Page 1

    ... Microchip Technology Inc. PIC16F5X Data Sheet Flash-Based, 8-Bit CMOS Microcontroller Series DS41213D ...

  • Page 2

    ... Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, 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. ...

  • Page 3

    ... PDIP, SOIC and SSOP for PIC16F57 - 40-pin PDIP for PIC16F59 - 44-pin TQFP for PIC16F59 Device PIC16F54 PIC16F57 PIC16F59 © 2007 Microchip Technology Inc. Low-Power Features: • Operating Current: - 170 μA @ 2V, 4 MHz, typical - 15 μA @ 2V, 32 kHz, typical • Standby Current: - 500 nA @ 2V, typical Peripheral Features: • ...

  • Page 4

    ... RC7 5 24 RC6 6 23 RC5 PIC16F57 7 22 RC4 8 21 RC3 9 20 RC2 10 19 RC1 11 18 RC0 12 17 RB7/ICSPDAT 13 16 RB6/ICSPCLK 14 15 RB5 OSC1/CLKIN 33 OSC2/CLKOUT 32 RD7 31 30 RD6 RD5 29 PIC16F59 28 RD4 27 RD3 RD2 26 RD1 25 GND 24 23 GND © 2007 Microchip Technology Inc. ...

  • Page 5

    ... When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are using. Customer Notification System Register on our web site at www.microchip.com to receive the most current information on all of our products. © 2007 Microchip Technology Inc. PIC16F5X DS41213D-page 3 ...

  • Page 6

    ... PIC16F5X NOTES: DS41213D-page 4 © 2007 Microchip Technology Inc. ...

  • Page 7

    ... GENERAL DESCRIPTION The PIC16F5X from Microchip Technology is a family of low-cost, high-performance, 8-bit, fully static, Flash- based CMOS microcontrollers. It employs a RISC architecture with only 33 single-word/single-cycle instructions. All instructions are single cycle except for program branches which take two cycles. The PIC16F5X delivers performance an order of magnitude higher than its competitors in the same price category ...

  • Page 8

    ... PIC16F5X NOTES: DS41213D-page 6 © 2007 Microchip Technology Inc. ...

  • Page 9

    ... PIC16F5X simple, yet efficient. In addition, the learning curve is reduced significantly. © 2007 Microchip Technology Inc. PIC16F5X The PIC16F5X device contains an 8-bit ALU and work- ing register. The ALU is a general purpose arithmetic unit ...

  • Page 10

    ... Select” 2 “Code- Oscillator/ Protect” Timing & Control CLKOUT “Sleep” “Option” General Purpose 5 Register File 5-7 (SRAM) 25 134 Bytes SFR 8 From PORTB TRISC PORTC 8 8 “TRIS 7” RC<7:0> RB<7:0> PIC16F57/59 only 8 8 © 2007 Microchip Technology Inc. ...

  • Page 11

    ... V Power Power SS SS Legend input O = output ST = Schmitt Trigger input © 2007 Microchip Technology Inc. Output Description Type CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin ...

  • Page 12

    ... Positive supply for logic and I/O pins — Ground reference for logic and I/O pins — Unused, do not connect I/O = input/output CMOS = CMOS output — = Not Used XTAL TTL = TTL input not in use DD, pin must PP = Crystal input/output = High Voltage © 2007 Microchip Technology Inc. ...

  • Page 13

    ... V VDD Power Power SS SS Legend input O = output ST = Schmitt Trigger input © 2007 Microchip Technology Inc. Output Description Type CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin CMOS Bidirectional I/O pin ...

  • Page 14

    ... Q2, Q3 and Q4 cycles. Data memory is read during Q2 (operand read) and written during Q4 (destination write Fetch INST ( Execute INST (PC) Execute 1 Fetch 2 Execute 2 Fetch 3 Execute 3 Fetch Internal phase clock Fetch INST ( Execute INST ( Flush Fetch SUB_1 Execute SUB_1 © 2007 Microchip Technology Inc. ...

  • Page 15

    ... FIGURE 3-1: PIC16F54 PROGRAM MEMORY MAP AND STACK PC<8:0> 9 CALL, RETLW Stack Level 1 Stack Level 2 On-chip Program Memory Reset Vector © 2007 Microchip Technology Inc. FIGURE 3-2: CALL, RETLW 000h 0FFh 100h 1FFh PIC16F5X PIC16F57/PIC16F59 PROGRAM MEMORY MAP AND STACK PC<10:0> 11 ...

  • Page 16

    ... Bank 0. 2Fh 4Fh 6Fh 30h 50h 70h General General Purpose Purpose Registers Registers 3Fh 5Fh 7Fh Bank 1 Bank 2 PIC16F54 REGISTER FILE MAP (1) INDF TMR0 PCL STATUS FSR PORTA PORTB General Purpose Registers . 11 General Purpose Registers Bank 3 © 2007 Microchip Technology Inc. ...

  • Page 17

    ... General General Purpose Purpose Registers Registers 1Fh 3Fh Bank 0 Bank 1 Note 1: Not a physical register. © 2007 Microchip Technology Inc. 010 011 100 40h 60h 80h A0h Addresses map back to addresses in Bank 0. 4Fh 6Fh 8Fh AFh 50h B0h ...

  • Page 18

    ... Bit 0 Power-on on Page Reset 29 1111 1111 18 --11 1111 20 xxxx xxxx 34 xxxx xxxx 19 1111 1111 C 17 0001 1xxx 20 111x xxxx 20 1xxx xxxx 20 xxxx xxxx RA0 29 ---- xxxx RB0 29 xxxx xxxx RC0 29 xxxx xxxx RD0 29 xxxx xxxx — 29 xxxx ---- © 2007 Microchip Technology Inc. ...

  • Page 19

    ... A carry did not occur Legend Readable bit - n = Value at POR © 2007 Microchip Technology Inc. For example, CLRF STATUS will clear the upper three bits and set the Z bit. This leaves the STATUS register as 000u u1uu (where u = unchanged). Therefore recommended that only BCF, BSF, ...

  • Page 20

    ... W-1 — T0CS T0SE PSA Timer0 Rate WDT Rate 128 256 1 : 128 W = Writable bit U = Unimplemented bit, read as ‘0’ ‘1’ = Bit is set ‘0’ = Bit is cleared W-1 W-1 W-1 PS2 PS1 PS0 bit Bit is unknown © 2007 Microchip Technology Inc. ...

  • Page 21

    ... LOADING OF PC BRANCH INSTRUCTIONS – PIC16F54 GOTO Instruction PCL PC Instruction Word CALL or Modify PCL Instruction PCL PC Reset to '0' Instruction Word © 2007 Microchip Technology Inc. PIC16F5X FIGURE 3-7: LOADING OF PC BRANCH INSTRUCTIONS – PIC16F57 AND PIC16F59 GOTO Instruction PCL Instruction Word 2 PA<1:0> ...

  • Page 22

    ... A CLRF FSR instruction may not result in an FSR value of 00h if there are unimplemented bits present in the FSR. INDIRECT ADDRESSING HOW TO CLEAR RAM USING INDIRECT ADDRESSING ;initialize pointer ;to RAM ;clear INDF Register ;inc pointer ;all done? ;NO, clear next ;YES, continue © 2007 Microchip Technology Inc. ...

  • Page 23

    ... RF varies with the Oscillator mode chosen (approx. value = 10 MΩ). FIGURE 4-2: EXTERNAL CLOCK INPUT OPERATION (HS OSC CONFIGURATION) Clock from OSC1 ext. system PIC16F5X Open OSC2 © 2007 Microchip Technology Inc. TABLE 4-1: Osc Resonator Type XT 455 kHz 2.0 MHz 4.0 MHz HS 8.0 MHz 16.0 MHz These values are for design guidance only ...

  • Page 24

    ... FIGURE 4- EXT C EXT OSC EXTERNAL SERIES RESONANT CRYSTAL OSCILLATOR CIRCUIT (USING XT OSCILLATOR MODE) To Other 330 K Devices PIC16F5X 74AS04 74AS04 CLKIN Open OSC2 ) and capacitor (C ) values EXT RC OSCILLATOR MODE Internal OSC1 clock N PIC16F5X OSC2/CLKOUT /4 © 2007 Microchip Technology Inc. ...

  • Page 25

    ... STATUS PA2 PA1 Legend unchanged unknown see Table 5-1 for possible values. © 2007 Microchip Technology Inc. The TO and PD bits (STATUS <4:3>) are set or cleared depending on the different Reset conditions (Table 5-1). These bits may be used to determine the nature of the Reset. ...

  • Page 26

    ... MCLR Filter MCLR or WDT Reset uuuu uuuu 1111 1111 --11 1111 uuuu uuuu uuuu uuuu 1111 1111 000q quuu 111u uuuu 1uuu uuuu uuuu uuuu ---- uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu ---- Chip Reset © 2007 Microchip Technology Inc. ...

  • Page 27

    ... Reset until the operating conditions are met. 2: The POR is disabled when the device is in Sleep. For more information on the PIC16F5X POR, see Application Note AN522, “Power-Up Considerations” at www.microchip.com. © 2007 Microchip Technology Inc. FIGURE 5- pin PP D • ...

  • Page 28

    ... T DD chip will reset properly if, and only if, V1 ≥ V DS41213D-page 26 T DRT V1 time-out expires long before V has reached its final value. In this example, the DRT DD min DRT ): FAST V RISE TIME SLOW V RISE TIME DD DD © 2007 Microchip Technology Inc. ...

  • Page 29

    ... Q1 10k MCLR 40k PIC16F5X This circuit will activate Reset when 0.7V (where Vz = Zener voltage). © 2007 Microchip Technology Inc. FIGURE 5-7: to rise above This brown-out circuit is less expensive, although less accurate. Transistor Q1 turns off when V below a certain level such that: ...

  • Page 30

    ... PIC16F5X NOTES: DS41213D-page 28 © 2007 Microchip Technology Inc. ...

  • Page 31

    ... The low order 4 bits (PORTE<3:0>) are unimplemented and read as ‘0’s. PORTE is a General Purpose Register for the PIC16F54 and PIC16F57. © 2007 Microchip Technology Inc. PIC16F5X 6.6 TRIS Registers The output driver control registers are loaded with the contents of the W register by executing the TRIS f instruction. A ‘ ...

  • Page 32

    ... RD1 RE5 RE4 — — — Value on Value on Bit 0 Power-on MCLR and Reset WDT Reset RA0 ---- xxxx ---- uuuu RB0 xxxx xxxx uuuu uuuu RC0 xxxx xxxx uuuu uuuu RD0 xxxx xxxx uuuu uuuu — xxxx ---- uuuu ---- © 2007 Microchip Technology Inc. ...

  • Page 33

    ... MOVF PORTB,W RB<7:0> MOVWF PORTB Instruction (Write to executed Fetch INST (PC) Execute INST ( Fetch INST ( Execute INST (PC) © 2007 Microchip Technology Inc. EXAMPLE 6-1: ;Initial PORT Settings ;PORTB<7:4> Inputs ;PORTB<3:0> Outputs ;PORTB<7:6> have external pull-ups and are ;not connected to other circuitry ; ; ; ...

  • Page 34

    ... PIC16F5X NOTES: DS41213D-page 32 © 2007 Microchip Technology Inc. ...

  • Page 35

    ... Timer0 Instruction Executed © 2007 Microchip Technology Inc. Counter mode is selected by setting the T0CS bit (OPTION<5>). In this mode, Timer0 will increment either on every rising or falling edge of pin T0CKI. The incrementing edge is determined by the source edge select bit T0SE (OPTION<4>). Clearing the T0SE bit selects the rising edge ...

  • Page 36

    ... Bit 2 Bit 1 T0CS T0SE PSA PS2 PS1 NT0 + 1 Read TMR0 Read TMR0 Read TMR0 reads NT0 reads NT0 reads NT0 + 1 Value on Value on Bit 0 Power-on MCLR and Reset WDT Reset xxxx xxxx uuuu uuuu PS0 --11 1111 --11 1111 © 2007 Microchip Technology Inc. ...

  • Page 37

    ... WDT, but not both. Thus, a prescaler assignment for the Timer0 module means that there is no prescaler for the WDT, and vice-versa. © 2007 Microchip Technology Inc. When a prescaler is used, the external clock input is divided by the asynchronous ripple counter-type prescaler so that the prescaler output is symmetrical. ...

  • Page 38

    ... B'xxxx0xxx' ;Select TMR0, new ;Prescaler OPTION (1) T0CS (1) PSA 8-bit Prescaler 8 8-to-1 MUX PS<2:0> ( MUX (1) PSA WDT Time-Out CHANGING PRESCALER (WDT→TIMER0) ;Clear WDT and ;prescaler ;prescale value and ;clock source Data Bus 8 Sync 2 TMR0 reg Cycles (1) © 2007 Microchip Technology Inc. ...

  • Page 39

    ... Configuration Word. These documents can be found on the Microchip web site at www.microchip.com. Legend Readable bit -n = Value at POR © 2007 Microchip Technology Inc. The Sleep mode is designed to offer a very low-current Power-down mode. The user can wake-up from Sleep through external Reset or through a Watchdog Timer time-out. Several oscillator options are also made available to allow the part to fit the application ...

  • Page 40

    ... Bit 3 Bit 2 Bit 1 T0CS T0SE PSA PS2 PS1 WATCHDOG TIMER BLOCK DIAGRAM Prescaler 1 X (1) PSA 8-to-1 (1) PS<2:0> MUX To TMR0 0 1 (1) PSA MUX WDT Time-out Value on Value on Bit 0 Power-on MCLR and Reset WDT Reset PS0 --11 1111 --11 1111 © 2007 Microchip Technology Inc. ...

  • Page 41

    ... ID locations and the Configuration Word read out in an unprotected fashion possible to program the user ID locations and the Configuration Word after code protect is enabled. © 2007 Microchip Technology Inc. 8.5 User ID Locations Four memory locations are designated as user ID loca- tions where the user can store checksum or other code-identification numbers ...

  • Page 42

    ... PIC16F5X FIGURE 8-1: TYPICAL IN-CIRCUIT SERIAL PROGRAMMING™ CONNECTION External Connector Signals + CLK Data I/O DS41213D-page 40 To Normal Connections PIC16F5X MCLR RB6/ICSPCLK RB7/ICSPDAT Normal Connections © 2007 Microchip Technology Inc. ...

  • Page 43

    ... Register bit field < > ∈ In the set of italics User defined term © 2007 Microchip Technology Inc. PIC16F5X All instructions are executed within one single instruc- tion cycle, unless a conditional test is true or the program counter is changed as a result of an instruc- tion. In this case, the execution takes two instruction cycles ...

  • Page 44

    ... TO PD 0000 0000 0100 , 2 None 101k kkkk kkkk 1 Z 1101 kkkk kkkk 1 None 1100 kkkk kkkk 1 None 0000 0000 0010 2 None 1000 kkkk kkkk 0000 0000 0011 , 1 None 0000 0000 0fff 1 Z 1111 kkkk kkkk © 2007 Microchip Technology Inc. Notes 2 ...

  • Page 45

    ... The result is placed in the W register. Words: 1 Cycles: 1 Example: ANDLW H'5F' Before Instruction W = 0xA3 After Instruction W = 0x03 © 2007 Microchip Technology Inc. PIC16F5X ANDWF AND W with f Syntax: [ label ] ANDWF 0 ≤ f ≤ 31 Operands: d ∈ [0,1] (W) .AND. (f) → (dest) Operation: Status Affected: Z Encoding: 0001 01df ffff ...

  • Page 46

    ... If bit ‘b’ is ‘1’, then the next instruc- tion fetched during the current instruction execution is discarded and a NOP is executed instead, making this a two-cycle instruction. 1 1(2) HERE BTFSS FLAG,1 FALSE GOTO PROCESS_CODE • TRUE • • = address (HERE address (FALSE address (TRUE) © 2007 Microchip Technology Inc. ...

  • Page 47

    ... Z bit is set. Words: 1 Cycles: 1 Example: CLRF FLAG_REG Before Instruction FLAG_REG = 0x5A After Instruction FLAG_REG = 0x00 © 2007 Microchip Technology Inc. PIC16F5X CLRW Clear W Syntax: [ label ] CLRW Operands: None 00h → (W); Operation: 1 → Z Status Affected: Z Encoding: 0000 0100 0000 Description: The W register is cleared ...

  • Page 48

    ... NOP is executed instead making it a two-cycle instruction. Words: 1 Cycles: 1(2) Example: HERE DECFSZ GOTO CONTINUE • • • Before Instruction PC = address(HERE) After Instruction CNT = CNT - 1; if CNT = address (CONTINUE); ≠ if CNT address (HERE+1) © 2007 Microchip Technology Inc. CNT, 1 LOOP ...

  • Page 49

    ... INCF CNT, 1 Before Instruction CNT = 0xFF After Instruction CNT = 0x00 © 2007 Microchip Technology Inc. PIC16F5X INCFSZ Increment f, Skip if 0 Syntax: [ label ] INCFSZ ≤ f ≤ 31 Operands: d ∈ [0,1] ( → (dest), skip if result = 0 Operation: Status Affected: None Encoding: 0011 11df ffff Description: The contents of register ‘ ...

  • Page 50

    ... Move Literal to W Syntax: [ label ] MOVLW k 0 ≤ k ≤ 255 Operands: k → (W) Operation: Status Affected: None Encoding: 1100 kkkk kkkk Description: The eight-bit literal ‘k’ is loaded into the W register. Words: 1 Cycles: 1 Example: MOVLW 0x5A After Instruction W = 0x5A © 2007 Microchip Technology Inc. ...

  • Page 51

    ... Operands: None Operation: No operation Status Affected: None Encoding: 0000 0000 0000 Description: No operation. Words: 1 Cycles: 1 Example: NOP © 2007 Microchip Technology Inc. OPTION Syntax: f Operands: Operation: Status Affected: None Encoding: Description: Words: Cycles: Example: Before Instruction W After Instruction OPTION RETLW Syntax: ...

  • Page 52

    ... Time-out Status bit (TO) is set. The power-down Status bit (PD) is cleared. The WDT and its prescaler are cleared. The processor is put into Sleep mode with the oscillator stopped. See section on Sleep for more details. Words: 1 Cycles: 1 Example: SLEEP © 2007 Microchip Technology Inc. ...

  • Page 53

    ... After Instruction REG1 = 0xFF result is negative © 2007 Microchip Technology Inc. PIC16F5X SWAPF Swap Nibbles in f Syntax: [ label ] SWAPF ≤ f ≤ 31 Operands: d ∈ [0,1] (f<3:0>) → (dest<7:4>); Operation: (f<7:4>) → (dest<3:0>) Status Affected: None Encoding: 0011 10df ffff Description: The upper and lower nibbles of register ‘ ...

  • Page 54

    ... W register with 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’. Words: 1 Cycles: 1 Example: XORWF REG,1 Before Instruction REG = 0xAF W = 0xB5 After Instruction REG = 0x1A W = 0xB5 DS41213D-page © 2007 Microchip Technology Inc. ...

  • Page 55

    ... PICSTART Plus Development Programmer - MPLAB PM3 Device Programmer - PICkit™ 2 Development Programmer • Low-Cost Demonstration and Development Boards and Evaluation Kits © 2007 Microchip Technology Inc. PIC16F5X 10.1 MPLAB Integrated Development Environment Software The MPLAB IDE software brings an ease of software development previously unseen in the 8/16-bit micro- controller market ...

  • Page 56

    ... MPLAB C30 C Compilers, and the MPASM and MPLAB ASM30 Assemblers. The software simulator offers the flexibility to develop and debug code outside of the hardware laboratory environment, making it an excellent, economical software development tool. ® DSCs on an instruction © 2007 Microchip Technology Inc. ...

  • Page 57

    ... Microchip Technology Inc. PIC16F5X 10.9 MPLAB ICD 2 In-Circuit Debugger Microchip’s In-Circuit Debugger, MPLAB ICD ...

  • Page 58

    ... SEEVAL evaluation system, Sigma-Delta ADC, flow rate sensing, plus many more. Check the Microchip web page (www.microchip.com) and the latest “Product Selector Guide” (DS00148) for the complete list of demonstration, development and evaluation kits. © 2007 Microchip Technology Inc. ® ...

  • Page 59

    ... 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. © 2007 Microchip Technology Inc. ................................................................................................... 0V to +13.5V ............................................................................... -0. ....................................................................................................... ± ...

  • Page 60

    ... Exposure to maximum rating conditions for extended periods may affect device reliability. DS41213D-page 58 ................................................................................................... 0V to +13.5V ................................................................................ -0. .......................................................................................................± > ................................................................................................± the MCLR pin, inducing currents greater than 80 mA, may cause latch-up – ∑ 0.6V ∑ {( ∑(V – © 2007 Microchip Technology Inc ...

  • Page 61

    ... PIC16F5X VOLTAGE-FREQUENCY GRAPH, -40°C ≤ T FIGURE 11-1: 5.5 5.0 4.5 4 (Volts) 3.5 3.0 2.5 2 Note 1: The shaded region indicates the permissible combinations of voltage and frequency. © 2007 Microchip Technology Inc. ≤ +125° Frequency (MHz) PIC16F5X 20 DS41213D-page 59 ...

  • Page 62

    ... The current through the resistor can be estimated by the formula: EXT in kΩ. EXT ≤ +85°C for industrial A Conditions = 4 MHz 2.0V ( MHz 3.0V, HS mode MHz 5.0V, HS mode kHz 2.0V, LP mode 2.0V, WDT enabled = 2.0V, WDT disabled , MCLR = V ; WDT enabled © 2007 Microchip Technology Inc. ...

  • Page 63

    ... The Power-down Current in Sleep mode does not depend on the oscillator type. 3: Does not include current through /2R (mA) with EXT © 2007 Microchip Technology Inc. Standard Operating Conditions (unless otherwise specified) Operating Temperature -40°C ≤ T Min. Typ† Max. Units 2.0 — 5.5 V (1) — ...

  • Page 64

    ... XT mode LP mode ≤ 5.5V 4.5V < ≤ 4. (3) RC mode HS mode XT mode LP mode ≤ V ≤ PIN DD pin at high-impedance ≤ V ≤ PIN DD ≤ V ≤ PIN DD ≤ V ≤ PIN DD XT, HS and LP modes I = 8 1 -3 -1 © 2007 Microchip Technology Inc. ...

  • Page 65

    ... Low FIGURE 11-2: LOAD CONDITIONS FOR DEVICE TIMING SPECIFICATIONS – PIC16F5X Pin 11.5 Timing Diagrams and Specifications FIGURE 11-3: EXTERNAL CLOCK TIMING Q4 OSC1 CLKOUT © 2007 Microchip Technology Inc. T Time mc MCLR osc oscillator os OSC1 t0 T0CKI wdt watchdog timer P Period R Rise V Valid ...

  • Page 66

    ... XT Osc mode — Osc mode μs — LP Osc mode — Osc mode ns XT Osc mode 250 ns HS Osc mode μs — LP Osc mode — — — oscillator — oscillator μs — LP oscillator 25 oscillator oscillator 50 oscillator © 2007 Microchip Technology Inc. ...

  • Page 67

    ... Data in the Typical (“Typ”) column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: Measurements are taken in RC mode where CLKOUT output Please refer to Figure 11-2 for load conditions. 3: PIC16F54/57 only. 4: PIC16F59 only. © 2007 Microchip Technology Inc 20, 21 Min ...

  • Page 68

    ... Typ† Max. Units 2000* — — 5.0V DD 9.0* 18* 30 5.0V (industrial) DD 9.0* 18* 40 5.0V (extended) DD 9.0* 18* 30 5.0V (industrial) DD 9.0* 18* 40 5.0V (extended) DD 100* 300* 2000* ns © 2007 Microchip Technology Inc. 32 ≤ +85°C for industrial ≤ +125°C for extended Conditions ...

  • Page 69

    ... These parameters are characterized but not tested. † Data in the Typical (“Typ”) column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. © 2007 Microchip Technology Inc Standard Operating Conditions (unless otherwise specified) Operating Temperature -40° ...

  • Page 70

    ... PIC16F5X NOTES: DS41213D-page 68 © 2007 Microchip Technology Inc. ...

  • Page 71

    ... Standard PIC device marking consists of Microchip part number, year code, week code, and traceability code. For PIC 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. © 2007 Microchip Technology Inc. PIC16F5X Example ...

  • Page 72

    ... PDIP (.600") XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX YYWWNNN >h 44-Lead TQFP M XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX YYWWNNN DS41213D-page 70 Example PIC16F57 e -E/SO 3 0718CDK Example PIC16F57 e -E/SS 3 0725CBK Example PIC16F57 e 3 -I/P 0717HAT >h PIC16F59 e -I/P 3 0712SAA >h M PIC16F59 e 3 -04/PT 0711HAT © 2007 Microchip Technology Inc. ...

  • Page 73

    ... Pin 1 visual index feature may vary, but must be located within the hatched area. 2. § Significant Characteristic. 3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side. 4. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. © 2007 Microchip Technology Inc ...

  • Page 74

    ... BSC h 0.25 – L 0.40 – L1 1.40 REF φ 0° – c 0.20 – b 0.31 – α 5° – β 5° – Microchip Technology Drawing C04-051B c MAX 2.65 – 0.30 0.75 1.27 8° 0.33 0.51 15° 15° © 2007 Microchip Technology Inc. ...

  • Page 75

    ... Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.20 mm per side. 3. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. © 2007 Microchip Technology Inc ...

  • Page 76

    ... A1 .015 – E .290 .310 E1 .240 .285 D 1.345 1.365 L .110 .130 c .008 .010 b1 .040 .050 b .014 .018 eB – – Microchip Technology Drawing C04-070B MAX .200 .150 – .335 .295 1.400 .150 .015 .070 .022 .430 © 2007 Microchip Technology Inc. ...

  • Page 77

    ... Pin 1 visual index feature may vary, but must be located within the hatched area. 2. § Significant Characteristic. 3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side. 4. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. © 2007 Microchip Technology Inc ...

  • Page 78

    ... L 0.40 – L1 1.40 REF φ 0° – c 0.18 – b 0.31 – α 5° – β 5° – Microchip Technology Drawing C04-052B h c β MAX 2.65 – 0.30 0.75 1.27 8° 0.33 0.51 15° 15° © 2007 Microchip Technology Inc. ...

  • Page 79

    ... Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.20 mm per side. 3. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. © 2007 Microchip Technology Inc ...

  • Page 80

    ... A1 .015 – E .590 – E1 .485 – D 1.980 – L .115 – c .008 – b1 .030 – b .014 – eB – – Microchip Technology Drawing C04-016B MAX .250 .195 – .625 .580 2.095 .200 .015 .070 .023 .700 © 2007 Microchip Technology Inc. ...

  • Page 81

    ... Dimensions D1 and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.25 mm per side. 4. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. © 2007 Microchip Technology Inc ...

  • Page 82

    ... PIC16F5X APPENDIX A: DATA SHEET REVISION HISTORY Revision D (04/2007) Changed PICmicro to PIC; Replaced Dev. Tool Section; Updated Package Marking Information and replaced Package Drawings (Rev. AP) DS41213D-page 80 © 2007 Microchip Technology Inc. ...

  • Page 83

    ... Electrical Specifications PIC16F54/57............................................................... 57 PIC16F59.................................................................... 58 Errata .................................................................................... 3 External Power-On Reset Circuit ........................................ 25 F FSR Register ...................................................................... 20 Value on Reset (PIC16F54)........................................ 24 Value on Reset (PIC16F57)........................................ 24 Value on Reset (PIC16F59)........................................ 24 © 2007 Microchip Technology Inc. PIC16F5X G GOTO ........................................................................... 19 High-Performance RISC CPU .............................................. 1 I I/O Interfacing ..................................................................... 29 I/O Ports ............................................................................. 29 I/O Programming Considerations ....................................... 31 ID Locations.................................................................. 37, 39 INCF ...

  • Page 84

    ... TO bit ............................................................................ 17, 23 TRIS.................................................................................... 51 TRIS Registers ................................................................... 29 Value on Reset ........................................................... Register Value on Reset ........................................................... 24 Wake-up from Sleep ..................................................... 23, 39 Watchdog Timer (WDT)................................................ 37, 38 Period ......................................................................... 38 Programming Considerations ..................................... 38 Register Values on Reset ........................................... 24 WWW Address ................................................................... 83 WWW, On-Line Support ....................................................... 3 X XORLW............................................................................... 52 XORWF .............................................................................. 52 Z Zero (Z) bit ...................................................................... 7, 17 © 2007 Microchip Technology Inc. ...

  • Page 85

    ... To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions. © 2007 Microchip Technology Inc. CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • Distributor or Representative • ...

  • Page 86

    ... What deletions from the document could be made without affecting the overall usefulness there any incorrect or misleading information (what and where)? 7. How would you improve this document? DS41213D-page 84 Total Pages Sent ________ FAX: (______) _________ - _________ N Literature Number: DS41213D © 2007 Microchip Technology Inc. ...

  • Page 87

    ... Microchip Technology Inc. XXX Examples: Pattern a) PIC16F54–I/P = Industrial temp, PDIP package b) PIC16F54T–I/SSG = Industrial temp, SSOP package (Pb -free), tape and reel c) PIC16F57–E/SP6 = Extended temp, Skinny Plastic DIP package (Pb-free) d) PIC16F57T–E/SS = Extended temp, SSOP package, tape and reel e) PIC16F54– ...

  • Page 88

    ... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2007 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...