Post Created date
basic RLE coder stuck in loop??
I'm unfamiliar with malloc() because I never have used it.  But I believe that: struct size24 * outBuffer = safe_malloc(1850000);means to allocate 1, 850, 000 units of free...
Wednesday, 20 November 2019 - 00:52
Atmega instead PC program
Are you using an older PS2 keyboard  (purple connector - 6 pins), or a newer USB keyboard?   The PS2 keyboard is straightforward, but the USB is difficult.
Saturday, 16 November 2019 - 19:51
Filtering receive data on UART echo
The WS2812 has very specific and exacting timing requirements.  Basically for each of the 24 bits (8 red, 8 blue, 8 green) the data line is logic high for 0.4 microseconds,...
Wednesday, 13 November 2019 - 22:10
Filtering receive data on UART echo
My MIDI parser code in #4 works well.  Each MIDI-IN byte gets placed into an SRAM buffer.  This buffer has to be about 16 bytes in order to handle MIDI SysEx messages...
Tuesday, 12 November 2019 - 00:32
Solved: atmega328p Pro mini strange behaviour
If the USBASP supplied +5 to the system's Vcc bus, then the whole AVR system would have been running at that +5 Vcc.  Which is within AVR's voltage range.  The only...
Monday, 11 November 2019 - 23:34
Parasite noise on atmega328p outputs
You show all the output lines of the HT16K33 connected together.  If the HT is causing the problems, take it out of the circuit.  Why do you need 128 LED (always...
Monday, 11 November 2019 - 20:31
variable sine wave generation
The variable "counter" never gets beyond 255.  So when "counter" gets shifted right eight times, it always becomes zero.  The value sine_255[ 0] is always sent to PORTB...
Monday, 11 November 2019 - 18:36
Setting the pin high before making it an output ensures that it will be high logic (as a result of the pull-up resistor being on) when made an output.   There will be no...
Friday, 8 November 2019 - 23:52
hidden gem
I would avoid this construction (x-->0) because the symbols are too close to the syntax used for accessing a structure member when using a pointer to the structure: x->0:...
Thursday, 7 November 2019 - 00:44
Help arround USART communication
Test both parts of the code (send and receive from PC) separately to see if both are working.   Add a single LED (with a 150-1000 ohm resistor to limit the brightness current...
Thursday, 7 November 2019 - 00:24
Help with serial communication in atmega328p using assembly
Please don't mind me asking, because you haven't told us:   Is this a real full-sized licensed car that carries human passengers on a public road?   Or is this a small...
Monday, 4 November 2019 - 00:32
Microchip trying to wean people off Arduino to Atmel Studio?
Arduino started as CPU teaching systems called "Wiring" and "Processing".   These are two examples of using a English present participle as a proper name: something that...
Friday, 1 November 2019 - 22:23