Hein (fub) wrote,

  • 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...

  • Gundam

    My love for the mecha anime genre is well-documented on this blog and elsewhere. And of course, Gundam is the granddaddy of the genre, such a huge…

  • Kakiage

    I’ve been on a manga-reading spree these days. It all started out with Dungeon Meshi, which merges my interest in RPGs and dungeon delving…

  • Anime movie introduction

    Two weeks back, a colleague wore a shirt with a text that also included ‘NEO-TOKYO’. I asked him if this was a reference to Akira, and…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded