Hein (fub) wrote,
Hein
fub

  • Mood:

Adventures with the PIC

So, after some tweaking, the morse timing works correctly (thanks in no small part to kees_s). You can send a message via a modem program, and the PIC flashes it's tiny LED to show the message in morse code. Meanwhile, the morse code itself is sent back to the PC, so you can see what it is it's flashing.

That all works fine and dandy -- but the PIC's receive buffer is only 2 characters big. So if you enter another three characters while the PIC is busy with flashing the morse code of a preceding character, the thing blows up. Figuratively speaking, of course...
So now I'm looking for a way to create a buffer of some sort. There are some code samples -- I will have to trap receive interrupts, which requires quite a bit of re-coding...
Subscribe

  • Update

    Wow, what with one thing and another, I haven’t posted on here in a month! Time to give a short update on what’s been happening.…

  • Final RPG-a-Day: Thank

    The last prompt for RPG-a-Day this year is ‘Thank’. If you have read every entry of this year’s RPG-a-Day, then I certainly…

  • Next-to-last RPG-a-Day: Mention

    Today’s prompt is ‘Mention’. I guess this is where I mention people I look up to, or websites I frequent? Ok, here’s…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments