Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: V4 PWM firmware update

  1. #1
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221

    V4 PWM firmware update

    Firmware Update
    Download:

    http://fusioncontrolcentre.com/MDX/v4update.zip

    1. Hold down the red button, plug in USB/power
    2. Run PDFSUSB.exe
    3. Pick the board from the drop-down list
    4. Open the included hex file
    5. Program
    6. Execute
    7. Test with MDX or with Sample VB App


    MDX PWM

    Software PWM: XX is in milliseconds and YY is in percent on-time
    <iochannel id="Digital Output 0" port="15" brain="my fusion brain 0" type="digital_output">
    <defaults defaultstate="off"></defaults>
    <options mode="standard">
    <pulse duty_cycle="XX" period="YY"></pulse>
    </options>
    </iochannel>


    Hardware PWM: XX is between 0 and 127 (off to on)
    <iochannel id="Digital Output 0" port="15" brain="my fusion brain 0" type="digital_output">
    <defaults defaultstate="off"></defaults>
    <options mode="pwm">
    <pulse duty_cycle="XX"></pulse>
    </options>
    </iochannel>




    Sample non-MDX App to Control FB

    Move the sliders back and forth.


    Let me know if there's any issues.

  2. #2
    Low Bitrate
    Join Date
    Sep 2007
    Location
    Dawson, IL
    Posts
    108
    Cant get to it, wants user name/password - used email addy/password used on your site and it wont let me in, also tried screen name/password from here - how can I get to it

    Thx
    If anyone gives me a rev - I give them the Bird

  3. #3
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    oh woops

    try now

  4. #4
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    When I boot up the FB with the red button held down, my machine recognizes it as a v3 board, and outputs 9 and 10 oscillate at about 5 Hz. The PDFSUSB utility doesn't show anything in the drop down list.

  5. #5
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Should show this in device manager

    USB\VID_04D8&PID_000B\xxxxxxxxxxxxxxxxxxx
    With this as a driver:

    mchpusb.sys

  6. #6
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221

  7. #7
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Ah, much better. After I booted up the PIC in firmware mode (with the two oscillating outputs), I went into device manager and updated the driver to the bootloader driver. Once that was done, the update utility saw the device, and the firmware flash went exactly as expected. The update took only a couple seconds, and the PIC rebooted as a v4 FB.

    Now using FBDemo to check it out, and the sliders do control the brightness of the LEDs. However, the buttons no longer turn the outputs on and off. What changed in the byte stream? Are you using all 8 bits of the first byte for the PWM value, or are you only using 7 like the earlier details indicated?

  8. #8
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    the buttons turn them on now. To be off, the slider needs to be full left, and the output off. does it work like that for you?

  9. #9
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    According to the data stream spec posted by 2k1, the first 7 bits are for PWM value (controlled by the slider), and the last bit is the on/off value, (controlled by the red/green button). Based on what I see, it looks like you are using all 8 bits for PWM value.

    If that is the case, what is now in the second byte? There was a bit there to toggle between on/off mode and PWM mode.

    I intended for the buttons to turn the output on/off, regardless of what the slider is set to.

  10. #10
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    the buttons turning the output on/off regardless of the slider doesn't make sense. If that's true, and you set the output to off, slider to full, the output would still stay off.

    the way the code works is:

    Output_PWM_Value = USB bytestream value *2 (this would be 255 maximum. 255 means full on.)

    then there's a section that does this

    if USB_button_bit = 1 then Output_PWM_Value =255

    next

    run set Output_PWM_Values to buffer

    then every 42uS, an interrupt fires that compares a counter to the buffer value, and adjusts the state of all outputs accordingly

Page 1 of 3 123 LastLast

Similar Threads

  1. 95 Lexus SC300 - 0l33l's "Project SC300"
    By 0l33l in forum Worklogs
    Replies: 552
    Last Post: 01-14-2010, 07:55 AM
  2. Keyboard and Bluetooth Dongle Firmware Update
    By DjBac in forum Input Devices
    Replies: 1
    Last Post: 08-24-2009, 06:22 PM
  3. Centrafuse 1.45 Update
    By veetid in forum Centrafuse
    Replies: 59
    Last Post: 12-13-2007, 09:27 AM
  4. Centrafuse 1.44 Update
    By veetid in forum Centrafuse
    Replies: 22
    Last Post: 12-08-2007, 04:59 PM
  5. Centrafuse 1.42 Update
    By veetid in forum Centrafuse
    Replies: 37
    Last Post: 11-25-2007, 03:41 PM

Bookmarks

Posting Permissions

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