Datasheet

Software
© 2009 Microchip Technology Inc. DS51791A-page 37
C.3 PIC16F883 PORT USAGE
/* Port A */
PORTA.0 ADC_THERMISTOR_TEMPERATURE: Thermistor A/D input
PORTA.1 ADC_BATTTERY_VOLTAGE: Battery Voltage A/D input
PORTA.4 SHDN: System Shutdown and Thermistor Supply Output
PORTA.5 ONOFF_SWITCH: On/Off’ switch input
PORTA.6 NUMCELLS_SWITCH: Number of Cells’ switch input
PORTA.7 CHEMISTRY_SWITCH: Chemistry’ switch input
/* Port B */
PORTB.0 LIION_LED: Li-Ion’ LED output
PORTB.1 NIMH_LED: NiMH’ LED output
PORTB.2 LED_1_CELL: LS Bit ‘0’ Hex LED display output
PORTB.3 LED_2_CELL: Bit ‘1’ LED Hex display output
PORTB.4 LED_3_CELL: Bit ‘2’ LED Hex display output
PORTB.5 LED_4_CELL: MS Bit ‘3’ LED Hex display output
PORTB.6 In-Circuit Serial Programming CLOCK Line
PORTB.7 In-Circuit Serial Programming DATA Line
/* Port C */
PORTC.1 PWM_CURRENT_REF_OUT: Current Reference PWM output to
MCP1631HV VREF input
PORTC.2 OSC_OUT: Oscillator PWM output to MCP1631HV OSCin input
PORTC.5 STATUS_LED: Status’ LED output
PORTC.6 USART Transmit port. PICkit
Serial Analyzer interface.
PORTC.7 USART Receive port. PICkit Serial Analyzer interface.