View Full Version : @ device ?????

- 21st June 2017, 02:31
I have seen Config and have never seen "@ device PIC16F628A,HS_OSC,BOD_ON,MCLR_ON,PWRT_ON"

Is this valid?
How do I change it for a 20MHZ crystal?

Thanks, Ed

- 21st June 2017, 06:29
I believe that is the syntax for setting the CONFIG bits when using the old, obsolete, PM assembler. If you have PBP3 you must change it the "new" syntax.
Find the .INFO file for your device in the DEVICE REFERENCE folder - there you can see what the defaults are and what options are available. HS_OSC is the correct option for a 20MHz.