Post Created date
[M168 WinAVR] Strange interrupt behavior
How many cycles in the worst case ISR execution?
Sunday, 24 July 2011 - 13:15
break string
Done, I was thinking "4 digits" not "5 characters including the d.p." :oops: How did you know it was me? ;-) BTW interesting that others used pointer notation for the offset start...
Thursday, 20 May 2010 - 12:48
break string
char lat[6]; char lon[6]; strncpy(lat, posi, 5); lat[5]=0; strncpy(lon, &posi[5], 5); lon[5]=0;
Thursday, 20 May 2010 - 12:34
split up a 16 number
MOV not LDI!! you want MOV what is in r16 to r23
Thursday, 20 May 2010 - 12:31
changing char* inside function argument
While malloc() is a terrible solution in an MCU just to mention strdup() anyway - which is often useful for this kind of thing (but it's really just a wrapper for a malloc() and...
Thursday, 12 November 2009 - 16:39
register view in studio 4.17
But the register naming thing is something that's been broken since 4.14
Thursday, 12 November 2009 - 16:35
I + O on same pin...
I can't help noticing the t85 has ADC so you might be able to combine multiple inputs on other pins onto a single ADC pin. For example if you had button inputs on PB0 and PB3...
Thursday, 12 November 2009 - 13:18
avr-gcc compile into hex
The alternative is to use "Mfile", answer some simple questions about the project then just "make" using the Makefile it created for you. However you DO have to tell the build...
Thursday, 12 November 2009 - 12:18
bootloader problems on mega128
The "normal" way to program boot+app is one of either: 1) combine app.hex+boot.hex and program composite.hex - simple way to combine is using a text editor and deleting the "end"...
Thursday, 12 November 2009 - 12:12
PWM modes - need some clarification.
Quote: thus I cannot change the duty cycle? When TOP is fixed what you cannot change is the PWM frequency. Of course you can change the duty cycle (between 0 and TOP) WF (aka...
Thursday, 12 November 2009 - 12:06
First AVR project: Can't get LCD to work
You do know that avr-libc has a fully working HD44780 example code don't you? If you installed WinAVR look in /winavr/doc/avr-libc/examples/stdiodemo It is documented in the avr-...
Thursday, 12 November 2009 - 12:03
changing char* inside function argument
If you really want to "free" it later then just make the first user malloc() when required and the last person to use it then free() it. Use the fact of whether the shared pointer...
Thursday, 12 November 2009 - 10:27