PIC12F609-I/MF Microchip Technology, PIC12F609-I/MF Datasheet

no-image

PIC12F609-I/MF

Manufacturer Part Number
PIC12F609-I/MF
Description
IC PIC MCU FLASH 1KX14 8-DFN
Manufacturer
Microchip Technology
Series
PIC® 12Fr

Specifications of PIC12F609-I/MF

Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Oscillator Type
Internal
Core Processor
PIC
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
5
Program Memory Type
FLASH
Ram Size
64 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Operating Temperature
-40°C ~ 85°C
Package / Case
8-DFN
Controller Family/series
PIC12
No. Of I/o's
5
Ram Memory Size
64Byte
Cpu Speed
20MHz
No. Of Timers
2
No. Of Pwm
RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164324 - MODULE SKT FOR MPLAB 8DFN/16QFN
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
*8-bit, 8-pin Devices Protected by Microchip’s Low Pin Count Patent: U.S. Patent No. 5,847,450. Additional U.S. and
foreign patents and applications may be issued or pending.
PIC12F609/12HV609
PIC12F615/12HV615
8-Pin, Flash-Based 8-Bit
CMOS Microcontrollers
Data Sheet
DS41302B

Related parts for PIC12F609-I/MF

PIC12F609-I/MF Summary of contents

Page 1

... Devices Protected by Microchip’s Low Pin Count Patent: U.S. Patent No. 5,847,450. Additional U.S. and foreign patents and applications may be issued or pending. © 2008 Microchip Technology Inc. PIC12F609/12HV609 PIC12F615/12HV615 Data Sheet 8-Pin, Flash-Based 8-Bit CMOS Microcontrollers DS41302B ...

Page 2

... PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... Factory calibrated to ±1%, typical - Software selectable frequency: 4 MHz or 8 MHz • Power-Saving Sleep mode • Voltage range: - PIC12F609/615: 2.0V to 5.5V - PIC12HV609/615: 2.0V to user defined maximum (see note) • Industrial and Extended Temperature range • Power-on Reset (POR) • Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) • ...

Page 4

