PIC16F505T-I/MG Microchip Technology, PIC16F505T-I/MG Datasheet

1.5 KB Flash, 72 RAM, 12 I/O 16 QFN 3x3x0.9mm T/R

PIC16F505T-I/MG

Manufacturer Part Number
PIC16F505T-I/MG
Description
1.5 KB Flash, 72 RAM, 12 I/O 16 QFN 3x3x0.9mm T/R
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet

Specifications of PIC16F505T-I/MG

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
11
Program Memory Size
1.5KB (1K x 12)
Program Memory Type
FLASH
Ram Size
72 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
16-QFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC12F508/509/16F505
Data Sheet
8/14-Pin, 8-Bit Flash Microcontrollers
© 2009 Microchip Technology Inc.
DS41236E

Related parts for PIC16F505T-I/MG

PIC16F505T-I/MG Summary of contents

Page 1

... Flash Microcontrollers © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Data Sheet DS41236E ...

Page 2

... 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. ...

Page 3

... High-speed crystal/resonator (PIC16F505 only) - LP: Power-saving, low-frequency crystal - EC: High-speed external clock input (PIC16F505 only) © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Low-Power Features/CMOS Technology: • Operating Current: - < 175 μA @ 2V, 4 MHz, typical • Standby Current: - 100 nA @ 2V, typical • Low-Power, High-Speed Flash Technology: - 100,000 Flash endurance - > ...

Page 4

... PIC16F505 16-Pin Diagram (QFN) RB5/OSC1/CLKIN RB4/OSC2/CLKOUT RB3/MCLR/V RC5/TOCKI DS41236E-page 4 PDIP, SOIC, MSOP RB0/ICSPDAT GP5/OSC1/CLKIN RB1/ICSPCLK GP4/OSC2 RB2 GP3/MCLR/V PP RC0 RC1 RC2 GP0/ICSPDAT GP1/ICSPCLK GP2/T0CKI 4 5 RB0/ICSPDAT 12 1 RB1/ICSPCLK 11 2 PIC16F505 RB2 RC0 GP0/ICSPDAT GP1/ICSPCLK 6 GP2/T0CKI 4 5 © 2009 Microchip Technology Inc. ...

Page 5

... Program Memory Device Flash (words) PIC12F508 PIC12F509 PIC16F505 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Data Memory SRAM (bytes) 512 25 1024 41 1024 72 Timers I/O 8-bit DS41236E-page 5 ...

Page 6

... When contacting a sales office or the literature center, 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/cn to receive the most current information on all of our products. DS41236E-page 6 © 2009 Microchip Technology Inc. ...

Page 7

... The PIC12F508/509/16F505 devices have Power-on Reset, selectable Watchdog Timer, selectable code-protect, high I/O current capability and precision internal oscillator. The PIC12F508/509/16F505 devices use serial programming with data pin RB0/GP0 and clock pin RB1/GP1. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 1.1 Applications ...

Page 8

... PIC12F508/509/16F505 NOTES: DS41236E-page 8 © 2009 Microchip Technology Inc. ...

Page 9

... Flash devices but with all Flash locations and fuse options already programmed by the factory. Certain code and prototype verification procedures do apply before production shipments are available. Please contact your local Microchip Technology sales office for more details. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 2 ...

Page 10

... PIC12F508/509/16F505 NOTES: DS41236E-page 10 © 2009 Microchip Technology Inc. ...

Page 11

... This symmetrical nature and lack of “special optimal situations” make programming with the PIC12F508/509/16F505 devices simple, yet efficient. In addition, the learning curve is reduced significantly. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 The PIC12F508/509/16F505 devices contain an 8-bit ALU and working register. The ALU is a general purpose arithmetic unit ...

Page 12

... RAM Stack 1 Stack 2 File Registers RAM Addr 9 Addr MUX Indirect 5 Direct Addr 5-7 Addr FSR Reg Status Reg 3 MUX Device Reset Timer ALU Power-on Reset 8 Watchdog W Reg Timer Timer0 GPIO GP0/ISCPDAT GP1/ISCPCLK GP2/T0CKI GP3/MCLR/V PP GP4/OSC2 GP5/OSC1/CLKIN © 2009 Microchip Technology Inc. ...

Page 13

... Legend Input Output, I/O = Input/Output Power, — = Not used, TTL = TTL input Schmitt Trigger input High Voltage © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Output Type TTL CMOS Bidirectional I/O pin. Can be software programmed for internal weak pull-up and wake-up from Sleep on pin change. ...

Page 14

... RAM Addr 9 Addr MUX Indirect 5 5-7 Addr FSR Reg Status Reg 3 MUX Timer Power-on ALU Reset 8 Watchdog W Reg Timer Internal RC OSC Timer0 PORTB RB0/ICSPCLK RB1/ICSPDAT RB2 RB3/MCLR/V PP RB4/OSC2/CLKOUT RB5/OSC1/CLKIN PORTC RC0 RC1 RC2 RC3 RC4 RC5/T0CKI © 2009 Microchip Technology Inc. ...

Page 15

... Legend Input Output, I/O = Input/Output Power, — = Not used, TTL = TTL input Schmitt Trigger input High Voltage © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Output Type TTL CMOS Bidirectional I/O pin. Can be software programmed for internal weak pull-up and wake-up from Sleep on pin change. ...

Page 16

... 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 © 2009 Microchip Technology Inc. ...

Page 17

... The effective Reset vector is a 0000h (see Figure 4-1). Location 01FFh (PIC12F508) and location 03FFh (PIC12F509) contain the internal clock oscillator calibration value. This value should never be overwritten. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 FIGURE 4-1: PROGRAM MEMORY MAP AND STACK FOR THE PIC12F508/509 PC< ...

Page 18

... GENERAL PURPOSE REGISTER FILE 0000h The General Purpose Register file is accessed, either directly or indirectly, through the File Select Register (FSR). See Section 4.9 “Indirect Data Addressing: INDF and FSR Registers”. 01FFh 0200h 03FFh 0400h 7FFh © 2009 Microchip Technology Inc. ...

Page 19

... Purpose Registers 0Fh 10h General Purpose Registers 1Fh Bank 0 Note 1: Not a physical register. See Section 4.9 “Indirect Data Addressing: INDF and FSR Registers”. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 FIGURE 4-4: FSR<5> File Address 00h 01h 02h 03h 04h OSCCAL ...

Page 20

... GP3 GP2 GP1 I/O Control Register PSA PS2 PS1 Value on Power-On Page # (2) Reset 28 xxxx xxxx 35 xxxx xxxx 27 1111 1111 ( 0-01 1xxx 28 111x xxxx 28 110x xxxx — 26 1111 111- GP0 31 --xx xxxx 31 --11 1111 PS0 24 1111 1111 © 2009 Microchip Technology Inc. ...

Page 21

... Note 1: If Reset was due to wake-up on pin change, then bit All other Resets will cause bit Other (non Power-up) Resets include external reset through MCLR, Watchdog Timer and wake-up on pin change Reset. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Bit 5 Bit 4 Bit 3 ...

Page 22

... Status bits, see Section 8.0 “Instruction Set Summary”. R-1 R-1 R/W Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared (1) RRF or RLF: SUBWF borrow did not occur Load bit with LSb or MSb, respectively borrow occurred R/W-x R/W bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 23

... A borrow from the 4th low-order bit of the result did not occur borrow from the 4th low-order bit of the result occurred bit 0 C: Carry/Borrow bit (for ADDWF, SUBWF and RRF, RLF instructions) ADDWF carry occurred carry did not occur borrow occurred © 2009 Microchip Technology Inc. PIC12F508/509/16F505 R-1 R-1 R/W Unimplemented bit, read as ‘ ...

Page 24

... If the T0CS bit is set to ‘1’, it will override the TRIS function on the T0CKI pin. W-1 W-1 T0SE PSA U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared /4 OSC 128 256 1 : 128 W-1 W-1 W-1 PS2 PS1 PS0 bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 25

... PS<2:0>: Prescaler Rate Select bits Bit Value Timer0 Rate WDT Rate 000 001 010 011 100 101 110 111 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 W-1 W-1 T0SE PSA U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared /4 OSC ...

