Main board 18F14K50 USB Firmware

Announce wiki articles, source code or projects here

Main board 18F14K50 USB Firmware

Postby bitfogav » Sun May 19, 2013 9:54 am

Ive just added a New Article USB Interface Firmware Code is ported using Swordfish. I Hope that someone will find it useful. :)
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: Main board 18F14K50 USB Firmware

Postby ljohnway » Wed Jul 17, 2013 6:21 am

The ZIP file I downloaded (several times) appears corrupt. Please could you re-post?
Thanks.
ljohnway
 
Posts: 1
Joined: Wed Jul 17, 2013 6:18 am

Re: Main board 18F14K50 USB Firmware

Postby David John Barker » Wed Jul 17, 2013 7:58 am

The file has been uploaded - please try again...
User avatar
David John Barker
 
Posts: 485
Joined: Thu Nov 08, 2012 12:21 pm

Re: Main board 18F14K50 USB Firmware

Postby Jerry Messina » Mon Nov 18, 2013 4:33 pm

I noticed a couple of issues with the code while using it.

First, it looks like the led events are backwards. The events turn off different leds than the code turns on.
Change:
Code: Select all
' OnTimer1 event...
Event OnTimer1()
   Timer.Items(0).Interval = ledOnTime
   Low(txLED)
End Event

' OnTimer2 event...
Event OnTimer2()
   Timer.Items(1).Interval = ledOnTime
   Low(rxLED)
End Event

To:
Code: Select all
' OnTimer1 event... (CDC.DataAvailable)
Event OnTimer1()
   Timer.Items(0).Interval = ledOnTime
   Low(rxLED)      ' was txLED
End Event

' OnTimer2 event... (USART.DataAvailable)
Event OnTimer2()
   Timer.Items(1).Interval = ledOnTime
   Low(txLED)      ' was rxLED
End Event


I was also having a problem getting a consistent 100ms pulse out of the RESET line... I measured anywhere from 2ms-88ms in 10 tries.
I had a lot better luck with the following
Change:
Code: Select all
' ISRTimer module - used for blinky LEDs...
#option TIMER_AVAILABLE = 3
Include "ISRTimer.bas"

To:
Code: Select all
' ISRTimer module - used for blinky LEDs...
#option TIMER_AVAILABLE = 3
' added to ensure proper timing
#option TIMER_AUTO_RELOAD = FALSE
Include "ISRTimer.bas"
Jerry Messina
 
Posts: 278
Joined: Thu Feb 14, 2013 10:16 am

Re: Main board 18F14K50 USB Firmware

Postby David John Barker » Mon Nov 18, 2013 6:10 pm

Thanks for that Jerry, I've amended the wiki entries...
User avatar
David John Barker
 
Posts: 485
Joined: Thu Nov 08, 2012 12:21 pm

Re: Main board 18F14K50 USB Firmware

Postby bitfogav » Tue Nov 19, 2013 12:17 pm

Thank you Jerry, I've updated the zip file on the wiki.
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: Main board 18F14K50 USB Firmware

Postby Jerry Messina » Thu Nov 21, 2013 2:52 pm

And now it's my turn.

See http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1784 for a number of important bug fixes to the SF USB v142 lib
Jerry Messina
 
Posts: 278
Joined: Thu Feb 14, 2013 10:16 am


Return to Firewing Wiki

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x