... PIC12F609/615/12HV609/615 Program Memory Device Flash (words) PIC12F609 1024 PIC12HV609 1024 PIC12F615 1024 PIC12HV615 1024 8-Pin Diagram, PIC12F609/HV609 (PDIP, SOIC, MSOP, DFN) GP5/T1CKI/OSC1/CLKIN GP4/CIN1-/T1G/OSC2/CLKOUT GP3/MCLR/V TABLE 1: PIC12F609/HV609 PIN SUMMARY ( I/O Pin Comparators GP0 7 CIN+ GP1 6 CIN0- GP2 5 COUT (1) GP3 4 — GP4 ...

Page 5

... CIN1- GP5 2 — — — 1 — — — 8 — — * Alternate pin function. Note 1: Input only. 2: Only when pin is configured for external MCLR. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 GP0/AN0/CIN+/P1B/ICSPDAT 2 7 PIC12F615/ HV615 GP1/AN1/CIN0-/ GP2/AN2/T0CKI/INT/COUT/CCP1/P1A PDIP, SOIC, MSOP, DFN Timer ...

Page 6

... PIC12F609/615/12HV609/615 Table of Contents 1.0 Device Overview ......................................................................................................................................................................... 5 2.0 Memory Organization .................................................................................................................................................................. 9 3.0 Oscillator Module ...................................................................................................................................................................... 25 4.0 I/O Port ...................................................................................................................................................................................... 31 5.0 Timer0 Module .......................................................................................................................................................................... 41 6.0 Timer1 Module with Gate Control ............................................................................................................................................. 45 7.0 Timer2 Module (PIC12F615/HV615 only) ................................................................................................................................. 52 8.0 Comparator Module .................................................................................................................................................................. 55 9.0 Analog-to-Digital Converter (ADC) Module (PIC12F615/HV615 only) ...................................................................................... 67 10.0 Enhanced Capture/Compare/PWM (With Auto-Shutdown and Dead Band) Module (PIC12F615/HV615 only) ...................... 77 11 ...

Page 7

... Block T1G T1CKI Timer0 T0CKI © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Block Diagrams and pinout descriptions of the devices are as follows: • PIC12F609/HV609 (Figure 1-1, Table 1-1) • PIC12F615/HV615 (Figure 1-2, Table 1-2) INT 13 Data Bus Program Counter RAM 8-Level Stack 64 Bytes ...

Page 8

... PIC12F609/615/12HV609/615 FIGURE 1-2: PIC12F615/HV615 BLOCK DIAGRAM Configuration Flash Program Memory Program 14 Bus Instruction Reg Instruction Decode & Control OSC1/CLKIN Timing Generation OSC2/CLKOUT Internal Oscillator T1G* Block T1G T1CKI Timer0 T0CKI Analog-To-Digital Converter * Alternate pin function. DS41302B-page 6 INT 13 Data Bus Program Counter ...

Page 9

... TABLE 1-1: PIC12F609/HV609 PINOUT DESCRIPTION Name Function GP0/CIN+/ICSPDAT GP0 CIN+ ICSPDAT GP1/CIN0-/ICSPCLK GP1 CIN0- ICSPCLK GP2/T0CKI/INT/COUT GP2 T0CKI INT COUT GP3/MCLR/V GP3 PP MCLR V PP GP4/CIN1-/T1G/OSC2/ GP4 CLKOUT CIN1- T1G OSC2 CLKOUT GP5/T1CKI/OSC1/CLKIN GP5 T1CKI OSC1 CLKIN Legend Analog input or output ST = Schmitt Trigger input with CMOS levels TTL © ...

Page 10

... PIC12F609/615/12HV609/615 TABLE 1-2: PIC12F615/HV615 PINOUT DESCRIPTION Name Function GP0/AN0/CIN+/P1B/ICSPDAT ICSPDAT GP1/AN1/CIN0-/V /ICSPCLK REF ICSPCLK GP2/AN2/T0CKI/INT/COUT/CCP1/ P1A GP3/T1G*/MCLR/V PP GP4/AN3/CIN1-/T1G/P1B*/OSC2/ CLKOUT CLKOUT GP5/T1CKI/P1A*/OSC1/CLKIN Alternate pin function. Legend Analog input or output ST = Schmitt Trigger input with CMOS levels TTL DS41302B-page 8 ...

Page 11

... MEMORY ORGANIZATION 2.1 Program Memory Organization The PIC12F609/615/12HV609/615 has a 13-bit pro- gram counter capable of addressing pro- gram memory space. Only the first (0000h- 03FFh) for the PIC12F609/615/12HV609/615 is physi- cally implemented. Accessing a location above these boundaries will cause a wraparound within the first space ...

Page 12

... PIC12F609/615/12HV609/615 FIGURE 2-2: DATA MEMORY MAP OF THE PIC12F609/HV609 File Address (1) Indirect Addr. Indirect Addr. 00h TMR0 OPTION_REG 01h PCL 02h PCL STATUS STATUS 03h FSR FSR 04h GPIO TRISIO 05h 06h 07h 08h 09h PCLATH PCLATH 0Ah INTCON INTCON 0Bh PIR1 ...

Page 13

... TABLE 2-1: PIC12F609/HV609 SPECIAL FUNCTION REGISTERS SUMMARY BANK 0 Addr Name Bit 7 Bit 6 Bank 0 00h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 01h TMR0 Timer0 Module’s Register 02h PCL Program Counter’s (PC) Least Significant Byte ...

Page 14

... PIC12F609/615/12HV609/615 TABLE 2-2: PIC12F615/HV615 SPECIAL FUNCTION REGISTERS SUMMARY BANK 0 Addr Name Bit 7 Bit 6 Bank 0 00h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 01h TMR0 Timer0 Module’s Register 02h PCL Program Counter’s (PC) Least Significant Byte ...

Page 15

... TABLE 2-3: PIC12F609/HV609 SPECIAL FUNCTION REGISTERS SUMMARY BANK 1 Addr Name Bit 7 Bit 6 Bank 1 80h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 81h OPTION_REG GPPU INTEDG 82h PCL Program Counter’s (PC) Least Significant Byte (1) (1) 83h ...

Page 16

... PIC12F609/615/12HV609/615 TABLE 2-4: PIC12F615/HV615 SPECIAL FUNCTION REGISTERS SUMMARY BANK 1 Addr Name Bit 7 Bit 6 Bank 1 80h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 81h OPTION_REG GPPU INTEDG 82h PCL Program Counter’s (PC) Least Significant Byte (1) (1) ...

Page 17

... Status bits, see the Section 13.0 “Instruction Set Summary”. Note 1: Bits IRP and RP1 of the STATUS register are not used by the PIC12F609/615/ 12HV609/615 and should be maintained as clear. Use of these bits is not recom- mended, since this may affect upward compatibility with future products ...

Page 18

... PIC12F609/615/12HV609/615 2.2.2.2 OPTION Register The OPTION register is a readable and writable regis- ter, which contains various control bits to configure: • Timer0/WDT prescaler • External GP2/INT interrupt • Timer0 • Weak pull-ups on GPIO REGISTER 2-2: OPTION_REG: OPTION REGISTER R/W-1 R/W-1 R/W-1 GPPU ...

Page 19

... T0IF bit is set when TMR0 rolls over. TMR0 is unchanged on Reset and should be initialized before clearing T0IF bit. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Note: Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the Global Enable bit, GIE of the INTCON register ...

Page 20

... Disables the Timer2 to PR2 match interrupt bit 0 TMR1IE: Timer1 Overflow Interrupt Enable bit 1 = Enables the Timer1 overflow interrupt 0 = Disables the Timer1 overflow interrupt Note 1: PIC12F615/HV615 only. PIC12F609/HV609 unimplemented, read as ‘0’. DS41302B-page 18 Note: Bit PEIE of the INTCON register must be set to enable any peripheral interrupt. ...

Page 21

... Timer2 to PR2 match has not occurred bit 0 TMR1IF: Timer1 Overflow Interrupt Flag bit 1 = Timer1 register overflowed (must be cleared in software Timer1 has not overflowed Note 1: PIC12F615/HV615 only. PIC12F609/HV609 unimplemented, read as ‘0’. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Note: Interrupt flag bits are set when an interrupt ...

Page 22

... PIC12F609/615/12HV609/615 2.2.2.6 PCON Register The Power Control (PCON) register (see Table 11-2) contains flag bits to differentiate between a: • Power-on Reset (POR) • Brown-out Reset (BOR) • Watchdog Timer Reset (WDT) • External MCLR Reset The PCON register also controls the software enable of the BOR ...

Page 23

... P1B function is on GP0/AN0/CIN+/P1B/ICSPDAT bit 0 P1ASEL: P1A Output Pin Select bit 1 = P1A function is on GP5/T1CKI/P1A 0 = P1A function is on GP2/AN2/T0CKI/INT/COUT/CCP1/P1A Note 1: PIC12F615/HV615 only. 2: Alternate pin function. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 (1) R/W-0 U-0 U-0 T1GSEL — — Unimplemented bit, read as ‘0’ ...

Page 24

... Table Read” (DS00556). DS41302B-page 22 2.3.2 STACK The PIC12F609/615/12HV609/615 Family has an 8- level x 13-bit wide hardware stack (see Figure 2-1). The stack space is not part of either program or data space and the Stack Pointer is not readable or writable. The PC is PUSHed onto the stack when a CALL instruction is executed or an interrupt causes a branch ...

Page 25

... FIGURE 2-5: DIRECT/INDIRECT ADDRESSING PIC12F609/615/12HV609/615 Direct Addressing (1) From Opcode RP1 RP0 6 Bank Select Location Select 00h Data Memory 7Fh Bank 0 For memory map detail, see Figure 2-2. Note 1: The RP1 and IRP bits are reserved; always maintain these bits clear. 2: Accesses in this area are mirrored back into Bank 0 and Bank 1. ...

Page 26

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 24 © 2008 Microchip Technology Inc. ...

Page 27

... External Oscillator OSC2 Sleep OSC1 Internal Oscillator INTOSC 8 MHz © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 The Oscillator module can be configured in one of eight clock modes – External clock with I/O on OSC2/CLKOUT – 32 kHz Low-Power Crystal mode – Medium Gain Crystal or Ceramic Resonator Oscillator mode ...

Page 28

... PIC12F609/615/12HV609/615 3.2 Clock Source Modes Clock Source modes can be classified as external or internal. • External Clock modes rely on external circuitry for the clock source. Examples are: Oscillator mod- ules (EC mode), quartz crystal resonators or ceramic resonators (LP, XT and HS modes) and Resistor-Capacitor (RC) mode circuits. ...

Page 29

... The value of R varies with the Oscillator mode F selected (typically between 2 MΩ MΩ). © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Note 1: Quartz crystal characteristics vary according to type, package and manufacturer. The user should consult the manufacturer data sheets for specifications and recommended application ...

Page 30

... PIC12F609/615/12HV609/615 3.3.4 EXTERNAL RC MODES The external Resistor-Capacitor (RC) modes support the use of an external RC circuit. This allows the designer maximum flexibility in frequency choice while keeping costs to a minimum when clock accuracy is not required. There are two modes: RC and RCIO mode, the RC circuit connects to OSC1. ...

Page 31

... Other (non Power-up) Resets include MCLR Reset and Watchdog Timer Reset during normal operation. 2: See Configuration Word register (Register 11-1) for operation of all register bits. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 The default value of the OSCTUNE register is ‘0’. The value is a 5-bit two’s complement number. When the OSCTUNE register is modified, the frequency will begin shifting to the new frequency ...

Page 32

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 30 © 2008 Microchip Technology Inc. ...

Page 33

... TRISIO<3> always reads ‘1’. 2: TRISIO<5:4> always reads ‘1’ in XT, HS and LP Oscillator modes. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 port pins are read, this value is modified and then written to the PORT data latch. GP3 reads ‘0’ when MCLRE = 1. The TRISIO register controls the direction of the GPIO pins, even when they are being used as analog inputs ...

Page 34

... PIC12F609/615/12HV609/615 4.2 Additional Pin Functions Every GPIO pin on the PIC12F609/615/12HV609/615 has an interrupt-on-change option and a weak pull-up option. The next three sections describe these functions. 4.2.1 ANSEL REGISTER The ANSEL register is used to configure the Input mode of an I/O pin to analog. Setting the appropriate ANSEL bit high will cause all digital reads on the pin to be read as ‘ ...

Page 35

... REGISTER 4-3: ANSEL: ANALOG SELECT REGISTER (PIC12F609/HV609) U-0 U-0 U-0 — — — bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7-4 Unimplemented: Read as ‘0’ bit 3 ANS3: Analog Select Between Analog or Digital Function on Pin GP4 1 = Analog input ...

Page 36

... PIC12F609/615/12HV609/615 REGISTER 4-5: WPU: WEAK PULL-UP GPIO REGISTER U-0 U-0 R/W-1 — — WPU5 bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7-6 Unimplemented: Read as ‘0’ bit 5-4 WPU<5:4>: Weak Pull-up Control bits 1 = Pull-up enabled ...

Page 37

... Comparator mode and ANSEL determines Analog Input mode. 2: Set has priority over Reset. 3: PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 4.2.4.2 Figure 4-1 shows the diagram for this pin. The GP1 pin is configurable to function as one of the following: • a general purpose I/O • an analog input for the ADC • ...

Page 38

... PIC12F609/615/12HV609/615 (1) 4.2.4.3 GP2/AN2 /T0CKI/INT/COUT/CCP1 (1) P1A Figure 4-2 shows the diagram for this pin. The GP2 pin is configurable to function as one of the following: • a general purpose I/O (1) • an analog input for the ADC • the clock input for TMR0 • an external edge triggered interrupt • ...

Page 39

... BLOCK DIAGRAM OF GP3 Data Bus RD TRISIO RD GPIO WR IOC RD IOC ( Interrupt-on- Change R Write ‘0’ to GBIF Note 1: Set has priority over Reset © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 PP (1, 2) MCLRE Reset From other GP<5:4, 2:0> pins V DD Weak MCLRE Input Pin MCLRE ...

Page 40

... PIC12F609/615/12HV609/615 (2) 4.2.4.5 GP4/AN3 /CIN1-/T1G/ (1, 2) P1B /OSC2/CLKOUT Figure 4-4 shows the diagram for this pin. The GP4 pin is configurable to function as one of the following: • a general purpose I/O (2) • an analog input for the ADC • Comparator inverting input • a Timer1 gate (count enable) ...

Page 41

... FIGURE 4-5: BLOCK DIAGRAM OF GP5 ( Interrupt-on- Change R Write ‘0’ to GBIF Note 1: Timer1 LP Oscillator enabled. 2: Set has priority over Reset. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Note 1: Alternate pin function. 2: PIC12F615/HV615 only. INTOSC Mode Data Bus WPU GPPU ...

Page 42

... PIC12F609/615/12HV609/615 TABLE 4-1: SUMMARY OF REGISTERS ASSOCIATED WITH GPIO Name Bit 7 Bit 6 Bit 5 (1) ANSEL — ADCS2 ADCS1 CMCON0 CMON COUT CMOE INTCON GIE PEIE T0IE IOC — — IOC5 OPTION_REG GPPU INTEDG T0CS GPIO — — GP5 TRISIO — — TRISIO5 WPU — ...

Page 43

... Note 1: T0SE, T0CS, PSA, PS<2:0> are bits in the OPTION register. 2: WDTE bit is in the Configuration Word register. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 5.1 Timer0 Operation When used as a timer, the Timer0 module can be used as either an 8-bit timer or an 8-bit counter. ...

Page 44

... PIC12F609/615/12HV609/615 5.1.3 SOFTWARE PROGRAMMABLE PRESCALER A single software programmable prescaler is available for use with either Timer0 or the Watchdog Timer (WDT), but not both simultaneously. The prescaler assignment is controlled by the PSA bit of the OPTION register. To assign the prescaler to Timer0, the PSA bit must be cleared to a ‘0’. ...

Page 45

... TRISIO5 TRISIO4 TRISIO3 TRISIO2 TRISIO1 TRISIO0 --11 1111 Legend: – = Unimplemented locations, read as ‘0’ unchanged unknown. Shaded cells are not used by the Timer0 module. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 R/W-1 R/W-1 T0SE PSA U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared ...

Page 46

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 44 © 2008 Microchip Technology Inc. ...

Page 47

... When used with an internal clock source, the module is a timer. When used with an external clock source, the module can be used as either a timer or counter. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 6.2 Clock Source Selection The TMR1CS bit of the T1CON register is used to select the clock source ...

Page 48

... PIC12F609/615/12HV609/615 FIGURE 6-1: TIMER1 BLOCK DIAGRAM Set flag bit TMR1IF on Overflow TMR1 TMR1H Oscillator OSC1/T1CKI OSC2/T1G INTOSC Without CLKOUT T1OSCEN (4, 5) GP3/T1G Note 1: ST Buffer is low power type when using LP oscillator, or high speed type when using T1CKI. 2: Timer1 register increments on rising edge. ...

Page 49

... The oscillator requires a start-up and stabilization time before use. Thus, T1OSCEN should be set and a suitable delay observed prior to enabling Timer1. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 6.5 Timer1 Operation in Asynchronous Counter Mode If control bit T1SYNC of the T1CON register is set, the external clock input is not synchronized. The timer continues to increment asynchronous to the internal phase clocks ...

Page 50

... PIC12F609/615/12HV609/615 6.6 Timer1 Gate Timer1 gate source is software configurable to be the T1G pin (or the alternate T1G pin) or the output of the Comparator. This allows the device to directly time external events using T1G or analog events using the Comparator. See the CMCON1 Register (Register 8-2) for selecting the Timer1 gate source ...

Page 51

... Note 1: Arrows indicate counter increments Counter mode, a falling edge must be registered by the counter prior to the first incrementing rising edge of the clock. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 For more information, see Section 10.0 “Enhanced Capture/Compare/PWM (With Auto-Shutdown and Dead Band) Module (PIC12F615/HV615 only)”. ...

Page 52

... PIC12F609/615/12HV609/615 6.12 Timer1 Control Register The Timer1 Control register (T1CON), shown in Register 6-1, is used to control Timer1 and select the various features of the Timer1 module. REGISTER 6-1: T1CON: TIMER 1 CONTROL REGISTER R/W-0 R/W-0 R/W-0 (1) (2) T1GINV TMR1GE T1CKPS1 bit 7 Legend Readable bit ...

Page 53

... Holding Register for the Least Significant Byte of the 16-bit TMR1 Register T1CON T1GINV TMR1GE T1CKPS1 Legend unknown unchanged unimplemented, read as ‘0’. Shaded cells are not used by the Timer1 module. Note 1: PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Bit 4 Bit 3 Bit 2 Bit 1 T1GSEL — — P1BSEL CMPOL — ...

Page 54

... PIC12F609/615/12HV609/615 7.0 TIMER2 MODULE (PIC12F615/HV615 ONLY) The Timer2 module is an 8-bit timer with the following features: • 8-bit timer register (TMR2) • 8-bit period register (PR2) • Interrupt on TMR2 match with PR2 • Software programmable prescaler (1:1, 1:4, 1:16) • Software programmable postscaler (1:1 to 1:16) See Figure 7-1 for a block diagram of Timer2 ...

Page 55

... TOUTPS3 TOUTPS2 Legend unknown unchanged unimplemented read as ‘0’. Shaded cells are not used for Timer2 module. Note 1: For PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 R/W-0 R/W-0 TOUTPS1 TOUTPS0 TMR2ON U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared ...

Page 56

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 54 © 2008 Microchip Technology Inc. ...

Page 57

... REF MUX CV REF 1 CMV REN Note © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 than the analog voltage at V parator is a digital low level. When the analog voltage greater than the analog voltage output of the comparator is a digital high level. FIGURE 8-1:SINGLE COMPARATOR ...

Page 58

... PIC12F609/615/12HV609/615 8.2 Analog Input Connection Considerations A simplified circuit for an analog input is shown in Figure 8-3. Since the analog input pins share their con- nection with a digital input, they have reverse biased ESD protection diodes to V and V DD input, therefore, must be between V SS input voltage deviates from this range by more than 0 ...

Page 59

... The internal output of the comparator is latched with each instruction cycle. Unless otherwise specified, external outputs are not latched. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 8.3.5 COMPARATOR OUTPUT POLARITY Inverting the output of the comparator is functionally equivalent to swapping the comparator inputs. The polarity of the comparator output can be inverted by setting the CMPOL bit of the CMCON0 register ...

Page 60

... PIC12F609/615/12HV609/615 8.5 Comparator Interrupt Operation The comparator interrupt flag can be set whenever there is a change in the output value of the comparator. Changes are recognized by means of a mismatch circuit which consists of two latches and an exclusive-or gate (see Figure 8-4 and Figure 8-5). One latch is updated with the comparator output level when the CMCON0 register is read ...

Page 61

... INTCON register is also set, the device will then execute the Interrupt Service Routine. 8.7 Effects of a Reset A device Reset forces the CMCON1 register to its Reset state. This sets the comparator and the voltage reference to the OFF state. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 DS41302B-page 59 ...

Page 62

... PIC12F609/615/12HV609/615 REGISTER 8-1: CMCON0: COMPARATOR CONTROL REGISTER 0 R/W-0 R-0 R/W-0 CMON COUT CMOE bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7 CMON: Comparator Enable bit 1 = Comparator is enabled 0 = Comparator is disabled bit 6 COUT: Comparator Output bit If C1POL = 1 (inverted polarity): ...

Page 63

... Output is asynchronous Note 1: Refer to Section 6.6 “Timer1 Gate”. 2: Refer to Figure 8-2. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 8.9 Synchronizing Comparator Output to Timer1 The comparator output can be synchronized with Timer1 by setting the CMSYNC bit of the CMCON1 register. When enabled, the comparator output is latched on the falling edge of the Timer1 clock source ...

Page 64

... PIC12F609/615/12HV609/615 8.10 Comparator Voltage Reference The Comparator Voltage Reference module provides an internally generated voltage reference for the com- parators. The following features are available: • Independent from Comparator operation • 16-level voltage range • Output clamped • Ratiometric with V DD • Fixed Reference (0.6) The VRCON register (Register 8-3) controls the Volt- age Reference module shown in Register 8-6 ...

Page 65

... COMPARATOR VOLTAGE REFERENCE BLOCK DIAGRAM CMVREN (1) CV REF To Comparators and ADC Module FixedRef To Comparators and ADC Module Note 1: Care should be taken to ensure CV Section 15.0 “Electrical Specifications” for more detail. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 16 Stages Analog MUX 15 0 (1) VR<3:0> 0.6V Fixed Voltage Reference remains within the comparator common mode input range ...

Page 66

... PIC12F609/615/12HV609/615 REGISTER 8-3: VRCON: VOLTAGE REFERENCE CONTROL REGISTER R/W-0 U-0 R/W-0 CMVREN — VRR bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7 CMVREN: Comparator Voltage Reference Enable bit circuit powered on and routed to CV REF 0 = 0.6 Volt constant reference routed to CV bit 6 Unimplemented: Read as ‘ ...

Page 67

... Note: The black areas of the comparator output represents the uncertainty due to input offsets and response time. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Figure 8-7 shows the relationship between the analog input levels and digital output of a comparator with and without hysteresis. The output of the comparator ...

Page 68

... PIC12F609/615/12HV609/615 TABLE 8-2: SUMMARY OF REGISTERS ASSOCIATED WITH THE COMPARATOR AND VOLTAGE REFERENCE MODULES Name Bit 7 Bit 6 Bit 5 (1) ANSEL — ADCS2 ADCS1 CMCON0 CMON COUT CMOE CMCON1 — — — INTCON GIE PEIE T0IE (1) PIE1 — ADIE CCP1IE (1) PIR1 — ADIF ...

Page 69

... Figure 9-1 shows the block diagram of the ADC. FIGURE 9-1: ADC BLOCK DIAGRAM GP0/AN0 GP1/AN1/V REF GP2/AN2 GP4/AN3 CV REF 0.6V Reference 1.2V Reference © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Note: The ADRESL and ADRESH registers are Read Only. (ADC) allows V DD VCFG = 0 V REF VCFG = 1 000 ...

Page 70

... PIC12F609/615/12HV609/615 9.1 ADC Configuration When configuring and using the ADC the following functions must be considered: • Port configuration • Channel selection • ADC voltage reference selection • ADC conversion clock source • Interrupt control • Results formatting 9.1.1 PORT CONFIGURATION The ADC can be used to convert both analog and digital signals ...

Page 71

... If the global interrupt is enabled, execution will switch to the Interrupt Service Routine. Please see Section 9.1.5 “Interrupts” for more information. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 ) V . DEVICE OPERATING FREQUENCIES (VDD > 3.0V Device Frequency (F 20 MHz ...

Page 72

... PIC12F609/615/12HV609/615 9.1.6 RESULT FORMATTING The 10-bit A/D conversion result can be supplied in two formats, left justified or right justified. The ADFM bit of the ADCON0 register controls the output format. Figure 9-4 shows the two output formats. FIGURE 9-3: 10-BIT A/D CONVERSION RESULT FORMAT ...

Page 73

... Sleep and resume in-line code execution. 2: See Section 9.3 “A/D Requirements”. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 EXAMPLE 9-1: ;This code block configures the ADC ;for polling, Vdd reference, Frc clock ;and GP0 input. ; ;Conversion start & polling for completion ...

Page 74

... PIC12F609/615/12HV609/615 9.2.7 ADC REGISTER DEFINITIONS The following registers are used to control the operation of the ADC. REGISTER 9-1: ADCON0: A/D CONTROL REGISTER 0 R/W-0 R/W-0 U-0 ADFM VCFG — bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7 ADFM: A/D Conversion Result Format Select bit ...

Page 75

... R = Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7-0 ADRES<7:0>: ADC Result Register bits Lower 8 bits of 10-bit conversion result © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 R-x R-x R-x ADRES6 ADRES5 ADRES4 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared ...

Page 76

... PIC12F609/615/12HV609/615 9.3 A/D Acquisition Requirements For the ADC to meet its specified accuracy, the charge holding capacitor (C ) must be allowed to fully HOLD charge to the input channel voltage level. The Analog Input model is shown in Figure 9-4. The source impedance (R ) and the internal sampling switch (R ...

Page 77

... Interconnect Resistance Sampling Switch C = Sample/Hold Capacitance HOLD FIGURE 9-5: ADC TRANSFER FUNCTION 3FFh 3FEh 3FDh 3FCh 3FBh 004h 003h 002h 001h 000h REF © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 V DD Sampling Switch V = 0.6V T ≤ Rss LEAKAGE V = 0.6V T ± 500 Full-Scale Range ...

Page 78

... PIC12F609/615/12HV609/615 TABLE 9-2: SUMMARY OF ASSOCIATED ADC REGISTERS Name Bit 7 Bit 6 Bit 5 (1) ADCON0 ADFM VCFG — (1) ANSEL — ADCS2 ADCS1 (1,2) ADRESH A/D Result Register High Byte (1,2) ADRESL A/D Result Register Low Byte GPIO — — GP5 INTCON GIE PEIE ...

Page 79

... PWM mode; P1A active-high; P1B active-low 1110 = PWM mode; P1A active-low; P1B active-high 1111 = PWM mode; P1A active-low; P1B active-low © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 event when a predetermined amount of time has expired. The PWM mode can generate a Pulse-Width Modulated signal of varying frequency and duty cycle. ...

Page 80

... PIC12F609/615/12HV609/615 10.1 Capture Mode In Capture mode, CCPR1H:CCPR1L captures the 16-bit value of the TMR1 register when an event occurs on pin CCP1. An event is defined as one of the following and is configured by the CCP1M<3:0> bits of the CCP1CON register: • Every falling edge • Every rising edge • Every 4th rising edge • ...

Page 81

... TRISIO5 Legend Unimplemented locations, read as ‘0’ unchanged unknown. Shaded cells are not used by the Capture. Note 1: For PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Bit 4 Bit 3 Bit 2 Bit 1 DC1B0 CCP1M3 CCP1M2 CCP1M1 CCP1M0 0-00 0000 0-00 0000 ...

Page 82

... PIC12F609/615/12HV609/615 10.2 Compare Mode In Compare mode, the 16-bit CCPR1 register value is constantly compared against the TMR1 register pair value. When a match occurs, the CCP1 module may: • Toggle the CCP1 output. • Set the CCP1 output. • Clear the CCP1 output. ...

Page 83

... Timer2 Module Register TRISIO — — TRISIO5 Legend Unimplemented locations, read as ‘0’ unchanged unknown. Shaded cells are not used by the Compare. Note 1: For PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Bit 4 Bit 3 Bit 2 Bit 1 DC1B0 CCP1M3 CCP1M2 CCP1M1 INTE ...

Page 84

... PIC12F609/615/12HV609/615 10.3 PWM Mode The PWM mode generates a Pulse-Width Modulated signal on the CCP1 pin. The duty cycle, period and resolution are determined by the following registers: • PR2 • T2CON • CCPR1L • CCP1CON In Pulse-Width Modulation (PWM) mode, the CCP module produces 10-bit resolution PWM output on the CCP1 pin ...

Page 85

... Timer Prescale (1, 4, 16) 16 PR2 Value 0x65 Maximum Resolution (bits) 8 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 EQUATION 10-2: Pulse Width EQUATION 10-3: • OSC Duty Cycle Ratio The CCPR1H register and a 2-bit internal latch are used to double buffer the PWM duty cycle. This double buffering is essential for glitchless PWM operation ...

Page 86

... PIC12F609/615/12HV609/615 10.3.4 OPERATION IN SLEEP MODE In Sleep mode, the TMR2 register will not increment and the state of the module will not change. If the CCP1 pin is driving a value, it will continue to drive that value. When the device wakes up, TMR2 will continue from its previous state. ...

Page 87

... EXAMPLE PIN ASSIGNMENTS FOR VARIOUS PWM ENHANCED MODES ECCP Mode Single Half-Bridge © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 The PWM outputs are multiplexed with I/O pins and are designated P1A and P1B. The polarity of the PWM pins is configurable and is selected by setting the CCP1M bits in the CCP1CON register appropriately. ...

Page 88

... PIC12F609/615/12HV609/615 FIGURE 10-6: EXAMPLE PWM (ENHANCED MODE) OUTPUT RELATIONSHIPS (ACTIVE-HIGH STATE) Signal P1M<1:0> P1A Modulated (Single Output) 00 P1A Modulated (Half-Bridge) 10 P1B Modulated P1A Active Relationships: P1B Inactive • Period = (PR2 + 1) * (TMR2 Prescale Value) OSC • Pulse Width = T * (CCPR1L<7:0>:CCP1CON<5:4>) * (TMR2 Prescale Value) ...

Page 89

... Standard Half-Bridge Circuit (“Push-Pull”) Half-Bridge Output Driving a Full-Bridge Circuit P1A P1B © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Since the P1A and P1B outputs are multiplexed with the PORT data latches, the associated TRIS bits must be cleared to configure P1A and P1B as outputs. FIGURE 10-8: ...

Page 90

... PIC12F609/615/12HV609/615 10.4.2 START-UP CONSIDERATIONS When any PWM mode is used, the application hardware must use the proper external pull-up and/or pull-down resistors on the PWM output pins. Note: When the microcontroller is released from Reset, all of the I/O pins are in the high- impedance state. The external circuits ...

Page 91

... From Comparator 001 000 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 A shutdown condition is indicated by the ECCPASE (Auto-Shutdown Event Status) bit of the ECCPAS register. If the bit is a ‘0’, the PWM pins are operating normally. If the bit is a ‘1’, the PWM outputs are in the shutdown state ...

Page 92

... PIC12F609/615/12HV609/615 REGISTER 10-2: ECCPAS: ENHANCED CAPTURE/COMPARE/PWM AUTO-SHUTDOWN CONTROL REGISTER R/W-0 R/W-0 R/W-0 ECCPASE ECCPAS2 ECCPAS1 bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7 ECCPASE: ECCP Auto-Shutdown Event Status bit shutdown event has occurred; ECCP outputs are in shutdown state ...

Page 93

... FIGURE 10-12: PWM AUTO-SHUTDOWN WITH AUTO-RESTART ENABLED (PRSEN = 1) Shutdown Event ECCPASE bit PWM Activity Start of PWM Period © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 PWM Period Shutdown Shutdown Event Occurs Event Clears PWM Period Shutdown Shutdown Event Occurs Event Clears ...

Page 94

... PIC12F609/615/12HV609/615 10.4.5 PROGRAMMABLE DEAD-BAND DELAY MODE In Half-Bridge applications where all power switches are modulated at the PWM frequency, the power switches normally require more time to turn off than to turn on. If both the upper and lower power switches are switched at the same time (one turned on, and the other turned off), both switches may be on for a short period of time until one switch completely turns off ...

Page 95

... TRISIO5 Legend Unimplemented locations, read as ‘0’ unchanged unknown. Shaded cells are not used by the PWM. Note 1: For PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 R/W-0 R/W-0 PDC4 PDC3 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared ...

Page 96

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 94 © 2008 Microchip Technology Inc. ...

Page 97

... SPECIAL FEATURES OF THE CPU The PIC12F609/615/12HV609/615 has a host of features intended to maximize system reliability, minimize cost through elimination components, provide power-saving features and offer code protection. These features are: • Reset - Power-on Reset (POR) - Power-up Timer (PWRT) - Oscillator Start-up Timer (OST) - Brown-out Reset (BOR) • ...

Page 98

... PIC12F609/615/12HV609/615 REGISTER 11-1: CONFIG: CONFIGURATION WORD REGISTER — — — bit 15 (2) IOSCFS CP MCLRE bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 15-10 Unimplemented: Read as ‘1’ bit 9-8 BOREN<1:0>: Brown-out Reset Selection bits 11 = BOR enabled ...

Page 99

... Calibration Word (2009h). The Calibration Word is not erased when using the specified bulk erase sequence in the Memory Programming Specification (DS41204) and thus, does not require reprogramming. 11.3 Reset The PIC12F609/615/12HV609/615 device differenti- ates between various kinds of Reset: a) Power-on Reset (POR) b) WDT Reset during normal operation ...

Page 100

... For additional information, refer to Application Note AN607, “Power-up Trouble Shooting” (DS00607). 11.3.2 MCLR PIC12F609/615/12HV609/615 has a noise filter in the MCLR Reset path. The filter will detect and ignore small pulses. It should be noted that a WDT Reset does not drive MCLR pin low. ...

Page 101

... V DD Internal Reset Note delay only if PWRTE bit is programmed to ‘0’. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 On any Reset (Power-on, Brown-out Reset, Watchdog timer, etc.), the chip will remain in Reset until V above V (see Figure 11-3). If enabled, the Power- BOR up Timer will be invoked by the Reset and keep the chip in Reset an additional 64 ms ...

Page 102

... Then, bringing MCLR high will begin execution immediately (see Figure 11-5). This is useful for testing purposes or to synchronize more than one PIC12F609/615/ 12HV609/615 device operating in parallel. Table 11-6 shows the Reset conditions for some special registers, while Table 11-5 shows the Reset conditions for all the registers ...

Page 103

... V DD MCLR Internal POR PWRT Time-out OST Time-out Internal Reset FIGURE 11-6: TIME-OUT SEQUENCE ON POWER-UP (MCLR WITH MCLR Internal POR PWRT Time-out OST Time-out Internal Reset © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 T PWRT T PWRT T PWRT T OST T OST ) DD T OST DS41302B-page 101 ...

Page 104

... PIC12F609/615/12HV609/615 TABLE 11-4: INITIALIZATION CONDITION FOR REGISTERS (PIC12F609/HV609) Power-on Register Address Reset W — xxxx xxxx INDF 00h/80h xxxx xxxx TMR0 01h xxxx xxxx PCL 02h/82h 0000 0000 STATUS 03h/83h 0001 1xxx FSR 04h/84h xxxx xxxx GPIO 05h --x0 x000 PCLATH 0Ah/8Ah ---0 0000 ...

Page 105

... When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector (0004h). 4: See Table 11-6 for Reset value for specific condition Reset was due to brown-out, then bit All other Resets will cause bit © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 MCLR Reset WDT Reset (1) Brown-out Reset uuuu uuuu ...

Page 106

... PIC12F609/615/12HV609/615 TABLE 11-6: INITIALIZATION CONDITION FOR SPECIAL REGISTERS Condition Power-on Reset MCLR Reset during normal operation MCLR Reset during Sleep WDT Reset WDT Wake-up Brown-out Reset Interrupt Wake-up from Sleep Legend unchanged unknown, – = unimplemented bit, reads as ‘0’. Note 1: When the wake-up is due to an interrupt and Global Interrupt Enable bit, GIE, is set, the PC is loaded with the interrupt vector (0004h) after execution ...

Page 107

... Interrupts The PIC12F609/615/12HV609/615 has 8 sources of interrupt: • External Interrupt GP2/INT • Timer0 Overflow Interrupt • GPIO Change Interrupts • Comparator Interrupt • A/D Interrupt (615 only) • Timer1 Overflow Interrupt • Timer2 Match Interrupt (615 only) • Enhanced CCP Interrupt (615 only) ...

Page 108

... PIC12F609/615/12HV609/615 11.4.2 TIMER0 INTERRUPT An overflow (FFh → 00h) in the TMR0 register will set the T0IF bit of the INTCON register. The interrupt can be enabled/disabled by setting/clearing T0IE bit of the INTCON register. See Section 5.0 “Timer0 Module” for operation of the Timer0 module. FIGURE 11-7: ...

Page 109

... ADIF CCP1IF (1) (1) PIE1 — ADIE CCP1IE Legend unknown unchanged, – = unimplemented read as ‘0’ value depends upon condition. Shaded cells are not used by the interrupt module. Note 1: PIC12F615/HV615 only. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 (1) (2) Interrupt Latency Inst ( — ...

Page 110

... Execute the ISR code • Restore the Status (and Bank Select Bit register) • Restore the W register Note: The PIC12F609/615/12HV609/615 does not require saving the PCLATH. However, if computed GOTOs are used in both the ISR and the main code, the PCLATH must be saved and restored in the ISR ...

Page 111

... OPTION_REG GPPU INTEDG T0CS CONFIG IOSCFS CP MCLRE Legend: Shaded cells are not used by the Watchdog Timer. Note 1: See Register 11-1 for operation of all Configuration Word register bits. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 1 0 8-bit Prescaler PSA PS<2:0> 0 PSA Bit 4 Bit 3 ...

Page 112

... PIC12F609/615/12HV609/615 11.7 Power-Down Mode (Sleep) The Power-Down mode is entered by executing a SLEEP instruction. If the Watchdog Timer is enabled: • WDT will be cleared but keeps running. • PD bit in the STATUS register is cleared. • TO bit is set. • Oscillator driver is turned off. • I/O ports maintain the status they had before SLEEP was executed (driving high, low or high-impedance) ...

Page 113

... ID locations where the user can store checksum or other code identification numbers. These locations are not accessible during normal execution but are readable and writable during Program/Verify mode. Only the Least Significant 7 bits of the ID locations are used. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 OST (2) T (3) Interrupt Latency Processor in ...

Page 114

... PIC12F609/615/12HV609/615 device. The debugging adapter is the only source of the ICD device. When the ICD pin on the PIC12F609/615/12HV609/ 615 ICD device is held low, the In-Circuit Debugger functionality is enabled. This function allows simple debugging functions when used with MPLAB ICD 2. ...

Page 115

... FIGURE 12-1: VOLTAGE REGULATOR V UNREG R I SER SUPPLY I SHUNT C Feedback BYPASS Device © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 An external current limiting resistor, R between the unregulated supply, V pin, drops the difference in voltage between V and SER defined by Equation 12- EQUATION 12-1: supply current R MAX ...

Page 116

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 114 © 2008 Microchip Technology Inc. ...

Page 117

... INSTRUCTION SET SUMMARY The PIC12F609/615/12HV609/615 instruction set is highly orthogonal and is comprised of three basic cate- gories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations Each PIC16 instruction is a 14-bit word divided into an opcode, which specifies the instruction type and one or more operands, which further specify the operation of the instruction ...

Page 118

... PIC12F609/615/12HV609/615 TABLE 13-2: PIC12F609/615/12HV609/615 INSTRUCTION SET Mnemonic, Description Operands BYTE-ORIENTED FILE REGISTER OPERATIONS ADDWF f, d Add W and f ANDWF f, d AND W with f CLRF f Clear f CLRW – Clear W COMF f, d Complement f DECF f, d Decrement f DECFSZ f, d Decrement f, Skip if 0 INCF f, d Increment f INCFSZ ...

Page 119

... Z Description: AND 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’. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 BCF Syntax: k Operands: Operation: Status Affected: Description: ...

Page 120

... PIC12F609/615/12HV609/615 BTFSS Bit Test f, Skip if Set Syntax: [ label ] BTFSS f,b 0 ≤ f ≤ 127 Operands: 0 ≤ b < 7 Operation: skip if (f<b> Status Affected: None Description: If bit ‘b’ in register ‘f’ is ‘0’, the next instruction is executed. If bit ‘b’ is ‘1’, then the next ...

Page 121

... Description: The contents of register ‘f’ are incremented. If ‘d’ is ‘0’, the result is placed in the W register. If ‘d’ is ‘1’, the result is placed back in register ‘f’. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 INCFSZ Syntax: Operands: Operation: Status Affected: Description: ...

Page 122

... PIC12F609/615/12HV609/615 MOVF Move f Syntax: [ label ] MOVF f,d 0 ≤ f ≤ 127 Operands: d ∈ [0,1] (f) → (dest) Operation: Status Affected: Z Description: The contents of register ‘f’ is moved to a destination dependent upon the status of ‘d’ destination is W register the destination is file register ‘f’ ...

Page 123

... Global Interrupt Enable bit, GIE (INTCON<7>). This is a two-cycle instruction. Words: 1 Cycles: 2 Example: RETFIE After Interrupt PC = TOS GIE = 1 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 RETLW Syntax: Operands: Operation: Status Affected: Description: Words: Cycles: Example: TABLE DONE RETURN Syntax: Operands: Operation: ...

Page 124

... PIC12F609/615/12HV609/615 RLF Rotate Left f through Carry Syntax: [ label ] RLF f,d 0 ≤ f ≤ 127 Operands: d ∈ [0,1] Operation: See description below Status Affected: C Description: The contents of register ‘f’ are rotated one bit to the left through the Carry flag. If ‘d’ is ‘0’, the result is placed in the W register. If ‘ ...

Page 125

... Operation: Status Affected: Z Description: The contents of the W register are XOR’ed with the eight-bit literal ‘k’. The result is placed in the W register. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 XORWF Syntax: Operands: Operation: Status Affected: Description: Exclusive OR W with f [ label ] XORWF f,d 0 ≤ ...

Page 126

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 124 © 2008 Microchip Technology Inc. ...

Page 127

... MPLAB PM3 Device Programmer - PICkit™ 2 Development Programmer • Low-Cost Demonstration and Development Boards and Evaluation Kits © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 14.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 128

... PIC12F609/615/12HV609/615 14.2 MPASM Assembler The MPASM Assembler is a full-featured, universal macro assembler for all PIC MCUs. The MPASM Assembler generates relocatable object files for the MPLINK Object Linker, Intel files, MAP files to detail memory usage and symbol reference, absolute LST files that contain source lines and generated machine code and COFF files for debugging ...

Page 129

... The PC platform and Microsoft Windows 32-bit operating system were chosen to best make these features available in a simple, unified application. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 14.9 MPLAB ICD 2 In-Circuit Debugger Microchip’s In-Circuit Debugger, MPLAB ICD powerful, low-cost, connecting to the host PC via an RS-232 or high-speed USB interface ...

Page 130

... PIC12F609/615/12HV609/615 14.11 PICSTART Plus Development Programmer The PICSTART Plus Development Programmer is an easy-to-use, low-cost, prototype programmer. It connects to the PC via a COM (RS-232) port. MPLAB Integrated Development Environment software makes using the programmer simple and efficient. The PICSTART Plus Development Programmer supports most PIC devices in DIP packages pins. ...

Page 131

... 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 above maximum rating conditions for extended periods may affect device reliability. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 ........................................................................... -0. )...............................................................................................................± ).........................................................................................................± ...

Page 132

... PIC12F609/615/12HV609/615 FIGURE 15-1: PIC12F609/615 VOLTAGE-FREQUENCY GRAPH, ≤ ≤ -40°C T +125°C A 5.5 5.0 4.5 4.0 3.5 3.0 2.5 2.0 0 Note 1: The shaded region indicates the permissible combinations of voltage and frequency. FIGURE 15-2: PIC12HV609/615 VOLTAGE-FREQUENCY GRAPH, ≤ ≤ -40°C T +125°C A 5.0 4 ...

Page 133

... DC Characteristics: PIC12F609/615/12HV609/615-I (Industrial) PIC12F609/615/12HV609/615-E (Extended) DC CHARACTERISTICS Param Sym Characteristic No. V Supply Voltage DD D001 PIC12F609/615 D001 PIC12HV609/615 D001B PIC12F609/F615 D001B PIC12HV609/615 D001C PIC12F609/615 D001C PIC12HV609/615 D001D PIC12F609/615 D001D PIC12HV609/615 D002* V RAM Data Retention DR (1) Voltage D003 V V Start Voltage to POR DD ensure internal Power-on ...

Page 134

... PIC12F609/615/12HV609/615 15.2 DC Characteristics: PIC12F609/615-I (Industrial) PIC12F609/615-E (Extended) Standard Operating Conditions (unless otherwise stated) DC CHARACTERISTICS Operating temperature Param Device Characteristics No. (1, 2) D010 Supply Current ( PIC12F609/615 D011* D012 D013* D014 D016* D017 D018 D019 * These parameters are characterized but not tested. † Data in “Typ” column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested ...

Page 135

... For RC oscillator configurations, current through R be extended by the formula I © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 -40°C ≤ T ≤ +85°C for industrial A -40°C ≤ T ≤ +125°C for extended ...

Page 136

... PIC12F609/615/12HV609/615 15.4 DC Characteristics: PIC12F609/615 - I (Industrial) Standard Operating Conditions (unless otherwise stated) DC CHARACTERISTICS Operating temperature Param Device Characteristics No. D020 Power-down Base (2) Current ( PIC12F609/615 D021 D022 D023 D024 D025* D026 D027 * These parameters are characterized but not tested. † Data in “Typ” column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested ...

Page 137

... DC Characteristics: PIC12F609/615 - E (Extended) DC CHARACTERISTICS Param Device Characteristics No. D020E Power-down Base (2) Current ( PIC12F609/615 D021E D022E D023E D024E D025E* D026E D027E * These parameters are characterized but not tested. † Data in “Typ” column is at 5.0V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested ...

Page 138

... PIC12F609/615/12HV609/615 15.6 DC Characteristics: PIC12HV609/615 - I (Industrial) Standard Operating Conditions (unless otherwise stated) DC CHARACTERISTICS Operating temperature Param Device Characteristics No. D020 Power-down Base (2,3) Current ( PIC12HV609/615 D021 D022 D023 D024 D025* D026 D027 * These parameters are characterized but not tested. † Data in “Typ” column is at 4.5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested ...

Page 139

... 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 high-impedance state and tied Shunt regulator is always on and always draws operating current. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 -E (Extended) -40°C ≤ T ≤ +125°C for extended A Min Typ† ...

Page 140

... This specification applies to all weak pull-up pins, including the weak pull-up found on GP3/MCLR. When GP3/MCLR is configured as MCLR reset pin, the weak pull-up is always enabled. DS41302B-page 138 PIC12F609/615/12HV609/615-I (Industrial) PIC12F609/615/12HV609/615-E (Extended) Standard Operating Conditions (unless otherwise stated) -40°C ≤ T Operating temperature -40°C ≤ T Min Typ† ...

Page 141

... This specification applies to all weak pull-up pins, including the weak pull-up found on GP3/MCLR. When GP3/MCLR is configured as MCLR reset pin, the weak pull-up is always enabled. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 PIC12F609/615/12HV609/615-I (Industrial) PIC12F609/615/12HV609/615-E (Extended) (Continued) Standard Operating Conditions (unless otherwise stated) -40°C ≤ T Operating temperature -40°C ≤ T Min Typ† ...

Page 142

... PIC12F609/615/12HV609/615 15.9 Thermal Considerations Standard Operating Conditions (unless otherwise stated) -40°C ≤ T ≤ +125°C Operating temperature A Param Sym Characteristic No. θ TH01 Thermal Resistance JA Junction to Ambient θ TH02 Thermal Resistance JC Junction to Case TH03 T Die Temperature DIE TH04 PD Power Dissipation TH05 P Internal Power Dissipation ...

Page 143

... I/O Port mc MCLR Uppercase letters and their meanings Fall H High I Invalid (High-impedance) L Low FIGURE 15-3: LOAD CONDITIONS Load Condition Pin Legend for all pins for OSC2 output © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 T Time osc OSC1 SCK T0CKI t1 T1CKI Period R Rise V Valid ...

Page 144

... PIC12F609/615/12HV609/615 15.11 AC Characteristics: PIC12F609/615/12HV609/615 (Industrial, Extended) FIGURE 15-4: CLOCK TIMING Q4 OSC1/CLKIN OSC2/CLKOUT (LP,XT,HS Modes) OSC2/CLKOUT (CLKOUT Mode) TABLE 15-1: CLOCK OSCILLATOR TIMING REQUIREMENTS Standard Operating Conditions (unless otherwise stated) -40°C ≤ T ≤ +125°C Operating temperature A Param Sym Characteristic No. OS01 F External CLKIN Frequency ...

Page 145

... When an external clock input is used, the “max” cycle time limit is “DC” (no clock) for all devices ensure these oscillator frequency tolerances, V possible. 0.1 μF and 0.01 μF values in parallel are recommended design. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Freq. Min Typ† Max Tolerance — ...

Page 146

... PIC12F609/615/12HV609/615 FIGURE 15-5: CLKOUT AND I/O TIMING Cycle Write Q4 F OSC CLKOUT I/O pin (Input) I/O pin Old Value (Output) TABLE 15-3: CLKOUT AND I/O TIMING PARAMETERS Standard Operating Conditions (unless otherwise stated) Operating Temperature -40°C ≤ T ≤ +125°C A Param ...

Page 147

... Asserted low. FIGURE 15-7: BROWN-OUT RESET TIMING AND CHARACTERISTICS BOR (Device in Brown-out Reset) Reset (due to BOR delay only if PWRTE bit in the Configuration Word register is programmed to ‘0’. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 BOR 37 33 HYST (Device not in Brown-out Reset) DS41302B-page 145 ...

Page 148

... PIC12F609/615/12HV609/615 TABLE 15-4: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER, POWER-UP TIMER AND BROWN-OUT RESET PARAMETERS Standard Operating Conditions (unless otherwise stated) -40°C ≤ T Operating Temperature A Param Sym Characteristic No MCLR Pulse Width (low) MC 31* T Watchdog Timer Time-out WDT Period (No Prescaler Oscillation Start-up Timer ...

Page 149

... Delay from External Clock Edge to Timer TMR Increment * These parameters are characterized but not tested. † Data in “Typ” column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Min Typ† ...

Page 150

... PIC12F609/615/12HV609/615 FIGURE 15-9: PIC12F615/HV615 CAPTURE/COMPARE/PWM TIMINGS (ECCP) CCP1 (Capture mode) Note: Refer to Figure 15-3 for load conditions. TABLE 15-6: PIC12F615/HV615 CAPTURE/COMPARE/PWM REQUIREMENTS (ECCP) Standard Operating Conditions (unless otherwise stated) -40°C ≤ T Operating Temperature A Param Sym Characteristic No. CC01* TccL CCP1 Input Low Time ...

Page 151

... VP6 voltage output OUT VR02 V1P2 V1P2 voltage output OUT VR03* T Settling Time STABLE * These parameters are characterized but not tested. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 ≤ +125°C Min Typ† ± 5.0 (2) — 0 — +55 — Falling — 150 Rising — ...

Page 152

... PIC12F609/615/12HV609/615 TABLE 15-10: SHUNT REGULATOR SPECIFICATIONS (PIC12HV609/615 only) SHUNT REGULATOR CHARACTERISTICS Param Symbol Characteristics No. SR01 V Shunt Voltage SHUNT SR02 I Shunt Current SHUNT SR03* T Settling Time SETTLE SR04 C Load Capacitance LOAD ΔI SR05 Regulator operating current SNT * These parameters are characterized but not tested. ...

Page 153

... ADRESH and ADRESL registers may be read on the following T 2: See Section 9.3 “A/D Acquisition Requirements” for minimum conditions. 3: Full range for PIC12HV609/HV615 powered by the shunt regulator is the 5V regulated voltage. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 ≤ +125°C Min Typ† Max Units μs 1.6 — ...

Page 154

... PIC12F609/615/12HV609/615 FIGURE 15-10: PIC12F615/HV615 A/D CONVERSION TIMING (NORMAL MODE) BSF ADCON0, GO AD134 (T OSC Q4 A/D CLK A/D Data ADRES ADIF GO AD132 Sample Note 1: If the A/D clock source is selected as RC, a time of T SLEEP instruction to be executed. FIGURE 15-11: PIC12F615/HV615 A/D CONVERSION TIMING (SLEEP MODE) ...

Page 155

... FIGURE 16-1: PIC12F609/615 I 60 Typical: Statistical Mean @25°C 50 Maximum: Mean (Worst-Case Temp) + 3σ ...

Page 156

... Typical: Statistical Mean @25°C 1000 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 800 600 400 200 FIGURE 16-5: PIC12F609/615 I 1200 Typical: Statistical Mean @25°C 1000 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 800 600 400 200 0 1 DS41302B-page 154 EC (4 MHz) vs ...

Page 157

... FIGURE 16-6: PIC12F609/615 I 900 800 Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp σ 700 (-40°C to 125°C) 600 500 400 300 200 100 FIGURE 16-7: PIC12F609/615 I 1800 Typical: Statistical Mean @25°C 1600 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) ...

Page 158

... Typical: Statistical Mean @25°C 700 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 600 500 400 300 200 100 FIGURE 16-9: PIC12F609/615 I Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) DS41302B-page 156 EXTRC (4 MHz (20 MHz) vs ...

Page 159

... FIGURE 16-10: PIC12F609/615 I 9 Typical: Statistical Mean @25°C 8 Industrial: Mean (Worst-Case Temp) + 3σ (-40°C to 85°C) Extended: Mean (Worst-Case Temp) + 3σ 7 (-40°C to 125° FIGURE 16-11: PIC12F609/615 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 BASE vs (V) DD COMPARATOR (SINGLE ON) vs Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp) + 3σ ...

Page 160

... Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp) + 3σ 16 (-40°C to 85°C) 14 Extended: Mean (Worst-Case Temp) + 3σ (-40°C to 125° FIGURE 16-13: PIC12F609/615 I 20 Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp (-40°C to 85°C) Extended: Mean (Worst-Case Temp (-40°C to 125° ...

Page 161

... FIGURE 16-14: PIC12F609/615 I 140 Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp (-40°C to 85°C) 120 Extended: Mean (Worst-Case Temp (-40°C to 125°C) 100 FIGURE 16-15: PIC12F609/615 I 120 Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp 100 (-40°C to 85°C) Extended: Mean (Worst-Case Temp (-40° ...

Page 162

... PIC12F609/615/12HV609/615 FIGURE 16-16: PIC12F609/615 I 25 Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp) + 3σ (-40°C to 85°C) Extended: Mean (Worst-Case Temp) + 3σ 20 (-40°C to 125° FIGURE 16-17: PIC12F615 Typical: Statistical Mean @25°C Industrial: Mean (Worst-Case Temp) + 3σ 12 (-40°C to 85°C) Extended: Mean (Worst-Case Temp) + 3σ ...

Page 163

... FIGURE 16-20: PIC12HV609/615 I 1400 Typical: Statistical Mean @25°C 1200 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 1000 800 600 400 200 0 1 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 LP (32 kHz MHz MHz) vs (V) ...

Page 164

... PIC12F609/615/12HV609/615 FIGURE 16-21: PIC12HV609/615 I 900 800 Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ 700 (-40°C to 125°C) 600 500 400 300 200 100 0 1 FIGURE 16-22: PIC12HV609/615 I 1400 Typical: Statistical Mean @25°C 1200 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) ...

Page 165

... FIGURE 16-26: PIC12HV609/615 I 400 Typical: Statistical Mean @25°C 350 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 300 250 200 150 100 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 INTOSC (8 MHz) vs (V) DD EXTRC (4 MHz) vs (V) DD BASE vs ...

Page 166

... PIC12F609/615/12HV609/615 FIGURE 16-27: PIC12HV609/615 I Typical: Statistical Mean @25°C 500 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 400 300 200 100 FIGURE 16-28: PIC12HV609/615 I 400 Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ 350 (-40°C to 125°C) 300 250 200 ...

Page 167

... FIGURE 16-32: PIC12HV609/615 I Typical: Statistical Mean @25°C 400 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 350 300 250 200 150 100 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 CV (LOW RANGE) vs REF ( (HI RANGE) vs REF (V) DD T1OSC vs ...

Page 168

... PIC12F609/615/12HV609/615 FIGURE 16-33: PIC12HV615 I Typical: Statistical Mean @25°C 400 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 350 300 250 200 150 100 FIGURE 16-34: V vs. I OVER TEMPERATURE ( 0.8 Typical: Statistical Mean @25°C 0.7 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) ...

Page 169

... Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ 1.0 (-40°C to 125°C) 0.5 0.0 0.0 -0.5 -1.0 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 = 5.0V) DD Max. 125°C Max. 85°C Typ. 25°C Min. -40°C 6.5 7.0 7.5 8.0 8.5 ...

Page 170

... PIC12F609/615/12HV609/615 FIGURE 16-37: V vs. I OVER TEMPERATURE ( 5.5 5.0 4.5 4.0 Typical: Statistical Mean @25°C 3.5 Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 3.0 0.0 -0.5 -1.0 FIGURE 16-38: TTL INPUT THRESHOLD V 1.7 Typical: Statistical Mean @25°C 1.5 Maximum: Mean (Worst-Case Temp) + 3σ ...

Page 171

... FIGURE 16-40: TYPICAL HFINTOSC START-UP TIMES vs 85°C 12 25°C 10 -40° 2.0 2.5 3.0 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 vs 3.0 3.5 4.0 V (V) DD OVER TEMPERATURE DD Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ (-40°C to 125°C) 3.5 4.0 V (V) ...

Page 172

... PIC12F609/615/12HV609/615 FIGURE 16-41: MAXIMUM HFINTOSC START-UP TIMES vs 85°C 25°C 10 -40° 2.0 2.5 3.0 FIGURE 16-42: MINIMUM HFINTOSC START-UP TIMES vs 85°C 6 25°C 5 -40° 2.0 2.5 3.0 DS41302B-page 170 OVER TEMPERATURE DD Typical: Statistical Mean @25°C Maximum: Mean (Worst-Case Temp) + 3σ ...

Page 173

... FIGURE 16-43: TYPICAL HFINTOSC FREQUENCY CHANGE vs 2.0 2.5 FIGURE 16-44: TYPICAL HFINTOSC FREQUENCY CHANGE vs 2.0 2.5 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 3.0 3.5 4.0 4.5 V (V) DD 3.0 3.5 4.0 V (V) DD (25°C) DD 5.0 5.5 (85°C) DD 4.5 5.0 5.5 DS41302B-page 171 ...

Page 174

... PIC12F609/615/12HV609/615 FIGURE 16-45: TYPICAL HFINTOSC FREQUENCY CHANGE vs 2.0 2.5 FIGURE 16-46: TYPICAL HFINTOSC FREQUENCY CHANGE vs 2.0 2.5 DS41302B-page 172 3.0 3.5 4.0 4.5 V (V) DD 3.0 3.5 4.0 4.5 V (V) DD (125°C) DD 5.0 5.5 (-40°C) DD 5.0 5.5 © 2008 Microchip Technology Inc. ...

Page 175

... FIGURE 16-49: SHUNT REGULATOR VOLTAGE vs. INPUT CURRENT (TYPICAL) 5.16 5.14 5.12 5.1 5.08 5.06 5.04 5.02 5 4.98 4. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Temp ( Temp ( Input Current (mA) 2. 5.5V 100 120 140 2.5V ...

Page 176

... PIC12F609/615/12HV609/615 FIGURE 16-50: SHUNT REGULATOR VOLTAGE vs. TEMP (TYPICAL) 5.16 5.14 5.12 5.1 5.08 5.06 5.04 5.02 5 4.98 4.96 -60 -40 -20 FIGURE 16-51: COMPARATOR RESPONSE TIME (RISING EDGE) 1000 900 800 700 1.5V)/2 Note: 600 input = input = Transition from V 500 400 300 200 ...

Page 177

... V+ input = V CM 500 V- input = Transition from V 400 300 200 100 0 2.0 FIGURE 16-53: WDT TIME-OUT PERIOD vs 1.5 2 © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 - 100mV 2.5 4.0 V (V) DD OVER TEMPERATURE DD 2 (V) DD Max. 125°C Max. 85°C Typ. 25°C Min. -40°C 5.5 125° ...

Page 178

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 176 © 2008 Microchip Technology Inc. ...

Page 179

... Standard PIC device marking consists of Microchip part number, year code, week code, and traceability code. For PIC device marking beyond this, certain price adders apply. Please check with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP price. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 Example XXFXXX/P e ...

Page 180

... PIC12F609/615/12HV609/615 17.2 Package Details The following sections give the technical details of the packages. DS41302B-page 178 © 2008 Microchip Technology Inc. ...

Page 181

... Microchip Technology Inc. PIC12F609/615/12HV609/615 φ α β DS41302B-page 179 ...

Page 182

... PIC12F609/615/12HV609/615 DS41302B-page 180 © 2008 Microchip Technology Inc. ...

Page 183

... Microchip Technology Inc. PIC12F609/615/12HV609/615 I φ DS41302B-page 181 ...

Page 184

... PIC12F609/615/12HV609/615 DS41302B-page 182 © 2008 Microchip Technology Inc. ...

Page 185

... Microchip Technology Inc. PIC12F609/615/12HV609/615 DS41302B-page 183 ...

Page 186

... PIC12F609/615/12HV609/615 DS41302B-page 184 © 2008 Microchip Technology Inc. ...

Page 187

... Specifications Section, Package Details. © 2008 Microchip Technology Inc. PIC12F609/615/12HV609/615 APPENDIX B: This discusses some of the issues in migrating from other PIC devices to the PIC12F6XX Family of devices. B.1 PIC12F675 to PIC12F609/615/ 12HV609/615 TABLE B-1: FEATURE COMPARISON Feature Max Operating Speed Max Program Memory (Words) ...

Page 188

... PIC12F609/615/12HV609/615 NOTES: DS41302B-page 186 © 2008 Microchip Technology Inc. ...

Page 189

... ADCON0 Register............................................................... 72 ADRESH Register (ADFM = 0) ........................................... 73 ADRESH Register (ADFM = 1) ........................................... 73 ADRESL Register (ADFM = 0)............................................ 73 ADRESL Register (ADFM = 1)............................................ 73 Analog Input Connection Considerations............................ 56 Analog-to-Digital Converter. See ADC ANSEL Register (PIC12F609/HV609) ................................ 33 ANSEL Register (PIC12F615/HV615) ................................ 33 APFCON Register............................................................... 21 Assembler MPASM Assembler................................................... 126 B Block Diagrams (CCP) Capture Mode Operation ................................. 78 ADC ...

Page 190

... PIC12F609/615/12HV609/615 Indirect Addressing ..................................................... 22 Initializing GPIO .......................................................... 31 Saving Status and W Registers in RAM ................... 108 Code Protection ................................................................ 111 Comparator ......................................................................... 55 Associated registers.................................................... 66 Control ........................................................................ 57 Gating Timer1 ............................................................. 61 Operation During Sleep .............................................. 59 Overview ..................................................................... 55 Response Time ........................................................... 57 Synchronizing COUT w/Timer1 .................................. 61 Comparator Hysteresis ....................................................... 65 Comparator Voltage Reference (CV ) ............................ 62 REF Effects of a Reset........................................................ 59 Response Time ........................................................... 57 Specifications ...

Page 191

... ANSEL (Analog Select) .............................................. 33 APFCON (Alternate Pin Function Register) ............... 21 CCP1CON (Enhanced CCP1 Control) ....................... 77 CMCON0 (Comparator Control 0) .............................. 60 CMCON1 (Comparator Control 1) .............................. 61 CONFIG (Configuration Word) ................................... 96 Data Memory Map (PIC12F609/HV609) .................... 10 Data Memory Map (PIC12F615/HV615) .................... 10 ECCPAS (Enhanced CCP Auto-shutdown Control) ... 90 GPIO........................................................................... 31 INTCON (Interrupt Control) ........................................ 17 IOC (Interrupt-on-Change GPIO) ............................... 34 OPTION_REG (OPTION) ...

Page 192

... PIC12F609/615/12HV609/615 TRISIO (Tri-State GPIO) ............................................. 31 VRCON (Voltage Reference Control) ......................... 64 WPU (Weak Pull-Up GPIO) ........................................ 34 Reset................................................................................... 97 Revision History ................................................................ 185 S Shoot-through Current ........................................................ 92 Sleep Power-Down Mode ................................................... 110 Wake-up.................................................................... 110 Wake-up using Interrupts .......................................... 110 Software Simulator (MPLAB SIM)..................................... 126 Special Event Trigger.......................................................... 70 Special Function Registers ................................................... 9 STATUS Register................................................................ 15 T T1CON Register ...

Page 193

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

Page 194

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC12F609/615/12HV609/615 Questions: 1. What are the best features of this document? 2. How does this document meet your hardware and software development needs you find the organization of this document easy to follow? If not, why? 4 ...

Page 195

... PIC12F615T-E/MF Tape and Reel, Extended (1) (1) , PIC12HV609, PIC12HV609T , Temp., 3x3 DFN, 20 MHz (1)) (1) , PIC12HV615, PIC12HV615T d) PIC12F609T-E/MF Tape and Reel, Extended Temp., 3x3 DFN, 20 MHz e) PIC12HV615T-E/MF Tape and Reel, Extended (Industrial) Temp., 3x3 DFN, 20 MHz (Extended) f) PIC12HV609T-E/MF Tape and Reel, Extended Temp., 3x3 DFN, 20 MHz Note 1: ...

Page 196

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2008 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