Page 26

... After you move in the calibration constant, do not change the value. See Section 7.2.5 “Internal 4 MHz RC Oscillator”. R/W-1 R/W-1 R/W-1 CAL3 CAL2 CAL1 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared R/W-0 R/W-1 CAL0 — bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 27

... PCL Instruction Word Reset to ‘0’ PA0 7 0 Status © 2009 Microchip Technology Inc. PIC12F508/509/16F505 4.7.1 EFFECTS OF RESET The PC is set upon a Reset, which means that the PC addresses the last location in the last page (i.e., the oscillator calibration instruction). After executing MOVLW XX, the PC will roll over to location 00h and begin executing user code ...

Page 28

... Bank 0 Bank 1 HOW TO CLEAR RAM USING INDIRECT ADDRESSING 0x10 ;initialize pointer FSR ;to RAM INDF ;clear INDF ;register FSR,F ;inc pointer FSR,4 ;all done? NEXT ;NO, clear next : ;YES, continue : Indirect Addressing (FSR) 0 Bank Location Select © 2009 Microchip Technology Inc. ...

Page 29

... Direct Addressing (FSR (opcode) Bank Select Location Select 00h Data 0Fh (1) Memory 10h Note 1: For register map detail, see Section 4.3 “Data Memory Organization”. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Addresses map back to addresses in Bank 0. 1Fh 3Fh 5Fh 7Fh Bank 0 ...

Page 30

... PIC12F508/509/16F505 NOTES: DS41236E-page 30 © 2009 Microchip Technology Inc. ...

Page 31

... The TRIS registers are “write-only” and are set (output drivers disabled) upon Reset. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 5.4 I/O Interfacing The equivalent circuit for an I/O port pin is shown in Figure 5-2 ...

Page 32

... PS0 1111 1111 1111 1111 PS0 1111 1111 1111 1111 (3) C 0-01 1xxx q00q quuu (3) C 0-01 1xxx q00q quuu GP0 --xx xxxx --uu uuuu RB0 --xx xxxx --uu uuuu RC0 --xx xxxx --uu uuuu © 2009 Microchip Technology Inc. ...

Page 33

... Instruction Fetched MOVWF PORTB MOVF PORTB, W RB<5:0> Port pin written here Instruction Executed MOVWF PORTB (Write to PORTB) © 2009 Microchip Technology Inc. PIC12F508/509/16F505 EXAMPLE 5-1: ;Initial PORTB Settings ;PORTB<5:3> Inputs ;PORTB<2:0> Outputs ; ; ; BCF PORTB, 5 ;--01 -ppp BCF PORTB, 4 ;--10 -ppp MOVLW 007h ...

Page 34

... PIC12F508/509/16F505 NOTES: DS41236E-page 34 © 2009 Microchip Technology Inc. ...

Page 35

... Fetch Timer0 Instruction Executed © 2009 Microchip Technology Inc. PIC12F508/509/16F505 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 T0SE bit (OPTION<4>) determines the source edge. Clearing the T0SE bit selects the rising edge. Restric- tions on the external clock input are discussed in detail in Section 6.1 “ ...

Page 36

... Read TMR0 Read TMR0 reads NT0 + 1 reads NT0 reads NT0 + 2 Value on Value on Bit 0 Power-On All Other Reset Resets xxxx xxxx uuuu uuuu PS0 1111 1111 1111 1111 PS0 1111 1111 1111 1111 --11 1111 --11 1111 RC0 --11 1111 --11 1111 © 2009 Microchip Technology Inc. ...

Page 37

... Timer0 input = ± External clock if no prescaler selected; prescaler output otherwise. 3: The arrows indicate the points in time where sampling occurs. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 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

... WDT is disabled. A CLRWDT instruction should be executed before switching the prescaler. EXAMPLE 6-2: CHANGING PRESCALER (WDT → TIMER0) CLRWDT ;Clear WDT and ;prescaler MOVLW ‘xxxx0xxx’ ;Select TMR0, new ;prescale value and ;clock source OPTION © 2009 Microchip Technology Inc. ...

Page 39

... T0SE Watchdog Timer PSA WDT Enable bit Note 1: T0CS, T0SE, PSA, PS<2:0> are bits in the OPTION register. 2: T0CKI is shared with pin RC5 on the PIC16F505 and pin GP2 on the PIC12F508/509. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Sync Cycles T0CS ...

Page 40

... PIC12F508/509/16F505 NOTES: DS41236E-page 40 © 2009 Microchip Technology Inc. ...

Page 41

... Code Protection • ID Locations • In-Circuit Serial Programming™ • Clock Out © 2009 Microchip Technology Inc. PIC12F508/509/16F505 The PIC12F508/509/16F505 devices have a Watchdog Timer, which can be shut off only through Configuration bit WDTE. It runs off of its own RC oscillator for added reliability ...

Page 42

... Refer to the “PIC12F508/509 Memory Programming Specifications” (DS41227) to determine how to access the Configuration Word. The Configuration Word is not user addressable during device operation. DS41236E-page 42 (1) — — — MCLRE Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared DD WDTE FOSC1 FOSC0 bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 43

... EC oscillator/RB4 function on RB4/OSC2/CLKOUT pin 010 = HS oscillator 001 = XT oscillator 000 = LP oscillator Refer to the “PIC16F505 Memory Programming Specifications” (DS41226) to determine how to access Note 1: the Configuration Word. The Configuration Word is not user addressable during device operation. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 (1) — — MCLRE CP WDTE U = Unimplemented bit, read as ‘ ...

Page 44

... OSC CONFIGURATION) PIC12F508/509 OSC1 PIC16F505 Sleep XTAL ( internal logic OSC2 (2) RS EXTERNAL CLOCK INPUT OPERATION (HS OSC CONFIGURATION) OSC1 PIC12F508/509 PIC16F505 Open OSC2 CAPACITOR SELECTION FOR CERAMIC RESONATORS – (1) PIC12F508/509/16F505 Cap. Range Cap. Range Freq 10-47 pF 10-47 pF © 2009 Microchip Technology Inc. ...

Page 45

... The 4.7 kΩ resistor provides the negative feedback for stability. The 10 kΩ potentiome- ters bias the 74AS04 in the linear region. This circuit could be used for external oscillator designs. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 FIGURE 7-3: (2) +5V Cap ...

Page 46

... See Register 4-5 for more information. Internal clock Note: The 0 bit of OSCCAL is unimplemented and should be written as ‘0’ when modifying OSCCAL for compatibility with PIC16F505 future devices. PIC12F508 PIC12F509 for © 2009 Microchip Technology Inc. ...

Page 47

... If Reset was due to wake-up on pin change, then bit All other Resets will cause bit PIC12F509 only. 5: PIC12F508 only. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Some registers are not reset in any way, they are unknown on POR and unchanged in any other Reset. Most other registers are reset to “Reset state” on Power-on Reset (POR), MCLR, WDT or Wake-up on pin change Reset during normal operation ...

Page 48

... STATUS Addr: 03h 0001 1xxx 000u uuuu 0001 0uuu 0000 0uuu 0000 uuuu 1001 0uuu © 2009 Microchip Technology Inc. (1) (2), (3) PCL Addr: 02h 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 ...

Page 49

... Reset until the operating parameters are met. A simplified block diagram of the on-chip Power-on Reset circuit is shown in Figure 7-7. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 The Power-on Reset circuit and the Device Reset Timer (see Section 7.5 “Device Reset Timer (DRT)”) circuit are closely related ...

Page 50

... DRT Time-out Internal Reset FIGURE 7-9: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO V TIME V DD MCLR Internal POR DRT Time-out Internal Reset DS41236E-page 50 POR (Power-on Reset) MCLR Reset Start-up Timer (10 μ ms) TDRT CHIP Reset TDRT ): FAST V RISE DD DD © 2009 Microchip Technology Inc. ...

