Post Created date
Copying strings in ATTiny416 unexpectedly painful
what is the optimizer for that code? why use r23:r22 at all !  something like this should be easy to do: movw r30,r28 adiw r30,1 ldi r24,0x11 st Z+,r1 dec...
Thursday, 21 March 2019 - 13:11
Copying strings in ATTiny416 unexpectedly painful
I have never used the tiny0/1 but have looked from the sideline, and did some tests when they first came out (in the simulator).   My conclusion was the GCC compiler...
Thursday, 21 March 2019 - 10:58
How to know registers having opcode?
The problem is that there only are space for 65536 opcodes and STD and LDD use 8192 of them, double that would be to many! 
Wednesday, 20 March 2019 - 13:12
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