May. 2nd, 2014

Longer Walk

May. 2nd, 2014 02:48 pm
sweh: (Dangermouse)
The weather seemed OK (turned out to be a little windy) so I decided to do a longer walk. I estimated this would be 4.4miles. No store stops this time, so non-stop walking (I had to wait at one set of lights for maybe 15 seconds).



Stats: 4.33 miles, moving time 59:42, Av moving speed 4.35mph, max speed 5mph.

Hmm, I wonder if that max speed was when wind was behind me. I definitely didn't do any running!
sweh: (Vroomba)
So BBC Econet. Let's say it runs at 400Khz. (It varies from 200 to 800; let's say 400khz). There is a clock+/clock- signal and a data+/data- signal.

At 400Khz I have 2.5uS to determine if the balanced signals match, and if the data bit coming in hasn't collided with the clock. And that's not even including attempts to write data.

My AVR is clocked at 16Mhz. Here's a simple loop that toggles a pin (which just happens to connected to the LED)
void loop() {
  boolean x=false;
  int y;
  while(1)
  {
    x=!x;
    if (x) { y=HIGH; } else { y=LOW;}
    digitalWrite(LED_BUILTIN,y);
  }
}

Sticking a scope on this I get a 70Khz square wave. That is clearly not quick enough. Even with optimisation (replacing digitalWrite with inline assembler) I doubt I'll get to 100Khz. And that's not doing anything; just toggling.

I'm actually disappointed!

December 2025

S M T W T F S
 1 23456
78910 111213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 19th, 2025 03:43 pm
Powered by Dreamwidth Studios