Page 51

... V DD MCLR Internal POR DRT Time-out Internal Reset Note: When V rises slowly, the T DD value. In this example, the chip will reset properly if, and only if, V1 ≥ V © 2009 Microchip Technology Inc. PIC12F508/509/16F505 V1 TDRT time-out expires long before V DRT DD ): SLOW V RISE DD DD has reached its final min ...

Page 52

... WDT. This gives the maximum Sleep time before a WDT wake-up Reset. disabled by DRT (DEVICE RESET TIMER PERIOD) Subsequent POR Reset Resets 10 μs (typical (typical (typical (typical) 10 μs (typical (typical) and part-to-part DD = Min., Temperature DD © 2009 Microchip Technology Inc. ...

Page 53

... N/A OPTION GPWU GPPU T0CS (2) N/A OPTION RBWU RBPU Legend: Shaded boxes = Not used by Watchdog Timer. – = unimplemented, read as ‘0’ unchanged. Note 1: PIC12F508/509 only. 2: PIC16F505 only. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 0 M Postscaler Postscaler 8-to-1 MUX PSA To Timer0 0 1 MUX ...

Page 54

... Microchip Technology’s MCP809 micro- controller supervisor. There are 7 different trip point selections to accommodate systems. goes DD BROWN-OUT PROTECTION CIRCUIT PIC16F505 PIC12F508 Q1 (2) PIC12F509 MCLR (1) 40k is below a certain level such 0. BROWN-OUT PROTECTION CIRCUIT MCLR PIC16F505 PIC12F508 PIC12F509 © 2009 Microchip Technology Inc. ...

Page 55

... Sleep, a wake-up will occur immediately even if no pins change while in Sleep mode. The WDT is cleared when the device wakes from Sleep, regardless of the wake-up source. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 7.10 Program Verification/Code Protection If the code protection bit has not been programmed, the on-chip program memory can be read out for verification purposes ...

Page 56

... PIC12F508/509/16F505 FIGURE 7-15: TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION To Normal Connections External Connector Signals + MCLR/V PP GP1/RB1 CLK Data I/O GP0/RB0 Normal Connections DS41236E-page 56 PIC16F505 PIC12F508 PIC12F509 PP © 2009 Microchip Technology Inc. ...

Page 57

... Register bit field ∈ In the set of User defined term (font is courier) italics © 2009 Microchip Technology Inc. PIC12F508/509/16F505 All instructions are executed within a single instruction cycle, unless a conditional test is true or the program counter is changed as a result of an instruction. In this case, the execution takes two instruction cycles. One instruction cycle consists of four oscillator periods ...

Page 58

... 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 © 2009 Microchip Technology Inc. Notes ...

Page 59

... The contents of the W register are AND’ed 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’. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 BCF Bit Clear f Syntax: [ label ] BCF 0 ≤ ...

Page 60

... Operands: d ∈ [0,1] (f) → (dest) Operation: Status Affected: Z Description: The contents of register ‘f’ are complemented. If ‘d’ is ‘0’, the result is stored in the W register. If ‘d’ is ‘1’, the result is stored back in register ‘f’. © 2009 Microchip Technology Inc. ...

Page 61

... Status Affected: None Description: GOTO is an unconditional branch. The 9-bit immediate value is loaded into PC bits <8:0>. The upper bits of PC are loaded from STATUS<6:5>. GOTO is a two- cycle instruction. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 INCF Increment f Syntax: [ label ] INCF f,d 0 ≤ f ≤ 31 Operands: d ∈ ...

Page 62

... NOP Operands: None Operation: No operation Status Affected: None Description: No operation. OPTION Load OPTION Register Syntax: [ label ] OPTION Operands: None (W) → OPTION Operation: Status Affected: None Description: The content of the W register is loaded into the OPTION register. © 2009 Microchip Technology Inc. f ...

Page 63

... Carry flag. If ‘d’ is ‘0’, the result is placed in the W register. If ‘d’ is ‘1’, the result is placed back in register ‘f’. register ‘f’ C © 2009 Microchip Technology Inc. PIC12F508/509/16F505 SLEEP Syntax: Operands: Operation: Status Affected: TO, PD, RBWUF ...

Page 64

... Operation: Status Affected: Z Description: Exclusive OR the contents of the 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’. © 2009 Microchip Technology Inc. f,d ...

Page 65

... PICSTART Plus Development Programmer - MPLAB PM3 Device Programmer - PICkit™ 2 Development Programmer • Low-Cost Demonstration and Development Boards and Evaluation Kits © 2009 Microchip Technology Inc. PIC12F508/509/16F505 9.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 66

... 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 PC-hosted environment by ® DSCs on an © 2009 Microchip Technology Inc. ...

Page 67

... Microchip Technology Inc. PIC12F508/509/16F505 9.9 MPLAB ICD 2 In-Circuit Debugger Microchip’s In-Circuit Debugger, MPLAB ICD ...

Page 68

... ICs, CAN, IrDA EE OQ ® battery management, SEEVAL evaluation system, Sigma-Delta ADC, flow rate sensing, plus many more. Check the Microchip web page (www.microchip.com) for the complete list of demonstration, development and evaluation kits. © 2009 Microchip Technology Inc. kits and ® , PowerSmart ...

Page 69

... 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. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 ............................................................................... -0. )...................................................................................................................± ...

Page 70

... V DD (Volts) 4.0 3.5 3.0 2.5 2.0 0 FIGURE 10-2: MAXIMUM OSCILLATOR FREQUENCY TABLE LP XT INTOSC EXTRC ( 200 kHz Note 1: For PIC16F505 only. DS41236E-page 70 (PIC16F505 only Frequency (MHz) 4 MHz Frequency (MHz) ≤ +125° MHz © 2009 Microchip Technology Inc. ...

Page 71

... For standby current measurements, the conditions are the same as IDD, except that the device is in Sleep mode module current is listed, the current is for that specific module enabled and the device in Sleep. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Standard Operating Conditions (unless otherwise specified) Operating Temperature -40° ...

Page 72

... Reset (POR)" for details See Section 7.4 "Power-on Reset (POR)" for details MHz 2.0V OSC MHz 5.0V OSC MHz 3.0V OSC MHz 5.0V OSC DD (PIC16F515 only kHz 2.0V OSC kHz 5.0V OSC T0CKI = V , MCLR = SS DD © 2009 Microchip Technology Inc. ...

Page 73

... GP3/MCLR is configured as GP3 with a weak pull-up or enabled as MCLR. 5: This specification applies when GP3/RB3/MCLR is configured as an input with pull-up disabled. The leakage current of the MCLR circuit is higher than the standard I/O logic. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Standard Operating Conditions (unless otherwise specified) -40°C ≤ T ≤ ...

Page 74

... Max. 186K 187K 190K 190K 33K 34K 35K 35K 96K 116K 116K 119K 22K 23K 28K 29K © 2009 Microchip Technology Inc. ...

Page 75

... Uppercase letters and their meanings Fall H High I Invalid (high-impedance) L Low FIGURE 10-3: LOAD CONDITIONS – PIC12F508/509/16F505 pin FIGURE 10-4: EXTERNAL CLOCK TIMING – PIC12F508/509/16F505 Q4 OSC1 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 T Time mc MCLR osc Oscillator os OSC1 t0 T0CKI wdt Watchdog Timer P Period R Rise ...

Page 76

... LP Oscillator mode only) LP Oscillator mode XT Oscillator mode EC, HS Oscillator mode (PIC16F505 only) LP Oscillator mode EXTRC Oscillator mode XT Oscillator mode HS Oscillator mode (PIC16F505 only) LP Oscillator mode XT Oscillator LP Oscillator EC, HS Oscillator (PIC16F505 only) XT Oscillator LP Oscillator EC, HS Oscillator (PIC16F505 only) © 2009 Microchip Technology Inc. ...

Page 77

... I/O Pin Old Value (output) Note: All tests must be done with specified capacitive loads (see data sheet I/O pins and CLKOUT. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Standard Operating Conditions (unless otherwise specified) -40°C ≤ T Operating Temperature -40°C ≤ T Freq Min. Typ† ...

Page 78

... A -40°C ≤ T ≤ +125°C (extended) A range is described in Section 10.1 "Power-on Reset (POR)" DD Characteristic (2), (3) (2) (3) ( (1) Min. Typ Max. Units — — 100 — — — — ns — 10 25** ns — © 2009 Microchip Technology Inc. ...

Page 79

... These parameters are characterized but not tested. Note 1: Data in the Typical (“Typ”) column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Standard Operating Conditions (unless otherwise specified) Operating Temperature -40°C ≤ T -40° ...

Page 80

... Section 10.1 "Power-on Reset (POR)" Min. Typ No Prescaler 0 20* CY With Prescaler 10* No Prescaler 0 20* CY With Prescaler 10 40 (1) Max. Units Conditions — — ns — — ns — — ns — — ns — — ns Whichever is greater Prescale Value (1, 2, 4,..., 256) © 2009 Microchip Technology Inc. ...

Page 81

... 1,400 Typical: Statistical Mean @25°C 1,200 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 1,000 800 600 400 200 0 2.0 2.5 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 = 4 MHz OSC 4 MHz 4 MHz 3.0 3.5 4.0 V (V) DD Maximum Typical 4.5 5.0 5.5 DS41236E-page 81 ...

Page 82

... DS41236E-page 82 ( PIC16F505 only) DD ODE Max. 3V Typical Fosc (MHz) vs. V (SLEEP MODE, ALL PERIPHERALS DISABLED) DD Typical (Sleep Mode all Peripherals Disabled) 3.0 3.5 4.0 V (V) DD Max. 5V Typical 4.5 5.0 5.5 © 2009 Microchip Technology Inc. ...

Page 83

... Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ 7 (-40°C to 125° 2.0 2.5 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 vs. V (SLEEP MODE, ALL PERIPHERALS DISABLED) DD Maximum (Sleep Mode all Peripherals Disabled) Max. 125°C Max. 85°C 3.0 3.5 4.0 V ...

Page 84

... Maximum Max. 125°C Max. 85°C 3.0 3.5 4.0 V (V) DD (1) Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 3.0 3.5 4.0 V (V) DD 4.5 5.0 5.5 OVER TEMPERATURE (NO DD 4.5 5.0 5.5 © 2009 Microchip Technology Inc. ...

Page 85

... Maximum: Mean (Worst-Case Temp) + 3σ Maximum: Meas + 3 (-40°C to 125°C) 0.35 0.30 0.25 0.20 0.15 0.10 0.05 0.00 5.0 5.5 6.0 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 = 3.0V) DD (VDD = 3V, -40×C TO 125×C) Typical 25°C Min. -40°C 6.5 7.0 7.5 8.0 I (mA ...

Page 86

... DS41236E-page 86 = 3.0V) DD -1.5 -2.0 -2.5 I (mA 5.0V -1.5 -2.0 -2.5 -3.0 -3.5 I (mA) OH Max. -40°C Typ. 25°C Min. 125°C -3.0 -3.5 -4.0 Max. -40°C Typ. 25°C Min. 125°C -4.0 -4.5 -5.0 © 2009 Microchip Technology Inc. ...

Page 87

... Typical: Statistical Mean @25°C 3.5 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 3.0 2.5 2.0 1.5 1.0 0.5 2.0 2.5 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 vs (TTL Input, -40×C TO 125×C) Max. -40°C Typ. 25°C Min. 125°C 3.0 3.5 4.0 ...

Page 88

... PIC12F508/509/16F505 FIGURE 11-14: TYPICAL INTOSC FREQUENCY CHANGE 2.5 2.5 2 FIGURE 11-15: TYPICAL INTOSC FREQUENCY CHANGE 2.5 2.5 2 DS41236E-page 3.5 4 4.5 3 3.5 4 4 3.5 4 4.5 3 3.5 4 4.5 V (V) DD (25°C) 5 5.5 (-40°C) 5 5.5 5 5.5 © 2009 Microchip Technology Inc. ...

Page 89

... FIGURE 11-16: TYPICAL INTOSC FREQUENCY CHANGE 2.5 2.5 2 FIGURE 11-17: TYPICAL INTOSC FREQUENCY CHANGE 2.5 2.5 2 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 DD 3 3.5 4 4.5 3 3.5 4 4 4.5 4.5 3 3.5 V (V) DD (85°C) 5 5.5 5.5 5 (125° 5.5 5.5 DS41236E-page 89 ...

Page 90

... PIC12F508/509/16F505 NOTES: DS41236E-page 90 © 2009 Microchip Technology Inc. ...

Page 91

... 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. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 Example ...

Page 92

... DFN (MC) TOP MARKING Part Number PIC12F508 (T) - I/MC PIC12F508-E/MC PIC12F509 (T) - I/MC PIC12F509-E/MC DS41236E-page 92 Example PIC16F505 e -I/P 3 0215 0610017 Example PIC16F505-E /SL0125 0610017 Example 16F505-I 0610 017 Example 16F505 -I/MG 0610017 Marking BN0 BP0 BQ0 BR0 © 2009 Microchip Technology Inc. ...

Page 93

... N NOTE © 2009 Microchip Technology Inc. PIC12F508/509/16F505 DS41236E-page 93 ...

Page 94

... PIC12F508/509/16F505 N NOTE DS41236E-page φ α c β © 2009 Microchip Technology Inc. ...

Page 95

... Microchip Technology Inc. PIC12F508/509/16F505 DS41236E-page 95 ...

Page 96

... PIC12F508/509/16F505 D N NOTE DS41236E-page φ L © 2009 Microchip Technology Inc. ...

Page 97

... D N NOTE TOP VIEW A3 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 EXPOSED PAD BOTTOM VIEW A NOTE NOTE DS41236E-page 97 ...

Page 98

... PIC12F508/509/16F505 N NOTE DS41236E-page © 2009 Microchip Technology Inc. ...

Page 99

... N NOTE © 2009 Microchip Technology Inc. PIC12F508/509/16F505 φ α c β DS41236E-page 99 ...

Page 100

... PIC12F508/509/16F505 D N NOTE DS41236E-page 100 © 2009 Microchip Technology Inc. φ L ...

Page 101

... Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging © 2009 Microchip Technology Inc. PIC12F508/509/16F505 DS41236E-page 101 ...

Page 102

... PIC12F508/509/16F505 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging DS41236E-page 102 © 2009 Microchip Technology Inc. ...

Page 103

... Note 5, Table 10-1; Deleted Param. No. D061 (Table 10-1) and Param. No. D061A becomes D061; Added QFN Package Information; Revised Product Identification System; Added Figures 11-14, 11-15, 11- 16, 11-7 to Char Data section; Other minor corrections; Removed Preliminary status. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 DS41236E-page 103 ...

Page 104

... PIC12F508/509/16F505 NOTES: DS41236E-page 104 © 2009 Microchip Technology Inc. ...

Page 105

... Microchip Internet Web Site .............................................. 107 MPLAB ASM30 Assembler, Linker, Librarian ..................... 66 MPLAB ICD 2 In-Circuit Debugger ..................................... 67 MPLAB ICE 2000 High-Performance Universal In-Circuit Emulator ...................................................... 67 © 2009 Microchip Technology Inc. PIC12F508/509/16F505 MPLAB Integrated Development Environment Software.... 65 MPLAB PM3 Device Programmer ...................................... 67 MPLAB REAL ICE In-Circuit Emulator System .................. 67 MPLINK Object Linker/MPLIB Object Librarian ...

Page 106

... PIC12F508/509/16F505 W Wake-up from Sleep ........................................................... 55 Watchdog Timer (WDT) ................................................ 41, 52 Period.......................................................................... 52 Programming Considerations ..................................... 52 WWW Address.................................................................. 107 WWW, On-Line Support........................................................ 6 Z Zero bit ................................................................................ 11 DS41236E-page 106 © 2009 Microchip Technology Inc. ...

Page 107

... To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions. © 2009 Microchip Technology Inc. PIC12F508/509/16F505 CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • ...

Page 108

... 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? DS41236E-page 108 Total Pages Sent ________ FAX: (______) _________ - _________ N Literature Number: DS41236E © 2009 Microchip Technology Inc. ...

Page 109

... 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. X /XX Device Temperature Package Range Device: PIC16F505 PIC12F508 PIC12F509 (1) PIC16F505T (2) PIC12F508T (2) PIC12F509T Temperature I = -40°C to +85°C (Industrial) Range -40°C to +125°C (Extended) Package: ...

Page 110

... Fax: 886-3-6578-370 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 © 2009 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 ...

Related keywords