Post Created date
TWI vector riddle
Hi clawson, if I program the same .hex file (generated on Linux), with either AVRStudio or avrdude on Linux, then I have no problems. If I program the same .elf file (generated on...
Sunday, 20 July 2008 - 17:04
TWI vector riddle
Found the culprit: the same .elf file downloaded with AVRStudio's downloader works. A Read-back of the Flash content shows the rason. This is the flash content (Intel hex format)...
Sunday, 20 July 2008 - 15:38
TWI vector riddle
Hi, my iousbxx6_7.h has the correct content: /* 2-wire Serial Interface */ #define TWI_vect _VECTOR(36) and in the .lss file the vector is at address...
Saturday, 19 July 2008 - 11:09
Problem with JTAGICE mkII
Do you have Debugwire enabled? To disabled Debugwire and enable SPI programming, do the following: - Debug -> Start Debugging - Debug -> JtagICE mkII Options - in the menu, click...
Friday, 18 July 2008 - 13:32
2 wire communication
Hi, you might find application notes 155 or 315 interesting. See http://www.atmel.com/dyn/products/app_notes.asp?family_id=607 Also download the example code, it should help you...
Tuesday, 8 July 2008 - 10:18
Push-Pull vs Open-Drain for USART, SPI, and I2C
NXP's Application Note AN10441 is about level shifting techniques in I2C-bus design: http://www.nxp.com/acrobat_download/applicationnotes/AN10441_1.pdf HTH, Thomas
Tuesday, 1 July 2008 - 11:52
How to reference a C symbol from an assembly file
thanks for the replies. status is volatile and has external linkage. I'm not compiling in C++, but I think I have figured out what triggers the name mangling. I did not mention in...
Thursday, 19 June 2008 - 10:08
TWI slave on ATmega644: clock stretching does not work
To be fair I have to say that the Diolan does support clock stretching, but it has to be enabled explicitly. Unfortunately, in this configuration the SCL frequency is throttled(e....
Wednesday, 18 June 2008 - 14:04
TWI slave on ATmega644: clock stretching does not work
Just for the record: the TWI indeed does clock stretching, but the Diolan I2C master ignored this by default, and for some reason I could not spot it in the oscilloscope. With an...
Wednesday, 18 June 2008 - 10:29
Side effects in asm inline code (r1)
Thanks for the pointer to boot.h! I see the code uses a "clr r1", and I have found in the avr-libc FAQ now the answer why: Quote:r1 - assumed to be always zero in any C code, may...
Tuesday, 17 June 2008 - 16:27
Side effects in asm inline code (r1)
As a kind of work-around I use this code. It is very clunky, but it seems not to have side effects. void HW_PatchPutWord(uint16_t *ptr, uint16_t data) { if (ptr...
Tuesday, 17 June 2008 - 15:24
TWI slave on ATmega644: clock stretching does not work
Thanks Jani and Lennart for the replies. I will check the master better. I'm using a Diolan device as master, but I don't have direct access to the code that controls the master....
Tuesday, 22 April 2008 - 21:25

Pages