Pic Io

For later reference, the table below lists I/ O connections to the PIC. A photocopy of this table mounted on card is handy to have on the workbench while assembling and testing

the circuit modules.

Port Name

IC pin

I/O

Connected to 0 =

1 =

A RA0

19

AnI

Reference voltage (AN0)

RA1

18

AnI

Forward light sensor (AN1)

RA2

17

I

Program select Program 1 Program 2

RA3

4

I

RA4

3

I/O

RA5

2

I/O

B RB4

13

I/O

RB5

12

I

Reserved for USART input

RB6

11

O

Bleeper Off

Sound

RB7

10

O

Reserved for USART output

C RC0

16

I/O

RC1

15

I/O

RC2

14

I/O

RC3

7

I/O

RC4

6

O

Headlamps Off

On

RC5

5

O

Side lamp Off

On

RC6

8

O

Motor A Forward

Reverse

RC7

9

O

Motor B Reverse

Forward

The entries are grouped by I/O port and list all the channels available on the PIC16F690. In the fourth column, the I or O indicates whether the channel is to be configured as an input or an output. AnI is an analogue input.

RC0 to RC3 can be used as analogue inputs for the comparators or AD converters if you decide to add more sensors, such as LED2.

The table shows the settings of Motor A and B lines. To stop the motor make both 0 or both 1.

0 0

Post a comment