Post Created date
SAM D10 SPI too slow
Did you make sure the sercom was disabled before trying to configure SPI?     The following registers are enable-protected, meaning that they can only be written when...
Sunday, 5 July 2020 - 06:57
WCH MCS-51(8051) USB MCUs
>> gcc has gotten stupider, not smarter somewhere after avr-gcc 7.3. That's an interesting comment, can you say why or what has been made worse compared to earlier releases...
Saturday, 4 July 2020 - 08:16
Clock sources/options for ATTINY1616
Another bad thing about external oscillators is that they tend to be much more power-hungry than the internal oscillators of micro microcontrollers (the ones that have internal...
Saturday, 4 July 2020 - 00:21
WCH MCS-51(8051) USB MCUs
the 8051 is not just an instruction set, it's an architecture.   Well, more or less, anyway.  The original 8051 had  the 4 IO Ports, UART, and three timers, and...
Friday, 3 July 2020 - 03:04
Clock sources/options for ATTINY1616
If the peripheral clock is 16MHz and BAUD is 1Mbps, the fractional baud rate generator will not work. Doesn't it?  With CLK2X set (8 samples/bit instead of 16, equivalent to...
Thursday, 2 July 2020 - 08:57
Does the AVR chip on Arduino Uno constantly run instructions?
The fact that a microcontroller is always running is one of the reasons that Arduino implemented the "loop()" function instead of just using "main()"...   With avr-gcc, if...
Thursday, 2 July 2020 - 01:17
Trying to import an adruino project into Atmel Studio 7 but the "fastled" code won't compile.
Is the "Import Arduino Sketch" controlled from some sort of script that users could potentially fix? It doesn't seem to work very well, for a lot of "Arduino-like" boards (doesn't...
Thursday, 2 July 2020 - 01:07
SAM D10 SPI too slow
void Data16BitsSend(uint16_t data) I would expect that spi_transceive_buffer_job() has significant overhead, and your code would go MUCH faster if you set things up so that it...
Thursday, 2 July 2020 - 01:03
(Very) slow _delay_ms() w/ XC8 and ATmega4809
Use the rtc for delay(), and you might never notice that the prescaler is wrong!  
Sunday, 28 June 2020 - 09:52
AVR GCC +700% Code Size
I started by recreating Lukasz' Blink with Timer OVF project, with just some slight adjustments and I was surprised that AVR-GCC compiled it to ~200+ bytes.  I rewrote the '...
Saturday, 27 June 2020 - 23:56
0xffffff error on bootloader burn - ATMEGA328P-AU
burning the bootloader will set the fuses for 16Mhz. Clearly, this won't work if the crystal is actually 8MHz.  I'm pretty sure the fuse settings for an 8MHz crystal...
Friday, 26 June 2020 - 22:37
megaAVR 0-series
Product Change Notification - SYST-19FKNH955 - 22 Jun 2020 - Data Sheet - ATmega4808/4809 Data Sheet "Removed the content of the Instruction Set Summary section. This section now...
Thursday, 25 June 2020 - 01:10

Pages