14
|
VDD |
Power Connection. Connect to +5V |
5
|
VSS |
Ground Connection |
4
|
RA5/MCLR/VPP |
Master Clear- Reset Pin.
- Pin 4 can be set as RA5 Input or Master Clear with the configuration bit MCLRE.
- In MCLR Mode, Logic 0 resets microcontroller.
- In MCLR Mode, For proper operation connect this pin to 5V,
- In MCLR Mode, NEVER keep this pin unconnected!
- VPP is programming voltage input
|
16
|
RA7/OSC1/CLKIN |
Oscillator Pin 1.
- External clock source is connected here.
- If a crystal is being used, one terminal of the crystal has to be connected to this pin, connect two 22 pF capacitors between the ground and crystal terminals
- If internal oscillator is being used, pin 16 can be used as RA7.
- If external clock source is being used, square wave must be feed from this pin
|
15
|
RA6/OSC2/CLKOUT |
Oscillator Pin 2.
- A square wave can be obtained here with 1/4 of the frequency supplied
- If a crystal is being used, the other terminal of the crystal has to be connected to this pin
- If internal oscillator is being used, pin 16 can be used as RA6 I/O.
|
17
|
RA0/AN0 |
PORTA bit 0 or Analog comparator input |
18
|
RA1/AN1 |
PORTA bit 1 or Analog comparator input |
1
|
RA2/AN2/VREF |
PORTA bit 2 or Analog comparator input or VREF output |
2
|
RA3/AN3/CMP1 |
PORTA bit 3 or Analog comparator input or Comparator 1 output |
3
|
RA4/T0CKI/CMP2 |
- RA4: PORTA bit 4
- T0CKI: Timer 0 external clock source (In order to activate, set OPTION Register-Bit 5. Option Register-Bit 4 determines the edge type for each increment)
- CMP2: Comparator 2 output
|
6
|
RB0/INT |
- RB0: PORTB bit 0
- INT: External Interrupt (In order to activate, set INTCON Register-Bit 7 and 4. Option Register-Bit 6 determines the edge type triggerring interrupt)
|
7
|
RB1/RX/DT |
PORTB bit 1 or USART receive pin or Synchronous data I/O |
8
|
RB2/TX/CK |
PORTB bit 2 or USART transmit bit or Synchronous clock I/O |
9
|
RB3/CCP |
PORTB bit 3 or Capture/Compare/PWM I/O |
10
|
RB4/PGM |
PORTB bit 4 or Low voltage programming input pin |
11
|
RB5 |
PORTB bit 5 |
12
|
RB6/T1OSO/T1CKI/PGC |
PORTB bit 6 or Timer 1 Oscillator Output or Timer 1 Clock Input or programming clock |
13
|
RB7/T1OSI/PGD |
PORTB bit 7 or Timer 1 Oscillator Input or ICSP data I/O |