PicBasic, PicKit2 and configuration...


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: PicBasic, PicKit2 and configuration...

    Configs are a pain. Here is one that should work for you. PBP3 makes it easier, once the configs are right. Just put this into your code.

    Code:
    #config  ; 18F13K50/14K50  Only 12mhz crystal can be used for USB ;    
         __CONFIG    _CONFIG1L, _CPUDIV_NOCLKDIV_1L & _USBDIV_OFF_1L ;    
         __CONFIG    _CONFIG1H, _FOSC_HS_1H & _PLLEN_ON_1H & _PCLKEN_ON_1H & _FCMEN_OFF_1H & _IESO_OFF_1H 
    #endconfig
    http://www.scalerobotics.com

  2. #2
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: PicBasic, PicKit2 and configuration...

    Thanks a lot! I will try that.
    In the meantime I found a (very unelegant!) solution:

    I compile the source code in the PBP compiler.
    After that I start my 'good old' Epic Parallel programmer and load the hex-file.
    I can change the configuration settings in the Epic software and save the hex-file again.
    After that, I program the (modified) hex-file with the PicKit2 programmer. (Because of the lower programming voltage.)
    This works... But not a very nice solution!

  3. #3
    Join Date
    Feb 2012
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: PicBasic, PicKit2 and configuration...

    Here is one that should work for you. PBP3 makes it easier, once the configs are right. Just put this into your code.
    It was a nice try, but it doesn't work. The crystal is not oscillating. (I looked with a scope.)
    Also the PicKit2 was complaining about incorrect configuration values.
    However, most of the problems are solved now, since I can change the configuration with the Epic programmer software.
    One has to improvise sometimes...

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