Type in the full discussion title or a part of it.
Discussion Title Created date
picoUART v1.0 with PCINT receive
After multiple requests for a non-blocking interrupt-driven receive function (and seeing a couple hack jobs where someone tried plugging my code into an ISR), I've released a new...
Friday, 8 May 2020 - 01:45
Template for Arduino libraries using archives?
I recently figured out that by default Arduino only creates an archive (.a) for the core, and not for any libraries.  Despite almost all C developers being familiar with the...
Friday, 1 May 2020 - 14:34
Measuring AVR interrupt latency
Since I released my first AVR bit-bang UART several years ago, I've had a number of requests for interrupt-driven receive.   For the best accuracy, an interrupt-driven bit-...
Monday, 27 April 2020 - 21:57
attiny sleep wakeup time much longer than spec
I've been testing interrupt latency on t13s and t85s, and the datasheet numbers are way off.  Table 6-5 (t13) & 6-7 (t85) both state 6 CK for start-up time from power...
Thursday, 23 April 2020 - 00:51
t13 and tx5 PWM datasheet contradictions
http://ww1.microchip.com/downloa... Section 11.7.3 says: "In non-inverting Compare Output mode, the Output Compare (OC0x) is cleared on the Compare Match between TCNT0 and OCR0x,...
Wednesday, 22 April 2020 - 01:47
TM1638NR: a small TM1638 library
This header-only library takes about half the code size of the smallest library I could find  (TM1638lite) before I wrote my own. https://github.com/nerdralph/TM1...  
Thursday, 16 April 2020 - 00:42
debugSerial: a tiny asynchronous serial output library
A small subset of the most common Arduino print methods are supported.  The primary design goal was the smallest possible code size, for use on tiny AVRs like the t13. https...
Wednesday, 15 April 2020 - 00:07
trying to get avr-gcc to optimize static variables
With -Os -flto, avr-gcc 5.4.0 fails to optimize statics that are only ever referenced locally. i.e.   #include <avr/io.h> static uint8_t count = 0; int main(void...
Tuesday, 14 April 2020 - 15:03
fastest ever AVR bit-bang UART: 2 cycles/bit
I'm not sure what it's good for, but I wrote a bit-bang UART that runs at half the AVR clock rate.  I tested it with an ATtiny running at 4Mhz, and had no receive errors at...
Wednesday, 8 April 2020 - 20:23
strange t13A from AliExpress
I've  recently been doing a lot of testing on a t13A that I bought a few years ago.  I had done some basic testing (blink an LED) when I first received it to confirm I...
Wednesday, 25 March 2020 - 16:44
2Mbps bit-bang UART on a 10Mhz ATtiny13
Most of the AVR bit-bang UARTs I've written require a minimum of 7 cycles/bit (without unrolling).  Yesterday I had an idea to cut the loop time to 5 cycles, which allows for...
Monday, 23 March 2020 - 16:04
detecting compile-time integer constants with gcc
I'm trying to detect compile-time integer constants so I can have some code fail with an error when given an argument that cannot be determined at compile time. ...
Thursday, 19 March 2020 - 19:21

Pages