PIC12C508A/JW Microchip Technology, PIC12C508A/JW Datasheet

IC MCU EPROM 512X12 8CDIP

PIC12C508A/JW

Manufacturer Part Number
PIC12C508A/JW
Description
IC MCU EPROM 512X12 8CDIP
Manufacturer
Microchip Technology
Series
PIC® 12Cr

Specifications of PIC12C508A/JW

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
768B (512 x 12)
Program Memory Type
EPROM, UV
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
8-CDIP (0.300", 7.62mm) Window
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMINGDVMCPA - KIT DVR BOARD EVAL SYSTEM MXDEV1DVA12XP080 - ADAPTER DEVICE FOR MPLAB-ICEAC124001 - MODULE SKT PROMATEII 8DIP/SOIC
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Data Converters
-
Connectivity
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12C508A/JW
Manufacturer:
MICROCHIP
Quantity:
105
Devices included in this Data Sheet:
• PIC12C508
• PIC12C509
• PIC12CR509A
High-Performance RISC CPU:
• Only 33 single word instructions to learn
• All instructions are single cycle (1 s) except for
• Operating speed: DC - 4 MHz clock input
PIC12C508
PIC12C508A
PIC12C509
PIC12C509A
PIC12CE518
PIC12CE519
PIC12CR509A
• 12-bit wide instructions
• 8-bit wide data path
• Seven special function hardware registers
• Two-level deep hardware stack
• Direct, indirect and relative addressing modes for
• Internal 4 MHz RC oscillator with programmable
• In-circuit serial programming
1999 Microchip Technology Inc.
Note: Throughout this data sheet PIC12C5XX
program branches which are two-cycle
data and instructions
calibration
Device
refers to the PIC12C508, PIC12C509,
PIC12C508A, PIC12C509A,
PIC12CR509A, PIC12CE518 and
PIC12CE519. PIC12CE5XX refers to
PIC12CE518 and PIC12CE519.
1024 x 12
1024 x 12
1024 x 12
Program
512 x 12
512 x 12
512 x 12
EPROM
• PIC12C508A
• PIC12C509A
DC - 1 s instruction cycle
8-Pin, 8-Bit CMOS Microcontrollers
1024 x 12
Program
ROM
Memory
• PIC12CE518
• PIC12CE519
RAM
Data
25
25
41
41
25
41
41
EEPROM
Data
16
16
Peripheral Features:
• 8-bit real time clock/counter (TMR0) with 8-bit
• Power-On Reset (POR)
• Device Reset Timer (DRT)
• Watchdog Timer (WDT) with its own on-chip RC
• Programmable code-protection
• 1,000,000 erase/write cycle EEPROM data
• EEPROM data retention > 40 years
• Power saving SLEEP mode
• Wake-up from SLEEP on pin change
• Internal weak pull-ups on I/O pins
• Internal pull-up on MCLR pin
• Selectable oscillator options:
CMOS Technology:
• Low power, high speed CMOS EPROM/ROM
• Fully static design
• Wide operating voltage range
• Wide temperature range:
• Low power consumption
programmable prescaler
oscillator for reliable operation
memory
- INTRC: Internal 4 MHz RC oscillator
- EXTRC: External low-cost RC oscillator
- XT:
- LP:
technology
- Commercial: 0°C to +70°C
- Industrial: -40°C to +85°C
- Extended: -40°C to +125°C
- < 2 mA @ 5V, 4 MHz
- 15 A typical @ 3V, 32 KHz
- < 1 A typical standby current
PIC12C5XX
Standard crystal/resonator
Power saving, low frequency crystal
DS40139E-page 1

Related parts for PIC12C508A/JW

PIC12C508A/JW Summary of contents

Page 1

... Direct, indirect and relative addressing modes for data and instructions • Internal 4 MHz RC oscillator with programmable calibration • In-circuit serial programming 1999 Microchip Technology Inc. PIC12C5XX Peripheral Features: • 8-bit real time clock/counter (TMR0) with 8-bit programmable prescaler • Power-On Reset (POR) • ...

Page 2

... Oscillator Calibration (Bits) See Note 1 6 See Note 1 6 See Note 1 4 See Note 1 6 See Note 1 6 See Note 1 4 See Note Process Technology (Microns) 0.7 0.7 0.9 0.7 0.7 0.9 0.7 0.7 0.7 0.7 0.7 1999 Microchip Technology Inc. ...

Page 3

... However, we realize that we may have missed a few things. If you find any information that is missing or appears in error, please: • Fill out and mail in the reader response form in the back of this data sheet. • E-mail us at webmaster@microchip.com. We appreciate your assistance in making this a better document. 1999 Microchip Technology Inc. To Our Valued Customers PIC12C5XX DS40139E-page 3 ...

Page 4

... PIC12C5XX 1.0 GENERAL DESCRIPTION The PIC12C5XX from Microchip Technology is a fam- ily of low-cost, high performance, 8-bit, fully static, EEPROM/EPROM/ROM-based CMOS microcontrol- lers. It employs a RISC architecture with only 33 sin- gle word/single cycle instructions. All instructions are single cycle (1 s) except for program branches which take two cycles ...

Page 5

... JW, SOIC JW, SOIC All PIC12CXXX & PIC12CEXXX devices have Power-on Reset, selectable Watchdog Timer, selectable code protect and high I/O current capability. All PIC12CXXX & PIC12CEXXX devices use serial programming with data pin GP0 and clock pin GP1. 1999 Microchip Technology Inc ...

Page 6

... PIC12C5XX NOTES: DS40139E-page 6 1999 Microchip Technology Inc. ...

Page 7

... OTP devices but with all EPROM locations and fuse options already programmed by the factory. Certain code and prototype verification procedures do apply before production shipments are available. Please con- tact your local Microchip Technology sales office for more details. 2.4 Serialized Quick-Turnaround ...

Page 8

... PIC12C5XX NOTES: DS40139E-page 8 1999 Microchip Technology Inc. ...

Page 9

... PIC12C5XX simple yet efficient. In addition, the learning curve is reduced significantly. 1999 Microchip Technology Inc. The PIC12C5XX device contains an 8-bit ALU and working register. The ALU is a general purpose arithmetic unit. It performs arithmetic and Boolean functions between data in the working register and any register file ...

Page 10

... RAM STACK1 STACK2 File Registers RAM Addr 9 Addr MUX Indirect 5 5-7 Addr FSR reg STATUS reg 3 MUX Timer ALU Power-on Reset 8 Watchdog W reg Timer Timer0 GPIO GP0 GP1 GP2/T0CKI GP3/MCLR/V PP GP4/OSC2 GP5/OSC1/CLKIN EEPROM Data Memory PIC12CE5XX Only 1999 Microchip Technology Inc. ...

Page 11

... Legend input output, I/O = input/output power, — = not used, TTL = TTL input Schmitt Trigger input 1999 Microchip Technology Inc. I/O/P Buffer Description Type Type I/O TTL/ST Bi-directional I/O port/ serial programming data. Can be software programmed for internal weak pull-up and wake-up from SLEEP on pin change. This buffer is a Schmitt Trigger input when used in serial programming mode ...

Page 12

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

Page 13

... PIC12C508A and PIC12CE518) or location 03FFh (PIC12C509, PIC12C509A, PIC12CR509A PIC12CE519) contains the internal clock oscillator calibration value. This value should never be overwritten. 1999 Microchip Technology Inc. FIGURE 4-1: CALL, RETLW and (PIC12C508, and Note 1: Address 0000h becomes the effective reset vector. Location ...

Page 14

... Not a physical register. See Section 4.8 PIC12C508, PIC12C508A AND PIC12CE518 REGISTER FILE MAP (1) INDF 00h TMR0 01h PCL 02h STATUS 03h FSR 04h OSCCAL 05h GPIO 06h 07h General Purpose Registers 1Fh Not a physical register. See Section 4.8 1999 Microchip Technology Inc. ...

Page 15

... Other (non power-up) resets include external reset through MCLR, watchdog timer and wake-up on pin change reset reset was due to wake-up on pin change then bit All other resets will cause bit 1999 Microchip Technology Inc. The special registers can be classified into two sets. ...

Page 16

... bits from the STATUS register. For other instructions, which do affect STATUS bits, see Instruction Set Summary. R-1 R/W-x R/W-x R/W bit0 SUBWF RRF or RLF borrow did not occur Load bit with LSB or MSB, respectively borrow occurred R = Readable bit W = Writable bit - n = Value at POR reset 1999 Microchip Technology Inc. ...

Page 17

... Microchip Technology Inc. Note: If TRIS bit is set to ‘0’, the wake-up on change and pull-up functions are disabled for that pin; i.e., note that TRIS overrides OPTION control of GPPU and GPWU. Note: If the T0CS bit is set to ‘1’, GP2 is forced input even if TRIS GP2 = ‘ ...

Page 18

... R/W-0 R/W-0 U-0 U-0 CAL1 CAL0 — — bit0 R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ Value at POR reset R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ Value at POR reset 1999 Microchip Technology Inc. ...

Page 19

... Instruction Word Reset to ‘0’ PA0 7 0 STATUS 1999 Microchip Technology Inc. 4.6.1 EFFECTS OF RESET The Program Counter 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 20

... 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 Does not Indirect Addressing (FSR) 0 bank location select 1999 Microchip Technology Inc. ...

Page 21

... The TRIS registers are “write-only” and are set (output drivers disabled) upon RESET. 1999 Microchip Technology Inc. PIC12C5XX 5.3 I/O Interfacing The equivalent circuit for an I/O port pin is shown in Figure 5-1 ...

Page 22

... Power-On Value on Reset All Other Resets --11 1111 --11 1111 1111 1111 1111 1111 (1) 0001 1xxx q00q quuu --xx xxxx --uu uuuu 11xx xxxx 11uu uuuu READ-MODIFY-WRITE INSTRUCTIONS ON AN I/O PORT GPIO latch GPIO pins ---------- ---------- ;--01 -ppp --11 pppp ;--10 -ppp --11 pppp ; ;--10 -ppp --11 pppp 1999 Microchip Technology Inc. ...

Page 23

... MOVWF GPIO MOVF GPIO,W GP5:GP0 Port pin written here Instruction executed MOVWF GPIO (Write to GPIO) 1999 Microchip Technology Inc This example shows a write to GPIO followed by a read from GPIO. NOP NOP Data setup time = (0.25 T where: T Port pin Therefore, at higher clock frequencies, a sampled here write followed by a read may be problematic ...

Page 24

... PIC12C5XX NOTES: DS40139E-page 24 1999 Microchip Technology Inc. ...

Page 25

... T0CS 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 (Figure 6-5). 1999 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 T0SE bit (OPTION< ...

Page 26

... NT0 + 1 reads NT0 + 2 PC+4 PC+5 PC+6 MOVF TMR0,W NT0+1 T0 Read TMR0 Read TMR0 reads NT0 reads NT0 + 1 Value on Value on Power-On All Other Bit 0 Reset Resets xxxx xxxx uuuu uuuu PS0 1111 1111 1111 1111 GP0 --11 1111 --11 1111 1999 Microchip Technology Inc. ...

Page 27

... External clock if no prescaler selected, Prescaler output otherwise. 3: The arrows indicate the points in time where sampling occurs. 1999 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. For the external clock to meet the sampling ...

Page 28

... TMR0 & Prescaler ; are required only if ; desired ;PS<2:0> are 000 or 001 ; desired WDT rate should be executed before CHANGING PRESCALER (WDT TIMER0) ;Clear WDT and ;prescaler ;Select TMR0, new ;prescale value and ;clock source Data Bus 8 TMR0 reg 1999 Microchip Technology Inc. ...

Page 29

... EEPROM peripheral. SDA and SCL operation is also slightly different than GPO-GP5 as listed below. 1999 Microchip Technology Inc. Namely, to avoid code overhead in modifying the TRIS register, both SDA and SCL are always outputs. To read data from the EEPROM peripheral requires out- and putting a ‘ ...

Page 30

... GPIO databus Output Latch Input Latch Read GPIO Figure 7-2: Block diagram of GPIO7 (SCL line) D write GPIO databus Q Read GPIO DS40139E-page 30 reset Schmitt Trigger EN ck ltchpin Schmitt Trigger EN ck ltchpin 24L00 SDA Pad 24LC00 SCL Pad 1999 Microchip Technology Inc. ...

Page 31

... STOP DATA TRANSFER (C) A LOW to HIGH transition of the SDA line while the clock (SCL) is HIGH determines a STOP condition. All operations must be ended with a STOP condition. 1999 Microchip Technology Inc. PIC12C5XX 7.1.4 DATA VALID (D) The state of the data line represents valid data when, after a START condition, the data line is stable for the duration of the HIGH period of the clock signal ...

Page 32

... STOP CONDITION 2 3 Data from transmitter Receiver must release the SDA line at this point so the Transmitter can continue sending data. CONTROL BYTE FORMAT Read/Write Bit Don’t Care Bits Bits R/W ACK Slave Address Acknowledge Bit 1999 Microchip Technology Inc. ...

Page 33

... X X BUS ACTIVITY X = Don’t Care Bit 1999 Microchip Technology Inc. 7.4 ACKNOWLEDGE POLLING Since the device will not acknowledge during a write cycle, this can be used to determine when the cycle is complete (this feature can be used to maximize bus throughput). Once the stop condition for a write com- mand has been issued from the master, the device ini- tiates the internally timed write cycle ...

Page 34

... To provide sequential reads, it contains an internal address pointer which is incremented by one at the completion of each read operation. This address pointer allows the entire memory contents to be serially read during one operation CONTROL A BYTE DATA WORD CONTROL A ADDRESS (n) BYTE DATA DATA DATA ( DATA 1999 Microchip Technology Inc. ...

Page 35

... LP oscillator Note 1: Refer to the PIC12C5XX Programming Specifications to determine how to access the configuration word. This register is not user addressable during device operation. 1999 Microchip Technology Inc. The PIC12C5XX has a Watchdog Timer which can be shut off only through configuration bit WDTE. It runs off of its own RC oscillator for added reliability. If using ...

Page 36

... SLEEP To internal logic CAPACITOR SELECTION FOR CERAMIC RESONATORS - PIC12C5XX Cap. Range Cap. Range CAPACITOR SELECTION FOR CRYSTAL OSCILLATOR - PIC12C5XX Cap.Range Cap. Range 47-68 pF 47- > 4.5V 1999 Microchip Technology Inc. ...

Page 37

... F XTAL 1999 Microchip Technology Inc. 8.2.4 EXTERNAL RC OSCILLATOR For timing insensitive applications, the RC device option offers additional cost savings. The RC oscillator frequency is a function of the supply voltage, the resistor (Rext) and capacitor (Cext) values, and the operating temperature ...

Page 38

... The exceptions to this are TO, PD, and GPWUF bits. They are set or cleared differently in different reset situations. These bits are used in software to determine the nature of reset. See Table 8-3 for a full description of reset states of all registers. 1999 Microchip Technology Inc. ...

Page 39

... MCLR reset during normal operation MCLR reset during SLEEP WDT reset during SLEEP WDT reset normal operation Wake-up from SLEEP on pin change Legend unchanged unknown unimplemented bit, read as ‘0’. 1999 Microchip Technology Inc. Address Power-on Reset — qqqq xxxx — ...

Page 40

... If these conditions are not met, the device must be held in reset until the oper- ating conditions are met. For additional information refer to Application Notes “ Power-Up Considerations” - AN522 and “ Power-up Trouble Shooting ” - AN607. 1999 Microchip Technology Inc. is stable DD rises too DD ) actually ...

Page 41

... MCLR INTERNAL POR DRT TIME-OUT INTERNAL RESET FIGURE 8-10: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED MCLR INTERNAL POR DRT TIME-OUT INTERNAL RESET 1999 Microchip Technology Inc. Pin Change POR (Power-On Reset) SLEEP WDT Time-out RESET 8-bit Asynch Ripple Counter (Start-Up Timer) T DRT ...

Page 42

... Refer to the PIC12C5XX Programming Specifications to determine how to access the configuration word. TABLE 8-5: Oscillator Configuration IntRC & ExtRC XT & SLOW V RISE TIME permanently disabled by DRT (DEVICE RESET TIMER PERIOD) Subsequent POR Reset Resets 18 ms (typical) 300 µs (typical (typical (typical) 1999 Microchip Technology Inc. ...

Page 43

... N/A OPTION GPWU GPPU Legend: Shaded boxes = Not used by Watchdog Timer, — = unimplemented, read as ’0’ unchanged 1999 Microchip Technology Inc. 8.6.2 WDT PROGRAMMING CONSIDERATIONS The CLRWDT instruction clears the WDT and the postscaler, if assigned to the WDT, and prevents it from timing out and generating a device RESET. ...

Page 44

... There are 7 different trip point selections to accomodate 5V and 3V systems. goes below CIRCUIT MCLR 40k* PIC12C5XX 0.7V • CIRCUIT bypass capacitor DD MCLR PIC12C5XX protection circuit employs 1999 Microchip Technology Inc. ...

Page 45

... SLEEP mode. The WDT is cleared when the device wakes from sleep, regardless of the wake-up source. 1999 Microchip Technology Inc. 8.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 46

... PIC12C5XX Programming Specifications. A typical in-circuit serial programming connection is shown in Figure 8-16. DS40139E-page 46 FIGURE 8-16: TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION To Normal Connections External Connector Signals + MCLR/V PP GP1 CLK Data I/O GP0 Normal Connections 1999 Microchip Technology Inc. PIC12C5XX PP ...

Page 47

... In the set of i talics User defined term (font is courier) 1999 Microchip Technology Inc. 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 48

... None 0000 0000 0010 2 None 1000 kkkk kkkk 0000 0000 0011 , 1 None 0000 0000 0fff 1 Z 1111 kkkk kkkk 1999 Microchip Technology Inc. 1,2,4 2,4 4 2,4 2,4 2,4 2,4 2,4 2,4 1,4 2,4 2,4 1,2,4 2,4 2,4 2,4 2 ...

Page 49

... AND’ed with the eight-bit literal 'k'. The result is placed in the W register Words: 1 Cycles: 1 Example: ANDLW 0x5F Before Instruction W = 0xA3 After Instruction W = 0x03 1999 Microchip Technology Inc. ANDWF Syntax: Operands: Operation: Status Affected: Z Encoding: Description: . Words: Cycles: Example: Before Instruction W = FSR = After Instruction ...

Page 50

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

Page 51

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

Page 52

... 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. Words: 1 Cycles: 2 Example: GOTO THERE After Instruction PC = address (THERE) 1999 Microchip Technology Inc. CNT, 1 LOOP ...

Page 53

... CONTINUE • • • Before Instruction PC = address (HERE) After Instruction CNT = CNT + 1; if CNT = address (CONTINUE); if CNT address (HERE +1) 1999 Microchip Technology Inc. IORLW Syntax: Operands: Operation: Status Affected: Z Encoding: Description: Words: Cycles: Example: Before Instruction W = After Instruction IORWF Syntax: Operands: ...

Page 54

... Words: 1 Cycles: 1 Example: MOVWF TEMP_REG Before Instruction TEMP_REG = 0xFF W = 0x4F After Instruction TEMP_REG = 0x4F W = 0x4F NOP No Operation Syntax: [ label ] NOP Operands: None Operation: No operation Status Affected: None Encoding: 0000 0000 0000 Description: No operation. Words: 1 Cycles: 1 Example: NOP 1999 Microchip Technology Inc. f ...

Page 55

... RETLW k1 ;Begin table RETLW k2 ; • • • RETLW kn ; End of table Before Instruction W = 0x07 After Instruction W = value of k8 1999 Microchip Technology Inc. PIC12C5XX RLF Rotate Left f through Carry Syntax: [ label ] RLF f,d Operands [0,1] Operation: See description below Status Affected: C Encoding: 0011 ...

Page 56

... W register the result is stored back in register 'f'. Words: 1 Cycles: 1 Example 1: SUBWF REG1, 1 Before Instruction REG1 = After Instruction REG1 = result is positive Example 2: Before Instruction REG1 = After Instruction REG1 = result is zero Example 3: Before Instruction REG1 = After Instruction REG1 = result is negative 1999 Microchip Technology Inc. ...

Page 57

... W register Words: 1 Cycles: 1 Example TRIS GPIO Before Instruction W = 0XA5 After Instruction TRIS = 0XA5 Note for PIC12C5XX only. 1999 Microchip Technology Inc. PIC12C5XX XORLW Exclusive OR literal with W Syntax: [ label ] XORLW k Operands 255 Operation: (W) .XOR Status Affected: Z Encoding: 1111 kkkk kkkk ...

Page 58

... PIC12C5XX NOTES: DS40139E-page 58 1999 Microchip Technology Inc. ...

Page 59

... Both systems will operate across the entire operating speed range of the PICmicro MCU. 1999 Microchip Technology Inc. 10.3 ICEPIC: Low-Cost PICmicro In-Circuit Emulator ICEPIC is a low-cost in-circuit emulator solution for the Microchip PIC12CXXX, PIC16C5X and PIC16CXXX families of 8-bit OTP microcontrollers ...

Page 60

... The PICDEM-3 provides an addi- tional RS-232 interface and Windows 3.1 software for showing the demultiplexed LCD signals on a PC. A sim- ple serial interface allows the user to construct a hard- ware demultiplexer for the LCD signals. 1999 Microchip Technology Inc. ...

Page 61

... MPASM provides a rich directive language to support programming of the PICmicro . Directives are helpful in making the development of your assemble source code shorter and more maintainable. 1999 Microchip Technology Inc. PIC12C5XX 10.12 Software Simulator (MPLAB-SIM) The MPLAB-SIM Software Simulator allows code development host environment ...

Page 62

... EE OQ Programming Tools K L evaluation and programming tools support EE OQ Microchips HCS Secure Data Products. The HCS eval- uation kit includes an LCD display to show changing codes, a decoder to decode transmissions, and a pro- gramming interface to program test transmitters. DS40139E-page 62 1999 Microchip Technology Inc. ...

Page 63

... Products Emulator Tools 1999 Microchip Technology Inc. á á á á á á á á á á á á á á á á á á ...

Page 64

... PIC12C5XX NOTES: DS40139E-page 64 1999 Microchip Technology Inc. ...

Page 65

... NOTICE: Stresses above those listed under "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. 1999 Microchip Technology Inc. ............................................................................... –0 > ...

Page 66

... V = 3.0V, WDT disabled DD , Industrial Temperature PTION = 32 kHz 3.0V, WDT disabled DD , Extended Temperature PTION = 32 kHz 3.0V, WDT disabled DD = 3.0V, Commercial WDT disabled = 3.0V, Industrial WDT disabled = 3.0V, Extended WDT disabled = 3.0V, Commercial = 3.0V, Industrial = 3.0V, Extended or DD 1999 Microchip Technology Inc. ...

Page 67

... The leakage current on the MCLR pin is strongly dependent on the applied voltage level. The specified levels represent normal operating conditions. Higher leakage current may be measured at different input voltages. 3: Negative current is defined as coming out of the pin. 1999 Microchip Technology Inc. PIC12C508/509 (Commercial, Industrial, Extended) Standard Operating Conditions (unless otherwise specified) Operating temperature 0° ...

Page 68

... GP3 285K 346K 343K 414K 368K 457K 431K 504K 247K 292K 288K 341K 306K 371K 351K 407K Max Units 63K 63K 63K 63K 20K 23K 25K 28K 417K 532K 532K 593K 360K 437K 448K 500K 1999 Microchip Technology Inc. ...

Page 69

... CLKOUT cy cycle time drt device reset timer io I/O port Uppercase letters and their meanings Fall H High I Invalid (Hi-impedance) L Low FIGURE 11-1: LOAD CONDITIONS - PIC12C508/C509 Pin 1999 Microchip Technology Inc. T Time mc MCLR osc oscillator os OSC1 t0 T0CKI wdt watchdog timer P Period R Rise V Valid ...

Page 70

... LP osc mode 4 MHz XT osc mode 200 kHz LP osc mode — ns EXTRC osc mode — osc mode — osc mode — ns EXTRC osc mode 10,000 ns XT osc mode — osc mode — — — oscillator — oscillator 25 oscillator 50 oscillator 1999 Microchip Technology Inc. ...

Page 71

... FIGURE 11-3: I/O TIMING - PIC12C508/C509 Q4 OSC1 I/O Pin (input) I/O Pin Old Value (output) Note: All tests must be done with specified capacitive loads (see data sheet I/O pins and CLKOUT. 1999 Microchip Technology Inc +70 C (commercial), A – +85 C (industrial), A – ...

Page 72

... Runs in MCLR or WDT reset only in XT and LP modes. DS40139E-page +70 C (commercial) A – +85 C (industrial) A – +125 C (extended) A range is described in Section 11.1 DD Characteristic Min (3) — TBD TBD (2, 3) — (2, 3) — (1) Typ Max Units — 100* ns — — ns — — 25 25 1999 Microchip Technology Inc. ...

Page 73

... Note 1: Data in the Typical (“Typ”) column unless otherwise stated. These parameters are for design guidance only and are not tested. Note 2: See Table 11-6. TABLE 11-6: DRT (DEVICE RESET TIMER PERIOD - PIC12C508/C509) Oscillator Configuration POR Reset IntRC & ExtRC 18 ms (typical) XT & (typical) 1999 Microchip Technology Inc +70 C (commercial) A – +85 C (industrial) A – ...

Page 74

... C (industrial) A – +125 C (extended) A range is described in Section 11.1. DD (1) Min Typ 0 20* — With Prescaler 10* — 0 20* — With Prescaler 10* — 40* — Max Units Conditions — ns — ns — ns — ns — ns Whichever is greater Prescale Value (1, 2, 4,..., 256) 1999 Microchip Technology Inc. ...

Page 75

... FIGURE 12-1: CALIBRATED INTERNAL RC FREQUENCY RANGE VS. TEMPERATURE (V 4.50 4.40 4.30 4.20 4.10 4.00 3.90 3.80 3.70 3.60 3.50 - Temperature (Deg.C) 1999 Microchip Technology Inc. FIGURE 12-2: CALIBRATED INTERNAL RC = 2.5V) DD 4.50 4.40 4.30 4.20 4.10 Max. 4.00 3.90 3.80 3.70 3.60 Min. 3.50 125 ...

Page 76

... FIGURE 12-4: SHORT DRT PERIOD VS. V 1000 900 800 700 600 500 400 300 200 100 Max +125 C Max +85 C Typ +25 C MIn – (Volts) DD 1999 Microchip Technology Inc. ...

Page 77

... 500m 1.0 1.5 2.0 V (Volts) OH FIGURE 12- -10 -15 -20 -25 -30 3.5 4.0 4.5 V (Volts) OH 1999 Microchip Technology Inc. FIGURE 12- 2 FIGURE 12- 5.0 5.5 0 250.0m PIC12C5XX vs 2 Max –40 C Typ +25 C Min +85 C Min +125 C 250.0m 500.0m 1.0 V (Volts ...

Page 78

... PIC12C5XX NOTES: DS40139E-page 78 1999 Microchip Technology Inc. ...

Page 79

... NOTICE: Stresses above those listed under "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. 1999 Microchip Technology Inc. ............................................................................... –0 > ...

Page 80

... V = 3.0V, WDT disabled OSC Extended Temperature PTION kHz 3.0V, WDT disabled OSC 3.0V, Commercial WDT disabled 3.0V, Industrial WDT disabled 3.0V, Extended WDT disabled 3.0V, Commercial 3.0V, Industrial 3.0V, Extended DD FOSC = 4 MHz, Vdd = 5.5V, SCL = 400kHz 1999 Microchip Technology Inc. ...

Page 81

... The power down current in SLEEP mode does not depend on the oscillator type. Power down current is measured with the part in SLEEP mode, with all I/O pins in hi-impedance state and tied 1999 Microchip Technology Inc. PIC12LC508A/509A (Commercial, Industrial) PIC12LCE518/519 (Commercial, Industrial) PIC12LCR509A (Commercial, Industrial) Standard Operating Conditions (unless otherwise specified) ...

Page 82

... PIN SS Vss Pin at hi- PIN DD impedance Vss V V PIN DD Vss and LP osc PIN DD configuration I = 8.5 mA 4.5V – + 7.0 mA 4.5V – +125 -3.0 mA 4.5V – + -2.5 mA 4.5V – +125 and LP modes when exter- nal clock is used to drive OSC1. 1999 Microchip Technology Inc. ...

Page 83

... Higher leakage current may be measured at different input voltages. 3: Negative current is defined as coming out of the pin. 4: This spec. applies when GP3/MCLR is configured as MCLR. The leakage current of the MCLR circuit is higher than the standard I/O logic. 1999 Microchip Technology Inc. PIC12LC508A/509A (Commercial, Industrial) PIC12LC518/519 (Commercial, Industrial) PIC12LCR509A (Commercial, Industrial) ...

Page 84

... GP3 285K 346K 343K 414K 368K 457K 431K 504K 247K 292K 288K 341K 306K 371K 351K 407K Max Units 63K 63K 63K 63K 20K 23K 25K 28K 417K 532K 532K 593K 360K 437K 448K 500K 1999 Microchip Technology Inc. ...

Page 85

... I/O port Uppercase letters and their meanings Fall H High I Invalid (Hi-impedance) L Low FIGURE 13-1: LOAD CONDITIONS - PIC12C508A/C509A, PIC12CE518/519, PIC12LC508A/509A, PIC12LCE518/519, PIC12LCR509A Pin 1999 Microchip Technology Inc. T Time mc MCLR osc oscillator os OSC1 t0 T0CKI wdt watchdog timer P Period R Rise ...

Page 86

... LP osc mode 4 MHz EXTRC osc mode 4 MHz XT osc mode 200 kHz LP osc mode — osc mode — osc mode — ns EXTRC osc mode 10,000 ns XT osc mode — osc mode — — — oscillator — oscillator 25 oscillator 50 oscillator 1999 Microchip Technology Inc. ...

Page 87

... Characteristic No. Internal Calibrated RC Internal Calibrated RC * These parameters are characterized but not tested. Note 1: Data in the Typical (“Typ”) column unless otherwise stated. These parameters are for design guidance only and are not tested. 1999 Microchip Technology Inc +70 C (commercial), A – ...

Page 88

... See Figure 13-1 for loading conditions. DS40139E-page 20 +70 C (commercial) A – +85 C (industrial) A – +125 C (extended) A range is described in Section 13.1 DD Characteristic Min (3) — TBD TBD (2, 3) — (2, 3) — Q3 New Value (1) Typ Max Units — 100* ns — — ns — — 25 25** ns 1999 Microchip Technology Inc. ...

Page 89

... I/O Hi-impedance from MCLR Low Z * These parameters are characterized but not tested. Note 1: Data in the Typical (“Typ”) column unless otherwise stated. These parameters are for design guidance only and are not tested. Note 2: See Table 13-6. 1999 Microchip Technology Inc ...

Page 90

... C (industrial) A – +125 C (extended) A range is described in Section 13.1. DD (1) Min Typ 0 20* — With Prescaler 10* — 0 20* — With Prescaler 10* — 40* — Max Units Conditions — ns — ns — ns — ns — ns Whichever is greater Prescale Value (1, 2, 4,..., 256) 1999 Microchip Technology Inc. ...

Page 91

... This eliminates the need for a TI specification for standard operation. 4: This parameter is not tested but guaranteed by characterization. For endurance estimates in a specific appli- cation, please consult the Total Endurance Model which can be obtained on Microchip’s website. 1999 Microchip Technology Inc. T +70 C, Vcc = 3.0V to 5.5V (commercial) A – ...

Page 92

... PIC12C5XX NOTES: DS40139E-page 92 1999 Microchip Technology Inc. ...

Page 93

... RC IS CALIBRATED TO 25°C, 5.0V) 4.50 4.40 4.30 4.20 4.10 4.00 3.90 3.80 3.70 3.60 3.50 - Temperature (Deg.C) 1999 Microchip Technology Inc. FIGURE 14-2: CALIBRATED INTERNAL RC = 5.0V) DD 4.50 4.40 4.30 4.20 M ax. 4.10 4.00 3.90 3.80 Min. 3.70 3.60 3.50 ...

Page 94

... FIGURE 14-4: TYPICAL I DD 600 550 500 450 400 350 300 250 200 150 100 0 5 VS. FREQUENCY DD (WDT DIS, 25° 5.5V) DD 1.0 1.5 2.0 2.5 3.0 3.5 4.0 Frequency (MHz) 1999 Microchip Technology Inc. ...

Page 95

... FIGURE 14-6: SHORT DRT PERIOD VS. V 950 850 750 650 550 Max +125 C 450 Max +85 C 350 250 MIn –40 C 150 0 0 2.5 3.5 4.5 V (Volts) DD 1999 Microchip Technology Inc. FIGURE 14- Min +125 Typ + Typ + -10 MIn – 5.5 6.5 FIGURE 14-8: I ...

Page 96

... Min +85 C -30 Min +125 C -35 -40 3.5 1.0 FIGURE 14-12 Max - Typ + Min + Min +125 0.75 1 4.0 4.5 5.0 5.5 V (Volts Max -40 C Typ +25 C Min +85 C Min +125 C 0.25 0.5 0.75 1.0 V (Volts) OL 1999 Microchip Technology Inc. ...

Page 97

... FIGURE 14-13: TYPICAL IPD VS. V WATCHDOG DISABLED (25°C) 260 250 240 230 220 210 200 2.5 3.0 3.5 4.5 5.0 V (Volts) DD 1999 Microchip Technology Inc. , FIGURE 14-14: VTH (INPUT THRESHOLD DD 1.8 1.6 1.4 1.2 1.0 0.8 0.6 5.5 0 2.5 PIC12C5XX VOLTAGE) OF GPIO PINS VS. V ...

Page 98

... FIGURE 14-15: VIL, VIH OF NMCLR, AND T0CKI VS. V 3.5 3.0 2.5 2.0 1.5 1.0 0.5 2.5 3.5 4.5 V (Volts) DD DS40139E-page 98 DD Vih Max (-40 to 125) V Typ ( Min (-40 to 125 Max (-40 to 125 Typ ( Min (-40 to 125) IL 5.5 1999 Microchip Technology Inc. ...

Page 99

... Standard OTP marking consists of Microchip part number, year code, week code, facility code, mask rev#, and assembly code. For OTP 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. 1999 Microchip Technology Inc. PIC12C5XX Example ...

Page 100

... Microchip Technology Inc. ...

Page 101

... Dimensions “D” and “E” do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.010” (0.254 mm) per side or 0.020” (0.508 mm) more than dimensions “D” or “E.” 1999 Microchip Technology Inc ...

Page 102

... NOM MAX 1.27 8 1.78 1.89 2.00 0.94 1.08 1.21 0.05 0.14 0.22 5.08 5.21 5.33 5.16 5.28 5.41 7.62 7.94 8.26 0.13 0.13 0.25 0.13 0.13 0.25 0.28 0.41 0. 0.25 0.38 0.51 0.19 0.22 0.25 0.36 0.43 0. 1999 Microchip Technology Inc. ...

Page 103

... Upper Lead Width Lead Thickness Top to Seating Plane Top of Body to Seating Plane Base to Seating Plane Tip to Seating Plane Package Length Package Width Overall Row Spacing Window Diameter Lid Length Lid Width * Controlling Parameter. 1999 Microchip Technology Inc INCHES* MIN NOM MAX ...

Page 104

... PIC12C5XX NOTES: DS40139E-page 104 1999 Microchip Technology Inc. ...

Page 105

... Instruction Set Summary..................................................... 48 K KeeLoq Evaluation and Programming Tools.................... 62 L Loading of PC ..................................................................... 19 M Memory Organization.......................................................... 13 Data Memory .............................................................. 14 Program Memory ........................................................ 13 MPLAB Integrated Development Environment Software .... 61 1999 Microchip Technology Inc. PIC12C5XX O OPTION Register................................................................ 17 OSC selection..................................................................... 35 OSCCAL Register............................................................... 18 Oscillator Configurations..................................................... 36 Oscillator Types HS............................................................................... 36 LP ............................................................................... 36 RC .............................................................................. 36 XT ...

Page 106

... PIC12C5XX DS40139E-page 106 1999 Microchip Technology Inc. ...

Page 107

... Trademarks: The Microchip name, logo, PIC, PICmicro, PICSTART, PICMASTER and PRO MATE are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Flex ROM, MPLAB and fuzzy- LAB are trademarks and SQTP is a service mark of Micro- chip in the U ...

Page 108

... Is there any incorrect or misleading information (what and where)? 7. How would you improve this document? 8. How would you improve our software, systems, and silicon products? DS40139E-page 108 Total Pages Sent FAX: (______) _________ - _________ N Literature Number: DS40139E 1999 Microchip Technology Inc. ...

Page 109

... The Microchip Worldwide Site (www.microchip.com) Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using. New Customer Notification System Register on our web site (www.microchip.com/cn) to receive the most current information on our products. 1999 Microchip Technology Inc. Special Requirements SN = 150 mil SOIC ...

Page 110

... PIC12C5XX NOTES: DS40139E-page 110 1999 Microchip Technology Inc. ...

Page 111

... NOTES: 1999 Microchip Technology Inc. PIC12C5XX DS40139E-page 111 ...

Page 112

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2002, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 113

... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-334-8870 Fax: 65-334-8850 Taiwan Microchip Technology Taiwan 11F-3, No. 207 ...

Related keywords