Ralph Doncaster
Ralph Doncaster
The mod is very simple. I'm doing some pi stuff right now, so I probably won't have time to test the change today. ``` ldi ZL, lo8(wdt_millis_counter) _reload: ld r24,...
> > > Actually MicroController was worked for Blink Project . After I am trying to upload a different sketck for working with utrasonic sensor, I changed some settings like...
I've never seen a case where adding the .1uF cap has solved a problem for a 5V powered AVR. While it's not a bad idea to use one, it is...
I never used pulseIn() before, so when you first posted this and tagged me I didn't pay any attention to it. Now that I've taken a closer look, I see...
I can see the benefit of having the function return uS to maintain API compatibility with the Arduino core. However what is the necessity of supporting minute-long pulses? From a...
I think you are mistaken. For example, Wiring's digitalWrite() is much faster than Arduino's, without any apparent compatibility problems. Even with the official Arduino, the speed of digital IO can...
I'd keep the digitalWrite calls in my latest version of shiftIn, and use the digitalWrite/pinWrite code from Wiring: https://github.com/WiringProject/Wiring/blob/master/framework/cores/AVR8Bit/WDigital.h Like MicroCore, Wiring's digitalWrite compiles to a single sbi or cbi...
Yes. Here's the asm for shiftIn when compiled with MicroCore: ``` 46: 88 e0 ldi r24, 0x08 ; 8 48: c0 e0 ldi r28, 0x00 ; 0 4a: c0 9a...
Here's a version of shiftOut I just whipped up that would work for both MiniCore and MicroCore. It's about half the speed of the optimized shiftOut I wrote for MicroCore,...
The function already isn't atomic, and it is clearly documented as such: "The gpio_toggle() operation is the only GPIO port operation which is not atomic." On Fri, Dec 4, 2020,...