PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

Similar documents
Target Board PIC877-TB - Reference Manual

PIC Microcontroller Introduction

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC)

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1

PIC16F /40-Pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

Future PICmicro Microcontroller Products Guide 2000

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. Advance Information DS39564A

PIC16F7X Data Sheet. 28/40-pin, 8-bit CMOS FLASH Microcontrollers Microchip Technology Inc. DS30325B

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. DS39564B

PIC16F870/ /40-Pin, 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram. Microcontroller Core Features:

which means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch.

Microcontroller Overview

Section 28. WDT and SLEEP Mode

Section 4. Architecture

M PIC16F84A. 18-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller. High Performance RISC CPU Features: Pin Diagrams. Peripheral Features:

Arduino Uno R3 INTRODUCTION

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Lecture (02) PIC16F84 (I)

PIC18CXX2. High-Performance Microcontrollers with 10-Bit A/D * * High Performance RISC CPU: Pin Diagrams PIC18C4X2.

PIC18CXX2. High Performance Microcontrollers with 10-bit A/D. High Performance RISC CPU: Pin Diagrams PIC18C4X2. Analog Features: Peripheral Features:

PIC18CXX2 Data Sheet. High Performance Microcontrollers with 10-bit A/D Microchip Technology Inc. DS39026C


Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

PIC16F8X. 8-Bit CMOS Flash/EEPROM Microcontrollers PIC16F8X PIC16CR8X. Pin Diagram. Devices Included in this Data Sheet:

Embedded System Design

PIC18F45J10 Family Data Sheet

V23026 series Miniature, Sealed PC Board Relay

Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel. I/O Pins. 10-bit A/D (ch) EEPROM

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

PIC16C84. 8-bit CMOS EEPROM Microcontroller PIC16C84. Pin Diagram. High Performance RISC CPU Features: CMOS Technology: Peripheral Features:

84 PLCC RH2 RH3 RD1/AD9 RD0/AD8 RE0/ALE RE1/OE RE2/WR RE3/CAP4 MCLR/VPP TEST RF7/AN11 RF6/AN10 RF5/AN9 RF4/AN8 RF3/AN7 RF2/AN6 RH4/AN12 RH5/AN13

ARDUINO MEGA INTRODUCTION

PIC16F8X 18-pin Flash/EEPROM 8-Bit Microcontrollers

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

PIC16F84A. 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features:

Lecture (03) PIC16F84 (2)

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

Sales: Technical: Fax:

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

PIC16C52. EPROM-Based 8-Bit CMOS Microcontroller PIC16C52. Pin Diagrams. Feature Highlights. High-Performance RISC CPU. Peripheral Features

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

DERTS Design Requirements (1): Microcontroller Architecture & Programming

ATmega128. Introduction

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU:

Section 9. Watchdog Timer (WDT)

ME 515 Mechatronics. A microprocessor

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

The Atmel ATmega328P Microcontroller

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

TB033. Using the PIC16F877 To Develop Code For PIC16CXXX Devices INTRODUCTION. Stan D Souza, Rodger Richey Microchip Technology Inc.

PIC12CE5XX. 8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory. Devices Included in this Data Sheet: Pin Diagram: High-Performance RISC CPU:

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Section 8. Reset HIGHLIGHTS. Reset. This section of the manual contains the following major topics:

PIC18F6520/8520/6620/8620/6720/8720 Data Sheet

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ. Embedded System Design

Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with XLP Technology. Data EEPROM (bytes) Data (bytes)

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL

PIC16C432 OTP 8-Bit CMOS MCU with LIN bus Transceiver

PIC18FXX20 Data Sheet

MC68HC908GR8A MC68HC908GR4A Data Sheet

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:

The Atmel ATmega168A Microcontroller

MICROPROCESSOR BASED SYSTEM DESIGN

PIC16F87XA Data Sheet

Bolt 18F2550 System Hardware Manual

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

Section 11. Timer0. Timer0 HIGHLIGHTS. This section of the manual contains the following major topics:

PIC10F200/202/204/206

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

BENCHMARK ST72 vs. PIC16

Introduction to Embedded Systems

PIC12C5XX. 8-Pin, 8-Bit CMOS Microcontroller. CMOS Technology: Devices included in this Data Sheet: High-Performance RISC CPU: Pin Diagram

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

