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
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.
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
oh woops
try now
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.
Should show this in device manager
USB\VID_04D8&PID_000B\xxxxxxxxxxxxxxxxxxx
With this as a driver:
mchpusb.sys
bootloader driver:
http://fusioncontrolcentre.com/MDX/Release.zip
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?
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?
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.
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
Bookmarks