+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 4
    Points: 35, Level: 1

    Join Date
    Feb 2013
    Posts
    5
    Helped
    0 / 0
    Points
    35
    Level
    1

    PIC16F88-I/P programming problem

    I'm building this circuit "LED Strobe & Tachometer" so it uses a microcontroller (PIC16F88-I/P) and I have the HEX code, but for some reason I don't know the code won't be verified when installed on the chip (neither can be read), and here is the code (LED Strobe Folder) :

    http://www.epemag.com/lib/src/1110.zip

    ANY HELP PLEASE!

    •   Alt11th February 2013, 14:55

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 20,490, Level: 34
    Achievements:
    7 years registered

    Join Date
    May 2009
    Location
    Prime Meridian
    Posts
    3,056
    Helped
    892 / 892
    Points
    20,490
    Level
    34

    Re: PIC16F88-I/P programming problem

    Quote Originally Posted by eng.mak88 View Post
    I'm building this circuit "LED Strobe & Tachometer" so it uses a microcontroller (PIC16F88-I/P) and I have the HEX code, but for some reason I don't know the code won't be verified when installed on the chip (neither can be read), and here is the code (LED Strobe Folder) :

    http://www.epemag.com/lib/src/1110.zip

    ANY HELP PLEASE!
    Hi,

    That .hex code does not contain any Configuration bits, if you get them from the .asm file you may be able to manually enter them via your programmer software.

    Easiest way will be to build the .asm file in MPlab to produce the .hex file with config bits.

    That code without config bits programmed into my chip ok with a pickit2

    What programmer are you using ; have you programmed that 16F88 chip before without any problems ?


    btw - do you have any links / article text to those programs, I know someone who is also interested in railway projects /dcc etc



    •   Alt11th February 2013, 18:40

      advertising

        
       

  3. #3
    Newbie level 4
    Points: 35, Level: 1

    Join Date
    Feb 2013
    Posts
    5
    Helped
    0 / 0
    Points
    35
    Level
    1

    Re: PIC16F88-I/P programming problem

    Quote Originally Posted by wp100 View Post
    Hi,

    That .hex code does not contain any Configuration bits, if you get them from the .asm file you may be able to manually enter them via your programmer software.

    Easiest way will be to build the .asm file in MPlab to produce the .hex file with config bits.

    That code without config bits programmed into my chip ok with a pickit2

    What programmer are you using ; have you programmed that 16F88 chip before without any problems ?


    btw - do you have any links / article text to those programs, I know someone who is also interested in railway projects /dcc etc
    So you think if I use pickit2 it would work just fine ?
    or I have to add those configuration bits anyway ?
    sorry for asking alot I just don't know how to do that microcontroller programming cause its not really my specialization
    and sure yeah I can send you this railway article and I guess u already have its code with the LED Strobe code



    •   Alt12th February 2013, 01:22

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 20,490, Level: 34
    Achievements:
    7 years registered

    Join Date
    May 2009
    Location
    Prime Meridian
    Posts
    3,056
    Helped
    892 / 892
    Points
    20,490
    Level
    34

    Re: PIC16F88-I/P programming problem

    Hi,

    The best way will be to Build the projects in MPlab to create a new .hex files.

    As you can see from the screenshots the Config parameter CP_ALL is specified, this protects the code from people pirating the code from the chip.
    However it can sometimes cause problems when reprogramming the chip so it might be better to turn it off by CP_OFF.

    You do not say what programmer you are using, but if it works you should have no problem programming any .hex file.
    Billyboy.hex is just the rebuilt and renamed LedStrobe program code

    If you have any text / circuit details/ links of the projects they would be appreciated.
    ( you can PM the details if you do not want to broadcast them)



  5. #5
    Newbie level 4
    Points: 35, Level: 1

    Join Date
    Feb 2013
    Posts
    5
    Helped
    0 / 0
    Points
    35
    Level
    1

    Re: PIC16F88-I/P programming problem

    Quote Originally Posted by wp100 View Post
    Hi,

    The best way will be to Build the projects in MPlab to create a new .hex files.

    As you can see from the screenshots the Config parameter CP_ALL is specified, this protects the code from people pirating the code from the chip.
    However it can sometimes cause problems when reprogramming the chip so it might be better to turn it off by CP_OFF.

    You do not say what programmer you are using, but if it works you should have no problem programming any .hex file.
    Billyboy.hex is just the rebuilt and renamed LedStrobe program code

    If you have any text / circuit details/ links of the projects they would be appreciated.
    ( you can PM the details if you do not want to broadcast them)
    thanks alot for your help
    here is the railway power project, I have alot of projects like this so if u like it just tell me to send u more



--[[ ]]--