Post Created date
ASM program: External interrupts won't work in ATMega8
And as pointed out in #4 inc and dec changes flags so it can't be de done this way.   If you are new to the AVR, I will suggest that you first get it to work in C (and I...
Friday, 21 June 2019 - 13:06
ASM program: External interrupts won't work in ATMega8
First it works you must have an error!   Are you sure that you don't have the bootloader enabled or something like that.   add: Some chips the ISR clr the active...
Friday, 21 June 2019 - 12:59
How do I avoid a bus collision? A question for true experts.
perhaps the driver of the slave need to have the same delay line.   Just short have you remembered to give them the same ground ?
Tuesday, 18 June 2019 - 20:13
How do I avoid a bus collision? A question for true experts.
my small input:   Can you get the master to make 2 stop bit's ? (perhaps that can help depending of what the real problem is).   Delay the signal from slave (and only...
Monday, 17 June 2019 - 21:37
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