picoUART v1.0 with PCINT receive

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

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 version of picoUART with optional support for PCINT triggered receive.

The timing is tuned for the PCINT latency assuming the interrupt happens half-way during a 2-cycle instruction (sbi/cbi, ld/st, push/pop, ...).

For now, only AVRs with PCMSK in the sbi/cbi space are supported.  picoUART must have exclusive use of PCINT0.



It's written in the Arduino library structure, but doesn't use any of the Arduino API so it can easily be used with just avr-libc.


I have no special talents.  I am only passionately curious. - Albert Einstein


Last Edited: Fri. May 8, 2020 - 01:46 AM