The _config line sets up the processer
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF)
Basically in order they appear: (internal oscilator selected and not routed to a pin on the chip & watchdog timer off & powerup timer off & master reset pin disabled & code protection off & low supply voltage reset dissabled & fu*k knows & fu*k knows)
They're all fine for now. Ultimately you'll want the Watchdog and Powerup timer and Brownout reset enabled to prevent problems in the car but don't touch them yet, it'll stop working at all if you set them wrong!
The opperation of the PIC peripherals including its IO pins is controlled by RAM registers, some contain setup info, some contain data that is mirrored to the IO pins and some contain data gathered from timers ADC etc. With user RAM there's too many to address directly so they're arranged into pages called banks. STATUS register bit RP0 allows you to switch between banks to adjust the registers you need to control the IO.
TRISC in bank 1 controls the direction of the PortC pins, a bit set to '1' is an input and a '0' an output. You can set or clear individual bits using the bsf or bcf commands with the syntax:
bcf TRISC,6 for example, this clears (sets to 0) bit 6 (bits are referenced 0 to 7, not 1 to 8 ) in the TRISC register leaving it with x
0xxxxxx in it where x represents unchanged bits that were there before.
For example to turn Port C pin 0 and pin 2 on you need to do the following:
#include <p16F690.inc>
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF)
org 0
Start:
bsf STATUS,RP0 ; select Register Page 1 there the TRISx direction reg are
bcf TRISC,0 ; make IO Pin C0 an output
bcf TRISC,2 ; make IO Pin C2 an output
bcf STATUS,RP0 ; back to Register Page 0 where the PORTx data registers are
bsf PORTC,0 ; turn on pin C0 and whatever is connected to it
bsf PORTC,2 ; turn on pin C2 and whatever is connected to it
goto $ ; wait here in an eternal loop repeating this instruction
end
Read the general description, IO ports, memmory arrangement and commands sections of the data sheet to get a good feel for exactly what you're doing with this, it's heavy going but will help no end
jk