Post Created date
gcc vs XC8 for AVR
avr-gcc is the clear optimization winner here. Also avr-gcc has some flags like flto and others which help to sometimes squeeze size even smaller.
Saturday, 16 January 2021 - 05:43
Using battery and no switch
Assuming your trying to find a way to power off with no battery draw. Back in the early 90's I did this with a few JFET and mosfets, and capacitor to debounce the gates, both...
Friday, 15 January 2021 - 05:39
Bypass caps 'Hands on demo' help ...
I once had a stepper motor "light up an led" that was simply running through the same wire harness. Had to shunt the led leads with a resistor to prevent the motor current...
Friday, 15 January 2021 - 05:29
Bypass caps 'Hands on demo' help ...
A 0.1uF is a very standard recommendation by most MCU companies to be placed close to the MCU and is a bare minimum in my opinion, it assumes a clean vcc supply input. I typically...
Friday, 15 January 2021 - 05:18
Electrodragon in China - Any experiences?
I have ordered parts there as well. No problems with my orders
Thursday, 14 January 2021 - 04:50
Come Join Us (MPLAB Now Supports AVRs)
In linux I have been using command line for avr development for years now. Any text editor, xed or geany, is fine for writing C or asm files. Once you get used to it, it is...
Tuesday, 12 January 2021 - 02:07
EEPROM variable reset to default value after MCU restart
More tips... never use eeprom location 0 because it can corrupt at bootup on legacy AVR, and always enable BOD.
Sunday, 10 January 2021 - 04:18
Unable to build any ATTiny1616 project
You need to download the Packs, are you using Linux or Windows?
Friday, 8 January 2021 - 23:26
main function of an AVR program
Sorry I was not clear, I did not misunderstand, I was simply stating, in your main loop, since you should never allow main to return anyway, declare it void with no return...
Tuesday, 5 January 2021 - 14:37
Brief Update: AVR Debugger
I hear you, GUI development is not my fav either. The gdb might only be core simulation, I've only done a little with it. I edited my previous post with a couple tool ideas,...
Tuesday, 5 January 2021 - 04:28
Brief Update: AVR Debugger
This GUI got me thinking about a related matter... Did you know the linux toolchain command line debugger has an avr simulator built in?, it is command line, and not really...
Tuesday, 5 January 2021 - 04:07
main function of an AVR program
You can declare main as "no return" it will save some space in flash, __attribute__ ((noreturn))
Tuesday, 5 January 2021 - 03:57