Post Created date
changing a variable
I just had a quick look at you code and if you just push R16 before LDI R16,xx and after SPM pop it back it should work. 
Sunday, 16 June 2019 - 09:29
Is it a datasheet error in the AVR 0/1 series TCB?
Atmel never took the job to make datasheets serious so they had a lot of errors.    And unfortunately it look's like Microchip don't care either.   ...
Wednesday, 12 June 2019 - 19:00
LDI variable,' '
first it's r16 to r31 you can use LDI on.   I have only looked shortly at it but it looks like it's so they get "   345" instead of "00345"
Monday, 10 June 2019 - 19:36
Alternatives to timer interupt
I'm confused in #12 you wrote : the only thing the Xmega needs to do is read the adc and apply the filter then put it on the dac. That sounds like one analog input and one analog...
Monday, 10 June 2019 - 13:57
Variable to register, inline assembly
What a selfish bastard OP is please band him !!!
Monday, 10 June 2019 - 10:06
Alternatives to timer interupt
No that is not what Jim mean !   If you have a ISR then just put the code there!   the wait while should be on the timer overflow bit.  (but not with timer ISR bit...
Sunday, 9 June 2019 - 21:12
Variable to register, inline assembly
You really need to tell what you want, the compiler don't really like that change the 8 top registers unless you directly want to 'talk' to the compiler.   It sounds a bit...
Sunday, 9 June 2019 - 16:30
Debugging AVRin Studio 7 GCC
Try to compile with the optimizer -Og   , it's often because the compiler rearrange your code so the code you wrote don't really exist any more only it's ...
Saturday, 8 June 2019 - 09:18
timing problem ATtiny13a 128kHz
If it save power to run fast and then sleep depends a lot of your HW, and especially which voltage you want/need to run at. In many situations AVR's (systems) use less total...
Friday, 7 June 2019 - 17:09
Define and display big number
Perhaps too basic but where does the numbers come from, and what to do with them other than show them.   If it's only + and - it could be smaller and faster to do the...
Friday, 7 June 2019 - 16:04
Studio 7 for ATmega328PB : got > Error
Yes what is the reason for the old compiler ?   I have made project with a 328PB using studio4 with the same compiler as you, I only needed some extra portpins so I just had...
Wednesday, 5 June 2019 - 17:48
Creating a sinusoidal-wave from PWM with ability to change frequency
Google SW DDS   Basically you will need i++ to have a better resolution, if you do i += 256 and then use i / 256 (the compiler just make a >>8 so no time killer), will...
Wednesday, 5 June 2019 - 16:14