programming pic

Thread Starter

arashian1

Joined Sep 9, 2016
39
It does look, from your pictures from PICKIT2 (although you say you are using PICKIT3), that the config is set appropriately (for the '877A at least) though it is good practice to include those settings in the source file to ensure they are set correctly and to document them for the future.

Do you have a pull-up resistor on /MCLR?
portb not use for adc i must set adcon1 when use portb?
 

JohnInTX

Joined Jun 26, 2012
4,787
thanks
i did not changed CONFIG bits but after connect MCLR to +5V it worked proper
but for set clock source the register that must be change is CONFIG?
Yes. In MikroC you specify the configuration bits in Project->Edit Project. All config options for the PIC will be shown. You must understand each one and set it accordingly.
 
Top