PIC18FXX8 Data Sheet. 28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module Microchip Technology Inc.

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

Contents. PIC Mini Data Sheets

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU:

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Am186ER/Am188ER AMD continues 16-bit innovation

AVR Microcontrollers Architecture

More than Compatibility

The Freescale MC908JL16 Microcontroller

Input/Output Ports and Interfacing

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontrollers Microchip Technology Inc. Preliminary DS41213B

Section 33. Device Configuration (Part II)

DRPIC166X IP Core. High Performance 8-bit RISC Microcontroller v. 2.17

PIC-P67J60 development board Users Manual

SEIKO EPSON CORPORATION

Transcription:

PIC16F7X 2/40-pin -Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F7 PIC16F74 PIC16F76 PIC16F77 Microcontroller Core Features: High-performance RISC CPU Only 5 single word instructions to learn All single cycle instructions except for program branches which are two cycle Operating speed: DC - 20 MHz clock input DC - 200 ns instruction cycle Up to K x words of FLASH Memory, Up to 6 x bytes of Data Memory (RAM) Up to 256 x bytes of EEPROM data memory Pinout compatible to the PIC16C7B/74B/76/77 Interrupt capability (up to sources) Eight level deep hardware stack Direct, indirect and relative addressing modes Power-on Reset (POR) Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation mable code-protection Power saving SLEEP mode Selectable oscillator options Low-power, high-speed CMOS FLASH/EEPROM technology Fully static design In-Circuit Serial ming (ICSP) via two pins Single 5V In-Circuit Serial ming capability In-Circuit Debugging via two pins Processor read/write access to program memory Wide operating voltage range: 2.0V to 5.5V High Sink/Source Current: 25 ma Commercial and Industrial temperature ranges Low-power consumption: - < 2 ma typical @ 5V, 4 MHz - 20 µa typical @ V, 2 khz - < 1 µa typical standby current Pin Diagram PDIP MCLR/VPP/THV RE0/RD/AN5 RE1/WR/AN6 RE2/CS/AN7 RC/SCK/SCL RD0/PSP0 RD1/PSP1 Peripheral Features: 1 2 4 5 6 7 9 10 11 12 15 16 17 1 19 20 PIC16F77/74 Timer0: -bit timer/counter with -bit prescaler Timer1: 16-bit timer/counter with prescaler, can be incremented during sleep via external crystal/clock Timer2: -bit timer/counter with -bit period register, prescaler and postscaler Two Capture, Compare, PWM modules - Capture is 16-bit, max. resolution is 12.5 ns - Compare is 16-bit, max. resolution is 200 ns - PWM max. resolution is 10-bit 10-bit multi-channel Analog-to-Digital converter Synchronous Serial Port (SSP) with SPI (Master Mode) and I 2 C (Master/Slave) Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 9-bit address detection Parallel Slave Port (PSP) -bits wide, with external RD, WR and CS controls (40/44-pin only) Brown-out detection circuitry for Brown-out Reset (BOR) 40 9 7 6 5 4 2 1 0 29 2 27 26 25 24 2 22 21 RD7/PSP7 RD6/PSP6 RD5/PSP5 RD4/PSP4 RD/PSP RD2/PSP2 1999 Microchip Technology Inc. DS0292B-page 1

PIC16F7X DS0292B-page 2 1999 Microchip Technology Inc. Pin Diagrams PIC16F76/7 10 11 2 4 5 6 1 7 9 12 15 16 17 1 19 20 2 24 25 26 27 2 22 21 MCLR/VPP/THV RC/SCK/SCL 10 11 12 15 16 17 1 19 20 21 22 2 24 25 26 44 7 6 5 4 2 1 27 229 0 1 2 4 5 6 7 9 40 41 42 4 9 PIC16F77 RE0/RD/AN5 RC0/T1OSO/T1CK1 RE1/WR/AN6 RE2/CS/AN7 RD7/PSP7 RD6/PSP6 RD5/PSP5 RD4/PSP4 MCLR/VPP/THV RD/PSP RD2/PSP2 RD1/PSP1 RD0/PSP0 RC/SCK/SCL 10 11 2 4 5 6 1 1 19 20 21 22 12 15 7 44 4 42 41 40 9 16 17 29 0 1 2 2 24 25 26 27 2 6 4 5 9 PIC16F77 7 MCLR/VPP/THV RD/PSP RD2/PSP2 RD1/PSP1 RD0/PSP0 RC/SCK/SCL RE2/AN7/CS RE1/AN6/WR RE0/AN5/RD RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP7 PLCC QFP DIP, SOIC PIC16F74 PIC16F74

PIC16F7X Key Features PICmicro Mid-Range Reference Manual (DS02) PIC16F7 PIC16F74 PIC16F76 PIC16F77 Operating Frequency DC - 20 MHz DC - 20 MHz DC - 20 MHz DC - 20 MHz Resets (and Delays) FLASH Memory (-bit words) POR, BOR (PWRT, OST) POR, BOR (PWRT, OST) POR, BOR (PWRT, OST) POR, BOR (PWRT, OST) 4K 4K K K Data Memory (bytes) 192 192 6 6 EEPROM Data Memory 12 12 256 256 Interrupts I/O Ports Ports A,B,C Ports A,B,C,D,E Ports A,B,C Ports A,B,C,D,E Timers Capture/Compare/PWM modules 2 2 2 2 Serial Communications MSSP, USART MSSP, USART MSSP, USART MSSP, USART Parallel Communications PSP PSP 10-bit Analog-to-Digital Module 5 input channels input channels 5 input channels input channels Instruction Set 5 Instructions 5 Instructions 5 Instructions 5 Instructions 1999 Microchip Technology Inc. DS0292B-page

PIC16F7X Table of Contents 1.0 Device Overview... 5 2.0 Memory Organization... 11.0 I/O Ports... 29 4.0 Data EEPROM and FLASH Memory... 41 5.0 Timer0 Module... 47 6.0 Timer1 Module... 51 7.0 Timer2 Module... 55.0 Capture/Compare/PWM (CCP) Module(s)... 57 9.0 Master Synchronous Serial Port (MSSP) Module... 6 10.0 Universal Synchronous Asynchronous Receiver Transmitter (USART)... 95 11.0 Analog-to-Digital Converter (A/D) Module... 111 12.0 Special Features of the CPU... 121.0 Instruction Set Summary... 7.0 Development Support... 5 15.0 Electrical Characteristics... 151 16.0 DC and AC Characteristics Graphs and Tables... 17 17.0 Packaging Information... 175 Appendix A: Revision History... Appendix B: Device Differences... Appendix C: Conversion Considerations... Index... 15 On-Line Support... 191 Product Identification System... 19 Most Current Data Sheet To Our Valued Customers To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number. e.g., DS0000A is version A of document DS0000. New Customer Notification System Register on our web site (www.microchip.com/cn) to receive the most current information on our products. Errata An errata sheet may exist for current devices, describing minor operational differences (from the data sheet) and recommended workarounds. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particular device, please check with one of the following: Microchip s Worldwide Web site; http://www.microchip.com Your local Microchip sales office (see last page) The Microchip Corporate Literature Center; U.S. FAX: (40) 76-7277 When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include literature number) you are using. Corrections to this Data Sheet We constantly strive to improve the quality of all our products and documentation. We have spent a great deal of time to ensure that this document is correct. However, we realize that we may have missed a few things. If you find any information that is missing or appears in error, please: Fill out and mail in the reader response form in the back of this data sheet. E-mail us at webmaster@microchip.com. We appreciate your assistance in making this a better document. DS0292B-page 4 1999 Microchip Technology Inc.

PIC16F7X 1.0 DEVICE OVERVIEW This document contains device-specific information. Additional information may be found in the PICmicro Mid-Range Reference Manual, (DS02), which may be obtained from your local Microchip Sales Representative or downloaded from the Microchip website. The Reference Manual should be considered a complementary document to this data sheet, and is highly recommended reading for a better understanding of the device architecture and operation of the peripheral modules. There are four devices (PIC16F7, PIC16F74, PIC16F76 and PIC16F77) covered by this data sheet. The PIC16F76/7 devices come in 2-pin packages and the PIC16F77/74 devices come in 40- pin packages. The 2-pin devices do not have a Parallel Slave Port implemented. The following two figures are device block diagrams sorted by pin number; 2-pin for Figure 1-1 and 40-pin for Figure 1-2. The 2-pin and 40-pin pinouts are listed in Table 1-1 and Table 1-2, respectively. FIGURE 1-1: PIC16F7 AND PIC16F76 BLOCK DIAGRAM Device Bus FLASH FLASH Memory Instruction reg Instruction Decode & Control Timing Generation Data Memory Counter Level Stack (-bit) Direct Addr 7 Power-up Timer Oscillator Start-up Timer Power-on Reset Watchdog Timer Brown-out Reset Data EEPROM PIC16F7 4K 192 Bytes 12 Bytes PIC16F76 K 6 Bytes 256 Bytes In-Circuit Debugger Low-Voltage ming Data Bus RAM File Registers RAM Addr (1) 9 Addr MUX ALU W reg FSR reg Indirect Addr STATUS reg MUX PORTA PORTB PORTC RC/SCK/SCL MCLR, Timer0 Timer1 Timer2 10-bit A/D Data EEPROM CCP1,2 Synchronous Serial Port USART Note 1: Higher order bits are from the STATUS register. 1999 Microchip Technology Inc. DS0292B-page 5

PIC16F7X FIGURE 1-2: PIC16F74 AND PIC16F77 BLOCK DIAGRAM Device FLASH Data Memory Data EEPROM PIC16F74 4K 192 Bytes 12 Bytes PIC16F77 K 6 Bytes 256 Bytes Bus FLASH Memory Instruction reg Instruction Decode & Control Timing Generation Counter Level Stack (-bit) Direct Addr 7 Power-up Timer Oscillator Start-up Timer Power-on Reset Watchdog Timer Brown-out Reset Data Bus RAM File Registers RAM Addr (1) 9 Addr MUX ALU W reg FSR reg Indirect Addr STATUS reg MUX PORTA PORTB PORTC PORTD RC/SCK/SCL RD7/PSP7:RD0/PSP0 In-Circuit Debugger Low-Voltage ming Parallel Slave Port PORTE RE0/AN5/RD MCLR, RE1/AN6/WR RE2/AN7/CS Timer0 Timer1 Timer2 10-bit A/D Data EEPROM CCP1,2 Synchronous Serial Port USART Note 1: Higher order bits are from the STATUS register. DS0292B-page 6 1999 Microchip Technology Inc.

PIC16F7X TABLE 1-1: PIC16F7 AND PIC16F76 PINOUT DESCRIPTION Pin Name DIP SOIC I/O/P Type Buffer Type Description 9 9 I ST/CMOS () Oscillator crystal input/external clock source input. 10 10 O Oscillator crystal output. Connects to crystal or resonator in crystal oscillator mode. In RC mode, the OSC2 pin outputs CLKOUT which has 1/4 the frequency of OSC1, and denotes the instruction cycle rate. MCLR/VPP/THV 1 1 I/P ST Master clear (reset) input or programming voltage input or high voltage test mode control. This pin is an active low reset to the device. PORTA is a bi-directional I/O port. 2 2 I/O TTL RA0 can also be analog input0 I/O TTL RA1 can also be analog input1 4 4 I/O TTL RA2 can also be analog input2 or negative analog reference voltage 5 5 I/O TTL RA can also be analog input or positive analog reference voltage 6 6 I/O ST RA4 can also be the clock input to the Timer0 module. Output is open drain type. RA5/SS/AN4 7 7 I/O TTL RA5 can also be analog input4 or the slave select for the synchronous serial port. PORTB is a bi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs. 21 21 I/O TTL/ST (1) RB0 can also be the external interrupt pin. 22 22 I/O TTL 2 2 I/O TTL 24 24 I/O TTL RB can also be the low voltage programming input 25 25 I/O TTL Interrupt on change pin. 26 26 I/O TTL Interrupt on change pin. 27 27 I/O TTL/ST (2) Interrupt on change pin or In-Circuit Debugger pin. Serial programming clock. 2 2 I/O (2) TTL/ST Interrupt on change pin or In-Circuit Debugger pin. Serial programming data. PORTC is a bi-directional I/O port. 11 11 I/O ST RC0 can also be the Timer1 oscillator output or Timer1 clock input. 12 12 I/O ST RC1 can also be the Timer1 oscillator input or Capture2 input/ Compare2 output/pwm2 output. I/O ST RC2 can also be the Capture1 input/compare1 output/pwm1 output. RC/SCK/SCL I/O ST RC can also be the synchronous serial clock input/output for both SPI and I 2 C modes. 15 15 I/O ST RC4 can also be the SPI Data In (SPI mode) or data I/O (I 2 C mode). 16 16 I/O ST RC5 can also be the SPI Data Out (SPI mode). 17 17 I/O ST RC6 can also be the USART Asynchronous Transmit or Synchronous Clock. 1 1 I/O ST RC7 can also be the USART Asynchronous Receive or Synchronous Data., 19, 19 P Ground reference for logic and I/O pins. 20 20 P Positive supply for logic and I/O pins. Legend: I = input O = output I/O = input/output P = power = Not used TTL = TTL input ST = Schmitt Trigger input Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt. 2: This buffer is a Schmitt Trigger input when used in serial programming mode. : This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise. 1999 Microchip Technology Inc. DS0292B-page 7

PIC16F7X TABLE 1-2: PIC16F74 AND PIC16F77 PINOUT DESCRIPTION Pin Name DIP PLCC QFP I/O/P Type Buffer Type Description 0 I ST/CMOS (4) Oscillator crystal input/external clock source input. 15 1 O Oscillator crystal output. Connects to crystal or resonator in crystal oscillator mode. In RC mode, OSC2 pin outputs CLK- OUT which has 1/4 the frequency of OSC1, and denotes the instruction cycle rate. MCLR/VPP/THV 1 2 1 I/P ST Master clear (reset) input or programming voltage input or high voltage test mode control. This pin is an active low reset to the device. PORTA is a bi-directional I/O port. 2 19 I/O TTL RA0 can also be analog input0 4 20 I/O TTL RA1 can also be analog input1 4 5 21 I/O TTL RA2 can also be analog input2 or negative analog reference voltage 5 6 22 I/O TTL RA can also be analog input or positive analog reference voltage 6 7 2 I/O ST RA4 can also be the clock input to the Timer0 timer/ counter. Output is open drain type. RA5/SS/AN4 7 24 I/O TTL RA5 can also be analog input4 or the slave select for the synchronous serial port. PORTB is a bi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs. 6 I/O TTL/ST (1) RB0 can also be the external interrupt pin. 4 7 9 I/O TTL 5 10 I/O TTL 6 9 11 I/O TTL RB can also be the low voltage programming input 7 41 I/O TTL Interrupt on change pin. 42 15 I/O TTL Interrupt on change pin. 9 4 16 I/O TTL/ST (2) Interrupt on change pin or In-Circuit Debugger pin. Serial programming clock. 40 44 17 I/O (2) TTL/ST Interrupt on change pin or In-Circuit Debugger pin. Serial programming data. PORTC is a bi-directional I/O port. 15 16 2 I/O ST RC0 can also be the Timer1 oscillator output or a Timer1 clock input. 16 1 5 I/O ST RC1 can also be the Timer1 oscillator input or Capture2 input/compare2 output/pwm2 output. 17 19 6 I/O ST RC2 can also be the Capture1 input/compare1 output/ PWM1 output. RC/SCK/SCL 1 20 7 I/O ST RC can also be the synchronous serial clock input/output for both SPI and I 2 C modes. 2 25 42 I/O ST RC4 can also be the SPI Data In (SPI mode) or data I/O (I 2 C mode). 24 26 4 I/O ST RC5 can also be the SPI Data Out (SPI mode). 25 27 44 I/O ST RC6 can also be the USART Asynchronous Transmit or Synchronous Clock. 26 29 1 I/O ST RC7 can also be the USART Asynchronous Receive or Synchronous Data. Legend: I = input O = output I/O = input/output P = power = Not used TTL = TTL input ST = Schmitt Trigger input Note 1: This buffer is a Schmitt Trigger input when configured as an external interrupt. 2: This buffer is a Schmitt Trigger input when used in serial programming mode. : This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel Slave Port mode (for interfacing to a microprocessor bus). 4: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise. DS0292B-page 1999 Microchip Technology Inc.