PDA

View Full Version : Help converting __CONFIG directive to CONFIG



lilimike
- 7th December 2011, 19:05
With this post in mind: http://www.picbasic.co.uk/forum/showthread.php?t=5418&page=6&p=80434#post80434
A while back I started this project and got overwhelmed and discouraged by a number of issues but now I have lots of energy and I am back at it.

I want to convert: (18F2550)

__CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
__CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
__CONFIG _CONFIG3H, _PBADEN_OFF_3H
__CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L


to the new CONFIG directive as I can not compile with the above.
Also converting for 18F25J50 and having a hard time converting the fuses.
I have the list of the new CONFIG with comments in the P25J50.INC but no trace of the old ones.
So far I have this:

CONFIG PLLDIV = 5
CONFIG CPUDIV = OSC2_PLL2
CONFIG WDTEN = ON
CONFIG WDTPS = 512

and I am probably way off...

Mike