Data Sheet (PIC17C42A-16/P)Table of ContentsOverview5Family and Upward Compatibility5Development Support5PIC17C4X Device Varieties7UV Erasable Devices7One-Time-Programmable (OTP) Devices7Quick-Turnaround-Production (QTP) Devices7Serialized Quick-Turnaround Production (SQTP (SM) ) Devices7Read Only Memory (ROM) Devices7Architectural Overview9Clocking Scheme/Instruction Cycle14Instruction Flow/Pipelining14Reset15Power-on Reset (POR), Power-up Timer (PWRT), and Oscillator Start-up Timer (OST)15Interrupts21Interrupt Status Register (INTSTA)22Peripheral Interrupt Enable Register (PIE)23Peripheral Interrupt Request Register (PIR)24Interrupt Operation25RA0/INT Interrupt26TMR0 Interrupt26T0CKI Interrupt26Peripheral Interrupt26Context Saving During Interrupts27Memor y Organization29Program Memory Organization29Data Memory Organization32Stack Operation39Indirect Addressing39Table Pointer (TBLPTRL and TBLPTRH)40Table Latch (TBLATH, TBLATL)40Program Counter Module41Bank Select Register (BSR)42Table Reads and Table Writes43Table Writes to Internal Memory45Table Writes to External Memory46Table Reads48Hardware Multiplier49I/O Ports53PORTA Register53PORTB and DDRB Registers55PORTC and DDRC Registers58PORTD and DDRD Registers60I/O Programming Considerations64Overview of Timer Resources65Timer0 Overview65Timer1 Overview65Timer2 Overview65Timer3 Overview65Role of the Timer/Counters65Timer067Timer0 Operation68Using Timer0 with External Clock68Read/Write Consideration for TMR069Prescaler Assignments69Timer1, Timer2, Timer3, PWMs and Captures71Timer1 and Timer273Timer377Universal Synchronous Asynchronous Receiver Transmitter (USART) Module83USART Baud Rate Generator (BRG)86USART Asynchronous Mode89USART Synchronous Master Mode93USART Synchronous Slave Mode97Special Features of the CPU99Configuration Bits100Oscillator Configurations100Watchdog Timer (WDT)103Power-down Mode (SLEEP)105Code Protection106Instruction Set Summary107Special Function Registers as Source/Destination108Q Cycle Activity109Development Support143Development Tools143PICMASTER: High Performance Universal In-Circuit Emulator with MPLAB IDE143ICEPIC: Low-cost PIC16CXXX In-Circuit Emulator143PRO MATE II: Universal Programmer143PICSTART Plus Entry Level Development System143PICDEM-1 Low-Cost PIC16/17 Demonstration Board144PICDEM-2 Low-Cost PIC16CXX Demonstration Board144PICDEM-3 Low-Cost PIC16CXXX Demonstration Board144MPLAB Integrated Development Environment Software144Assembler (MPASM)144Software Simulator (MPLAB-SIM)145C Compiler (MPLAB-C)145Fuzzy Logic Development System ( fuzzyTECH-MP)145MP-DriveWay(TM) – Application Code Generator145SEEVAL(R) Evaluation and Programming System145TrueGauge(R) Intelligent Battery145KEELOQ (R) Evaluation and Programming Tools145PIC17C42 Electrical Characteristics147DC Characteristics: PIC17C42-16, -25 (Commercial, Industrial)149DC Characteristics: PIC17C42-16, -25 (Commercial, Industrial)150Timing Parameter Symbology153Timing Diagrams and Specifications155PIC17C42 DC and AC Characteristics163PIC17CR42/42A/43/R43/44 Electrical Characteristics175DC Characteristics: PIC17CR42/42A/43/R43/44-16, -25, -33 (Commercial, Industrial)177DC Characteristics: PIC17LC42A/43/LC44, PIC17LCR42/43 (Commercial, Industrial)178DC Characteristics: PIC17CR42/42A/43/R43/44-16, -25, -33, PIC17LCR42/42A/43/R43/44-08 (Commercial, Industrial)179Timing Parameter Symbology182Timing Diagrams and Specifications184PIC17CR42/42A/43/R43/44 DC and AC Characteristics193Packaging Information20540-Lead Ceramic CERDIP Dual In-line, and CERDIP Dual In-line with Window (600 mil)20540-Lead Plastic Dual In-line (600 mil)20644-Lead Plastic Leaded Chip Carrier (Square)20744-Lead Plastic Surface Mount (MQFP 10x10 mm Body 1.6/0.15 mm Lead Form)20844-Lead Plastic Surface Mount (TQFP 10x10 mm Body 1.0/0.10 mm Lead Form)209Package Marking Information210Appendix A: Modifications211Appendix B: Compatibility211Appendix C: What's New212Appendix D: What's Changed212Appendix E: PIC16/17 Microcontrollers213Pin Compatibility221Appendix F: Errata for PIC17C42 Silicon223Index225On-Line Support235PIC17C4X Product Identification System237Worldwide Sales and Service241Size: 1.15 MBPages: 241Language: EnglishOpen manual