Menu

Minor sw fixes

Jam
2015-05-06
2015-05-11
  • Jam

    Jam - 2015-05-06

    Thanks for the great work, Alberto.
    I have a 18F2455 chip that is too small for a Pickit but your firmware fits into it nicely.
    So I've put together my programmer on a piece of breadboard during the weekend and it works fine without any tweaking.

    Using the software part on linux I came across some minor issues.

    • OPgui allows setting DC/DC voltage higher than 14 V on the I/O tab using the slider
      --> as the ADC is limited to 14 V in such case the controller pushes the converter to the highest possible voltage thus potentially endangering the Q4 and the output filters caps.

    • OPgui exits with a segfault on normal termination and doesn't remember latest settings
      --> the reason is that the $HOME/.opgui directory not writable as it is created with wrong modes

                   mkdir(config_dir, 0x0755);  // should be 0755
    
    also homedir shouldn't be printed on exit
    
                   printf(homedir);
    
    • OP doesn't quit if programmer wasn't found.
      --> check is not strict enough
           if(DeviceDetected<0) exit(1); // should be <=
    

    Zoltan

     
  • Alberto Maccioni

    No problem regarding the high voltage: the boost converter is not able to go past 13.5V, due to various losses, and in any case there is no damage on Q4 up to 30V at least.
    I will correct the other problems, thanks.
    Just one remark: permission is supposed to be octal I think, so 755 should translate to 493d or 0x1ED, right?

     
  • Jam

    Jam - 2015-05-08

    Yes, it's octal 755, which is 0755 = 493d = 0x1ed

    I think it's better not let the user drive the converter into an uncontrolled mode out of your nice closed loop solution. Anyway, it's just a minor change in opgui.c

           DCDC_voltage=gtk_hscale_new_with_range(5,15,0.1); // 15 -> 13.8
    



    The 1 Hz blinking LED was a bit annoying for me, kind of always saying "attention, attention". I changed it to solid on by changing the bold values in this line of the hex file.

    :1000B0000101005D06E12E0E0001EB5D02E3898483

     
  • Jam

    Jam - 2015-05-11

    Here is my programmer. Only the PIC HV part is implemented.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.