Hein (fub) wrote,
Hein
fub

  • Mood:

Pseudo-I2C

After some experimentation, I have found that a delay-loop counting backwards from 127 to 0 is enough delay between changes in the clock line to reliably send a byte from one PIC to the other. This means that I could use the Timer-overflow-interrupt to send the individual bits -- two overflows per bit.
This means that I could (theoretically) send 244 bytes per second on to the next PIC. Sure, 244 baud is horribly slow for any sort of high-throughput data, but it is more than enough for my purposes. I think I would only need to send two bytes per 'light' that enters the next display segment, and there won't be a hundred of 'lights' travelling at such speeds that they will cross over into the next segment within a second.

I am pleased.
Tags: electronics project, random led rail
Subscribe

  • New bank

    Last week, the news broke that my bank (ING) is going to scan through your statements to give you personalised advertisements. (Link is in Dutch,…

  • (no subject)

    Our tax situations are so un-special it almost hurts. Almost. Because we can skip about 95% of the forms. :)

  • Mock Chicken

    The Judge Dredd comics are an interesting artefact of the 1980s: it’s what British comic writers thought how the US urban landscape would…

  • 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