I'm developing a small logic analyzer with 7 inputs. My target device is an ATmega168 with a 20MHz clock rate. To detect logic changes I use pin change interrupts. ...
Just a basic question... For arduino/avr/ATMega328 I find lots of examples using Timer1 (there's even a whole library for it) but rarely any that utilize Timer0 (or Timer2). Now, I know that using ...
I'm multiplexing 32 LEDs in a 4:8 configuration on an ATMega328 and am trying to dim them with what is probably a completely naive understanding of PWM. Note: I'm multiplexing them directly with 12 ...
Trying to have Fast PWM mode when TOP == ORCA. Works fine with OCA toggle (measuring correct frequency), but doesn't work in ...
I've got a project that uses an Arduino with the LadyAda audio shield and a multiplexer to play sounds in response to button presses. I'm planning on using a MAX667 voltage regulator which has a low ...
I receive data on the UART, using an 8-bit atmega, usually around 5 bytes connected, then a long pause. The total time for one byte (with start+stop bits, I don't use parity) is 160 us. However, the ...
I need to be able to choose between two Arduino apps running on an atmega 1280 (megaavr) at boot time. Therefore I need to move one of those apps to a different location in program memory, and I need ...
I am trying to utilize an ATMEGA2560 and it's interrupt. I have some code that must execute until a button is pressed at which time I need the code to stop and wait for another button press to ...