18F2431 Learning Curve


Results 1 to 21 of 21

Threaded View

  1. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default 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

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts