Post Created date
assembly code in C
Is it possible to write a code in inline-assembly that allows reading a flexible number of bytes from the bootloader memory while residing inside it?   YES!  Anything is...
Monday, 30 November 2020 - 16:57
Smartelex's Atmega32 Development Board
You can't use this development board with an external RS-232 because the one USART on the the Mega32 AVR is being used by the USB serial interface (the CD340 IC).   This...
Monday, 30 November 2020 - 16:34
[HARD] Atmega328 Hardware Design - The Right Way
I use a standard Arduino Nano module board with an 8-pin wide header pin strip soldered across the tops of the VIA holes for A2 to GND. Then this module plugs into an Arduino-...
Saturday, 28 November 2020 - 14:20
Start C coding 328pb or 4809
Between the Mega328pb and the Mega4809 definitely go with the Mega4809.  Especially coming from Arduino UNO or Nano.  The 328pb is the same IC that is in the Arduino...
Thursday, 26 November 2020 - 23:17
extreme burner problem
 I recommend that you stop using this stupid program called: extreme burner.  The people who wrote this don't seem to know what is going on with the flashing process of...
Monday, 23 November 2020 - 20:28
4 encoders - is 8mhz not fast enough?
The AVR CPU executes at millions of instructions per second.  It can handle hundreds of encoders, "at the same time".   I recommend putting resistors and capacitors on...
Sunday, 22 November 2020 - 22:00
Split from: n00b questions
Everything in embedded systems development is incredibly complicated,you're right.   But (almost) everything makes sense when you understand what is going on.  If...
Sunday, 22 November 2020 - 21:35
How to call optiboot_x from application
I do not understand why the main application code would be calling the bootloader.  On reset, the bootloader configures the AVR USART and checks to see if any data is...
Saturday, 21 November 2020 - 18:56
Selection of a suitable microcontroller
If you are a beginner then I suggest using an Arduino UNO or Nano.   These are CPU module boards based on the Atmel/Microchip AVR Mega328P.  They use the PC's USB...
Friday, 20 November 2020 - 20:55
AVR Assembler
I use avrasm2.exe with an editor that allows quick access to the command line.  Then I have the assembler call in a single-line batch file:a.bat.  The line in the batch...
Friday, 20 November 2020 - 20:43
Simple timer with 20mHz clock
I would also recommend using an 8-bit timer with a prescaler of 256.   I always use the overflow interrupt with timers, for no other reason than it works and I know how...
Friday, 20 November 2020 - 20:28
Selecting a "flavor" or something?
This is the best overview of the Microchip XMEGA/ newTiny code writing style:
Monday, 16 November 2020 - 00:01