Post Created date
Simple input / output
Look in the iom128.h : PINA2 is just a define and is 2, so the condition is never met. Better try this instead: ... if (PINA & _BV(PINA2)) ... ... /Berndt
Monday, 29 November 2004 - 16:16
Whats the diff from a .lss & a .lst file
Hello Bingo, the .lst is generated during assembly stage and the .lss is generated by avr-objdump from the .elf file, ist's kind of a disassemly. If you take a closer look on the...
Tuesday, 23 November 2004 - 07:32
Struct image in eeprom - help.
I think it should be: void store_eeprom(void) { eeprom_write_block(&Sensor, &Sensor_eep, sizeof(Sensor_t) ); } void restore_eeprom(void) { eeprom_read_block( &Sensor...
Thursday, 22 April 2004 - 11:25
Struct image in eeprom - help.
@kpw: carefully check again the parameterlists. IIRC it's for both the same: RAM-pointer, EEPROM-pointer, amount. /Berndt
Wednesday, 21 April 2004 - 11:43
TWI multimaster mode
I just found a trick for a Master performing transactions back to back ( or at least too short for a slave AVR to respond to STOP in time): If the slave is not responding (status...
Sunday, 18 April 2004 - 22:58
Interrupt problem with TMR0
Even more simpler: TIFR = (1<<TOV2); That' why they did it this way, to keep things atomic. Theese Flags are not writable. Imagine them as an RS flipflop with following...
Friday, 27 February 2004 - 12:17
JMP out of Interrupt Routine..
If you saved any registers in the stack (at least SREG should be) the return address is buried somewere more or less deep in the stack. Watch out for this if you do such tricky...
Friday, 23 January 2004 - 12:39
SPI data transfer.
sorry, there was a mixup, here corrected version: PORTB &= ~(1<<DDB4); // pull MAX3100 /SS low (select) write first byte to SPDR wait for SPIF set read result from SPDR...
Friday, 23 January 2004 - 12:32
SPI data transfer.
another point I forgot: PORTB &= ~(1<<DDB4); // pull MAX3100 /SS low (select) write first byte to SPDR wait for SPIF set read result from SPDR write second byte to SPDR...
Friday, 23 January 2004 - 12:28
SPI data transfer.
Hello Henk, I think you missed the receiption part: You do: // Read data from DOUT. (MISO) recv2 = SPCR; But it should (according to AVR data sheet): // Read data from DOUT. (MISO...
Friday, 23 January 2004 - 12:19
Interrupt priority limitation?
You don't like to tell us how you solved it? It's an interresting question at least for me, too. /Berndt
Thursday, 6 November 2003 - 11:51
Interrupt flag clearing
@Jim: it is this way, you definately will red a zero in next instruction. The task is: You want to clear a single bit in a register WITHOUT EVEN TOUCHING the others. So there must...
Wednesday, 5 November 2003 - 17:03