SPI and optimization? The most you should have to do is:
SPDR;This will force a read and discard the results as the definition of SPDR contains 'volatile'.
Saturday, 7 March 2020 - 18:27
Drawing Korean glyphs barnacle wrote:Christop, go and stand in the corner and think about your sins! :)
In Christop's defense I've seen Cliff referred to as 'dawson' more than once here at...
Saturday, 7 March 2020 - 14:27
UART/USB Google suggests that a EvB 5.1 with ATmega644p has a 16MHz crystal, so try with F_CPU=16000000UL.
Current AVR code/data seeking disassembler(s)? techedge wrote:I now find myself in the situation of wanting to disassemble my own AVR code I wrote 20 years ago - yes, I have the sources for these binaries, but it's not in the...
Can we find out what is the size of micro with c program? El Tangas wrote:As mentioned, you can get some hints. Using sizeof(int) was already mentioned, another important hint is sizeof(void*).
You might also get some additional hints by...
Wednesday, 4 March 2020 - 00:51
Variable PWM current measure ? This OP is a word for word copy & paste of: https://www.avrfreaks.net/forum/variable-pwm-current-measure
Configuration Change Protection (CCP) clawson wrote:Oh and depending on context you might want to consider the possibility of being interrupted.
The Attiny817 data sheet says:
Now this is for the...
Sunday, 23 February 2020 - 00:50
Array size stack allocation overflow? ka7ehk wrote:The largest allowable index is the size of the buffer minus 1 because it starts at index = 0.
True, but the OP's for loop was written correctly. The loop will exit...
Wednesday, 19 February 2020 - 23:07
Powering eeprom/sdc card from GPIO and powring down AVR I've used these: https://www.idt.com/us/en/products/memory-logic/bus-switch/33v-cbtlv-general-purpose-bus-switch/74cbtlv3244-low-voltage-octal-bus-switch
with good effect to...
The most you should have to do is: SPDR;This will force a read and discard the results as the definition of SPDR contains 'volatile'.
barnacle wrote:Christop, go and stand in the corner and think about your sins! :) In Christop's defense I've seen Cliff referred to as 'dawson' more than once here at...
Google suggests that a EvB 5.1 with ATmega644p has a 16MHz crystal, so try with F_CPU=16000000UL.
Optimization level?
techedge wrote:I now find myself in the situation of wanting to disassemble my own AVR code I wrote 20 years ago - yes, I have the sources for these binaries, but it's not in the...
avrcandies wrote: Since there are obvious inconsistencies here, I've sounded the troll alert: PORTB |= (1<<TROLL_ALARM) | (1<<TRAP_DOOR_CHUTE) | (1<...
El Tangas wrote:As mentioned, you can get some hints. Using sizeof(int) was already mentioned, another important hint is sizeof(void*). You might also get some additional hints by...
This OP is a word for word copy & paste of: https://www.avrfreaks.net/forum/variable-pwm-current-measure
clawson wrote:Oh and depending on context you might want to consider the possibility of being interrupted. The Attiny817 data sheet says: Now this is for the...
ka7ehk wrote:The largest allowable index is the size of the buffer minus 1 because it starts at index = 0. True, but the OP's for loop was written correctly. The loop will exit...
I've used these: https://www.idt.com/us/en/products/memory-logic/bus-switch/33v-cbtlv-general-purpose-bus-switch/74cbtlv3244-low-voltage-octal-bus-switch with good effect to...
Pages