Post Created date
compare and branch problem
how do you put 0x08 into r7 ?  remember that ldi don't work on r0-r15
Tuesday, 19 March 2019 - 08:49
Pin change interrupts for counting
+1 to #4 Make a "heart beat" timer interrupt where you look for changes since last time. It will be cleaner in the long run.
Sunday, 17 March 2019 - 08:51
What value is the PIN toggle?
I just took a look at the datasheet for tiny214 etc. and that also only say 1 clk   and xmega E manual also say 1clk.   I think it was something they had to fix when...
Wednesday, 13 March 2019 - 16:34
What value is the PIN toggle?
theusch wrote :   I don't know of a way on AVR8 to create a pulse narrower than one AVR cycle just as side info, chips with a PLL like tiny85 can make shorter pulses using...
Tuesday, 12 March 2019 - 14:20
Simulator in Atmel Studio 7 (1931) not working
Since the value of Y come from the stack (IN from 0x3D and 0x3E), perhaps it's RAMEND that is wrong, or perhaps no init.
Tuesday, 12 March 2019 - 11:06
What value is the PIN toggle?
Not that this really matter for this thread but: sbi and cbi take 2 clk  out (and in) only take 1 clk.   Just have that in mind if we talk about speed. 
Tuesday, 12 March 2019 - 10:20
What does this do.....?
Works the same with or without. Only in this very simple case but try to || two portpins and the the compiler have a problem  
Monday, 11 March 2019 - 11:44
Recommendation for Power factor correction control Buck or Boost?
3 phase 400Vac supply rectified to 540VDC how is that rectified ? if it's just 6 diodes, you will need to change it! (for the grid it needs to look as 3 resistors, diodes...
Friday, 8 March 2019 - 18:23
Watchdog Timer on the 328p makes a GREAT temperature sensor!
if you average N measurements, your resolution improves by SQRT(N).   but again you you will need to have noise or temperature changes for that to be true, if all readings...
Friday, 8 March 2019 - 06:56
ISR assembly code
! This is ASM not C. An AVR don't have ISR vectors, but have an address for ecah ISR it jump to. Så for each ISR you use you normally have a ORG.
Thursday, 7 March 2019 - 08:10
atmega still alive ?
If it's just for tests/dev get a 1284 in dip, it's always nice with ekstra buffers for dev. etc. (a 1284 has 16KB of RAM)
Wednesday, 6 March 2019 - 11:47
atmega still alive ?
As I remember the mega162 was the first with two USART, and after the datasheet was made , I guess it has been kind of random which datasheet is the master for cut and paste for...
Wednesday, 6 March 2019 - 10:18