Post Created date
megaAVR to AVR migration
Um...  Looks like "__PIO2" is used some places  (IAR?) math.h as "Pi over 2", and the more common symbol is:   /** The constant \a pi/2. */ #define M_PI_2 1....
Wednesday, 6 July 2022 - 07:06
SAME54 vs UC3
 The unavoidable part of interrupt processing on ARM CM4 should be about 24 cycles (assuming an unrealistic 0 wait states) - half on entry and half on exit.  More if you...
Tuesday, 5 July 2022 - 07:05
Bootloading problem with Atmega328 - pu
I forgot to include the icsp pins The ICSP pins are also "normal IO" pins (PB3, PB4, PB5, RESET), so they're probably available on your board somewhere.  Just connect them...
Tuesday, 5 July 2022 - 06:55
SAME54 vs UC3
Should work.  Are you remembering to reset the interruot flag before the return from the isr?  I think there are fewer “reading the xyz register automatically...
Monday, 4 July 2022 - 05:03
ATtiny* Does interrupt flag get set when interrupt disabled?
I think they meant “will the interrupt flag for a peripheral be set BY THE PERIPHERAL, even if the interrupt is turned off at the cpu side.” (this is common on some other...
Monday, 4 July 2022 - 04:59
How to flash Arduino produced .hex file to my ATMEGA1284P chip?
It should be OK.  I'm not entirely sure that the USBTiny supports 128k parts, but I'll assume that your initial test program was smaller. Note that uploading a .hex file to a...
Tuesday, 28 June 2022 - 22:56
avr-c++ virtual functions don't get called
I’ll note that Arduino makes use of virtual functions, and doesn’t seem to have problems.  
Tuesday, 28 June 2022 - 08:27
What's the difference between BRCS,BRCC and BRLO, BRSH commands?
it is *much* easier to write spaghetti code in assembly than almost any other option   You just need a fancier package of assembly macros.  Like
Thursday, 23 June 2022 - 07:33
The future is... $0.01 CPUs made of plastic
They'd better be at least 8bits and FAR less than $0.01, since you can already buy $0.03 8bit microcontrollers that look more-or-less l illke a PIC16C chip...  
Thursday, 23 June 2022 - 00:33
What's the difference between BRCS,BRCC and BRLO, BRSH commands?
(But it's FUNNY how some vendors will include such aliases to make their instruction set look "more complete" and other vendors will explicitly omit them to make their instruction...
Thursday, 23 June 2022 - 00:30
What are the AVR28DA128 AVR32DA128 AVR48DA128 AVR64DA128 ??
Wednesday, 22 June 2022 - 20:08
What are the AVR28DA128 AVR32DA128 AVR48DA128 AVR64DA128 ??
> [python program] Thank you for the nice example gchapman, maybe someone will find it useful. I only program in assembler Python doesn't run on AVRs, and is unlikely to ever...
Wednesday, 22 June 2022 - 20:07