Re: 18F2431 Learning Curve
Hi Barry,
To include your configs in your pbp 3.0 code is pretty easy. Here are some examples: http://www.picbasic.co.uk/forum/show...963#post110963
The bare bones ones to include would be these (though I have not tried running it on internal yet): Note it defaults to 4 mhz, unless you set the oscon bits for something else.
Code:
#CONFIG
__CONFIG _CONFIG1H, _OSC_IRCIO_1H
__CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDPS_512_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
#ENDCONFIG
ADCON0 = %00000000
ADCON1 = %00000000
Last edited by ScaleRobotics; - 23rd June 2012 at 06:03.
http://www.scalerobotics.com
Bookmarks