Post Created date
Can someone tell me how to apply this patch(delay_us)?
ArnoldB wrote:No, since what he got are not patches. D'oh! I didn't check the actual content of the link... Thomas
Wednesday, 6 August 2008 - 14:40
Can someone tell me how to apply this patch(delay_us)?
Hi, I suppose you are working in Windows. You need a patch program. If you have cygwin installed, then probably you have it already. If you don't have cygwin, then you could get...
Wednesday, 6 August 2008 - 13:25
from ADC data to SIGNED16
Hi Senmeis, I had the impression this was the requested value. It would help if you could express the desired conversion in a table, like this one: V | ADC | value...
Wednesday, 6 August 2008 - 10:39
from ADC data to SIGNED16
Hi Senmeis, I admit, I haven't checked your bit calculations; I find arithmetic expressions simpler to handle. e.g. if you have ADC value of 10 bits and you want to map it onto a...
Tuesday, 5 August 2008 - 14:49
Project MyUSB
Hi Dean, I have tried the structure declaration with avr-gcc 4.2.2 and get the same error as you do. With avr-gcc 4.3.0 the code compiles. Since I get only warnings with the "x:...
Monday, 4 August 2008 - 14:14
Project MyUSB
Hi Dean thanks for sharing MyUSB. I have two minor issues with the header files only (I like to turn on most of GCC's warnings on my code, notably -Werror) which I would like to...
Monday, 4 August 2008 - 12:25
Error handling for TWI
For the archive: of course it was my error. I did not read the manual properly. The correct code is ISR( TWI_vect ) { switch (TWSR...
Friday, 1 August 2008 - 14:07
How to make a pointer to an array of structures?
PS: I tend also to simplify struct declarations by using "typedef", e.g. typedef struct { int A; int B; } foo_t; foo_t foo_array[10]; foo_t *ptr1; ... Thomas
Thursday, 31 July 2008 - 13:23
How to make a pointer to an array of structures?
Hi xenobinol, what compiler are you using? the code snipped you posted does not compile on GCC for several reasons: 1) The structure declaration is wrong: you can't use colons in...
Thursday, 31 July 2008 - 13:09
Using alias names for registers
#define Timer0Count _SFR_IO8(0x26); Don't put a semi-colon at the end of the #define. Your second snippet of code looks OK, though. If in doubt, post a piece of...
Monday, 28 July 2008 - 18:08
Using alias names for registers
What exactly do you mean by 'not working'? Does the code sit and wait for a member of the labour union to show up? Does it not compile? Does the chip explode? Please be more...
Monday, 28 July 2008 - 17:14
TWI vector riddle
Actually, my intention was that one: "Doctor, doctor, it HURTS when I program the AVR with the .elf file!" "Then let's fix/document it. It might hurt someone else as well." Thomas
Sunday, 20 July 2008 - 18:18