Hein (fub) wrote,

  • Mood:

EEPROM progress

The serial buffer on the PIC is only 2 bytes large, and all the processing is done in the interrupt that is triggered when a byte is received. If the PC would keep sending, bytes would get lost due to buffer overflows -- the processing of a single byte is fast, but not that fast. Which is why the PIC echos every byte back to the PC at the end of processing -- and the PC waits until it receives input before it sends the next byte.

It turned out that I had not one but two procedures in place that processed incoming bytes independently from my sending routine -- and because the echo'd bytes never reached my sending routine, a deadlock was created.
I cleaned up those two routines, and now I can sequentially write a 64Kbit (that's 8 kilobytes!) EEPROM without a hitch.

I also added a preliminary sequential reading routine, which I will have to modify a bit so that I can read the contents of a whole EEPROM back into the PC-side of things.

  • More chocolate

    Our local supply of melting chocolate has only dark chocolate, so we went on an expedition to get the two other types as well: milk chocolate and…

  • More adventures in chocolate

    My new chocolate molds arrived, so I was aching to do something with 'em. I followed the suggestion of turnsunwise and steeped tea in warm…

  • Be prepared!

    Easter is almost upon us -- which means another invasion of chocolate bunnies. We have to defend ourselves from this cute and sweet attack! A Dutch…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded