I am new to PIC programming.I want to set my PIC 16F627A to 20 Mhz external crystal using the programming software (PICPgm).Could you please tell me how to?Also kindly tell me how do I set the config bits in the C code.I want to know both ways
Thing is I have not been able to set the 16f627 to 20 mhz.I did set the HS bits and MCLR_OFF .Prior to this it so happened that without setting the MCLR_OFF the LED code would give unexpected results.If I touch a pin of the microcontroller the LED would either go on or off.Similar to the problem here:
After I set the bit the LED blinks once per second which means the PIC is still running at I Mhz.Could some one please suggest what bit should I set in the config for the PIC to work at 20 Mhz.I have not been able to UART comm because of the same.
Below is how the fuse settings look.(Even there are options for setting other config bits.It is in MikroC)
The compiler also reads it 20 mhz.But i still think some problem with the config bits itself.And the controller is working at 1Mhz not 4 .People please help.