PIC12C509A-04/SM Microchip Technology, PIC12C509A-04/SM Datasheet

no-image

PIC12C509A-04/SM

Manufacturer Part Number
PIC12C509A-04/SM
Description
IC MCU OTP 1KX12 8-SOIJ
Manufacturer
Microchip Technology
Series
PIC® 12Cr

Specifications of PIC12C509A-04/SM

Core Size
8-Bit
Program Memory Size
1.5KB (1K x 12)
Core Processor
PIC
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Type
OTP
Ram Size
41 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
8-SOIC (5.3mm Width), 8-SOP, 8-SOEIAJ
Controller Family/series
PIC12
No. Of I/o's
6
Ram Memory Size
41Byte
Cpu Speed
4MHz
No. Of Timers
1
Digital Ic Case Style
SOIC
Processor Series
PIC12C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
41 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
5
Number Of Timers
8
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
DVMCPA, ICE2000
Minimum Operating Temperature
0 C
Package
8SOIJ
Device Core
PIC
Family Name
PIC12
Maximum Speed
4 MHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT08SO-1 - SOCKET TRANSITION 8SOIC 150/208AC164312 - MODULE SKT FOR PM3 16SOICISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1048 - ADAPTER 8-SOIC TO 8-DIP309-1047 - ADAPTER 8-SOIC TO 8-DIPAC124001 - MODULE SKT PROMATEII 8DIP/SOIC
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12C509A-04/SM
Manufacturer:
MIC
Quantity:
1 485
Part Number:
PIC12C509A-04/SM
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC12C509A-04/SM
Manufacturer:
MICROCHIP
Quantity:
13 316
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 PIC12C509A-04/SM

PIC12C509A-04/SM Summary of contents

Page 1

... CMOS Microcontrollers Devices included in this Data Sheet: • PIC12C508 • PIC12C508A • PIC12CE518 • PIC12C509 • PIC12C509A • PIC12CE519 • PIC12CR509A Note: Throughout this data sheet PIC12C5XX refers to the PIC12C508, PIC12C509, PIC12C508A, PIC12C509A, PIC12CR509A, PIC12CE518 and PIC12CE519. PIC12CE5XX refers to PIC12CE518 and PIC12CE519 ...

Page 2

... GP3/MCLR Device Differences Voltage Device Range PIC12C508A 3.0-5.5 PIC12LC508A 2.5-5.5 PIC12C508 2.5-5.5 PIC12C509A 3.0-5.5 PIC12LC509A 2.5-5.5 PIC12C509 2.5-5.5 PIC12CR509A 2.5-5.5 PIC12CE518 3.0-5.5 PIC12LCE518 2.5-5.5 PIC12CE519 3.0-5.5 PIC12LCE519 2.5-5.5 Note 1: If you change from the PIC12C50X to the PIC12C50XA or to the PIC12CR50XA, please verify oscillator characteristics in your application ...

Page 3

... EEPROM Peripheral Operation........................................................................................................................... 29 8.0 Special Features of the CPU ............................................................................................................................... 35 9.0 Instruction Set Summary ..................................................................................................................................... 47 10.0 Development Support.......................................................................................................................................... 59 11.0 Electrical Characteristics - PIC12C508/PIC12C509............................................................................................ 65 12.0 DC and AC Characteristics - PIC12C508/PIC12C509 ........................................................................................ 75 13.0 Electrical Characteristics PIC12C508A/PIC12C509A/PIC12LC508A/PIC12LC509A/PIC12CR509A/ PIC12CE518/PIC12CE519/ PIC12LCE518/PIC12LCE519/PIC12LCR509A ................................................................................................... 79 14.0 DC and AC Characteristics PIC12C508A/PIC12C509A/PIC12LC508A/PIC12LC509A/PIC12CE518/PIC12CE519/PIC12CR509A/ PIC12LCE518/PIC12LCE519/ PIC12LCR509A .................................................................................................. 93 15.0 Packaging Information......................................................................................................................................... 99 Index ........................................................................................................................................................................... 105 PIC12C5XX Product Identification System ................................................................................................................ 109 Sales and Support: ...

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

... EPROM ROM RAM Program Program Data PIC12C508 512 x 12 PIC12C509 1024 x 12 PIC12C508A 512 x 12 PIC12C509A 1024 x 12 PIC12CR509A 1024 x 12 PIC12CE518 512 PIC12CE519 1024 The PIC12C5XX can directly or indirectly address its register files and data memory. All special function registers including the program counter are mapped in the data memory ...

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

... For devices with more than 512 bytes of program memory, a paging scheme is used. Program memory pages are accessed using one STA- TUS register bit. For the PIC12C509, PIC12C509A, PICCR509A and PIC12CE519 with a data memory register file of more than 32 registers, a banking scheme is used ...

Page 14

... GENERAL PURPOSE REGISTER FILE The general purpose register file is accessed either directly or indirectly through the file select register FSR (Section 4.8). FIGURE 4-3: PIC12C509, PIC12C509A, PIC12CR509A AND PIC12CE519 REGISTER FILE MAP FSR<6:5> File Address Note 1: DS40139E-page 14 FIGURE 4-2: File Address ...

Page 15

... PIC12C509A/ PIC12CE518/ PIC12CE519/ 05h PIC12CR509A) CAL5 CAL4 GPIO (PIC12C508/ PIC12C509/ PIC12C508A/ PIC12C509A/ 06h PIC12CR509A) — — GPIO (PIC12CE518/ 06h PIC12CE519) SCL SDA Legend: Shaded boxes = unimplemented or unused, — = unimplemented, read as ’0’ (if applicable unknown unchanged see the tables in Section 8.7 for possible values. ...

Page 16

... Unimplemented bit 5: PA0: Program page preselect bits 1 = Page 1 (200h - 3FFh) - PIC12C509, PIC12C509A, PIC12CR509A and PIC12CE519 0 = Page 0 (000h - 1FFh) - PIC12C5XX Each page is 512 bytes. Using the PA0 bit as a general purpose read/write bit in devices which do not use it for program page preselect is not recommended since this may affect upward compatibility with future products. ...

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

... FIGURE 4-9: DIRECT/INDIRECT ADDRESSING Direct Addressing (FSR bank select location select Data Memory Note 1: For register map detail see Section 4.2. Note 2: PIC12C509, PIC12C509A, PIC12CR509A, PIC12CE519. DS40139E-page 20 EXAMPLE 4-2: movlw movwf NEXT clrf incf btfsc goto CONTINUE : The FSR is a 5-bit wide register used in conjunction with the INDF register to indirectly address the data memory area ...

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

... OPTION GPWU GPPU N/A STATUS 03H GPWUF — GPIO (PIC12C508/ PIC12C509/ PIC12C508A/ PIC12C509A/ 06h PIC12CR509A) — — GPIO (PIC12CE518/ 06h PIC12CE519) SCL SDA Legend: Shaded cells not used by Port Registers, read as ‘0’, — = unimplemented, read as '0 unknown unchanged see tables in Section 8.7 for possible values. ...

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 calibration value must be read prior to erasing the part can be repro- grammed correctly later. For the PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, and PIC12CR509A, bits <7:2>, CAL5- CAL0 are used for calibration. Adjusting CAL5-0 from 000000 to 111111 yields a higher clock speed. Note ...

Page 39

... OSCCAL (PIC12C508/509) OSCCAL (PIC12C508A/509A/ PIC12CE518/512/ PIC12CR509A) GPIO (PIC12C508/PIC12C509/ PIC12C508A/ PIC12C509A/ PIC12CR509A) GPIO (PIC12CE518/ PIC12CE519) OPTION TRIS Legend unchanged unknown unimplemented bit, read as ‘0’ value depends on condition. Note 1: Bits <7:2> register contain oscillator calibration values due to MOVLW XX instruction at top of memory. Note 2: See Table 8-7 for reset value for specific conditions Note 3: If reset was due to wake-up on pin change, then bit ...

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

... ELECTRICAL CHARACTERISTICS - PIC12C508A/PIC12C509A/ PIC12LC508A/PIC12LC509A/PIC12CR509A/PIC12CE518/PIC12CE519/ PIC12LCE518/PIC12LCE519/PIC12LCR509A Absolute Maximum Ratings† Ambient Temperature under bias ........................................................................................................... –40°C to +125°C Storage Temperature ............................................................................................................................. –65°C to +150°C Voltage on V with respect to V ................................................................................................................. Voltage on MCLR with respect to V ............................................................................................................... Voltage on all other pins with respect to V ...

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

... PIC12C5XX TABLE 13-1: PULL-UP RESISTOR RANGES* - PIC12C508A, PIC12C509A, PIC12CR509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 V (Volts) Temperature ( C) DD 2.5 – 125 5.5 – 125 2.5 – 125 5.5 – 125 * These parameters are characterized but not tested. DS40139E-page 84 Min ...

Page 85

... Timing Parameter Symbology and Load Conditions - PIC12C508A, PIC12C509A, PIC12CR509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 The timing parameter symbols have been created following one of the following formats: 1. TppS2ppS 2. TppS T F Frequency Lowercase subscripts (pp) and their meanings CLKOUT cy cycle time ...

Page 86

... PIC12C5XX 13.6 Timing Diagrams and Specifications FIGURE 13-2: EXTERNAL CLOCK TIMING - PIC12C508A, PIC12C509A, PIC12CR509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 Q4 Q1 OSC1 TABLE 13-2: EXTERNAL CLOCK TIMING REQUIREMENTS - PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 AC Characteristics ...

Page 87

... TABLE 13-3: CALIBRATED INTERNAL RC FREQUENCIES - PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 AC Characteristics Standard Operating Conditions (unless otherwise specified) Operating Temperature Operating Voltage V Parameter Sym 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 ...

Page 88

... PIC12C5XX FIGURE 13-3: I/O TIMING - PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 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. TABLE 13-4: ...

Page 89

... Note 1: I/O pins must be taken out of hi-impedance mode by enabling the output drivers in software. 2: Runs in MCLR or WDT reset only in XT and LP modes. TABLE 13-5: RESET, WATCHDOG TIMER, AND DEVICE RESET TIMER - PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 AC Characteristics Standard Operating Conditions (unless otherwise specified) Operating Temperature ...

Page 90

... 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. FIGURE 13-5: TIMER0 CLOCK TIMINGS - PIC12C508A, PIC12C509A, PIC12CE518, PIC12CE519, PIC12LC508A, PIC12LC509A, PIC12LCR509A, PIC12LCE518 and PIC12LCE519 T0CKI ...

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

... DC AND AC CHARACTERISTICS - PIC12C508A/PIC12C509A/ PIC12LC508A/PIC12LC509A, PIC12CE518/PIC12CE519/PIC12CR509A/ PIC12LCE518/PIC12LCE519/ PIC12LCR509A The graphs and tables provided in this section are for design guidance and are not tested. In some graphs or tables the data presented are outside specified operating range (e.g., outside specified V only and devices will operate properly only within the specified range. ...

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

... PIC12C508T (Tape & reel for SOIC only) PIC12C509T (Tape & reel for SOIC only) PIC12C508A PIC12C509A PIC12C508AT (Tape & reel for SOIC only) PIC12C509AT (Tape & reel for SOIC only) PIC12LC508A PIC12LC509A PIC12LC508AT (Tape & reel for SOIC only) PIC12LC509AT (Tape & reel for SOIC only) PIC12CR509A PIC12CR509AT (Tape & ...

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