You are not logged in.
Quoted
This Stack space in the data SRAM must be defined by the program before
any subroutine calls are executed or interrupts are enabled.
Quoted
main:
rjmp main
This post has been edited 2 times, last edit by "LotadaC" (Oct 9th 2010, 10:25pm)
![]() |
Source code |
1 2 |
ldi tempregister, (1<<bitname)|(1<<bitname)... sts HWregistername, tempregister |
![]() |
Source code |
1 2 3 4 5 6 |
ldi tempregister, konstante ;Konstante ist der Wert für alle folgenden Register sts HWregistername1, tempregister sts HWregistername2, tempregister sts HWregistername3, tempregister sts HWregistername4, tempregister ... |
Quoted
During reset, all I/O Registers are set to their initial values, and the program starts execution from the Reset Vector. For the ATmega168, the instruction placed at the Reset Vector must be a JMP – Absolute Jump – instruction to the reset handling routine. For the ATmega48 and ATmega88, the instruction placed at the Reset Vector must be an RJMP...
This post has been edited 1 times, last edit by "LotadaC" (Oct 13th 2010, 4:15pm)
wenn der Reset eben mal nicht sauber durchgelaufen ist. und das ist gar nicht mal so selten wie man denken mag.
This post has been edited 2 times, last edit by "LotadaC" (Oct 13th 2010, 7:32pm)
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
//*********************************************************************** //********** I2C SLAVE muss Daten Senden ******************************** case TWI_STX_ADR_ACK: // Own SLA+R has been received; ACK has been returned //TWI_bufPtr = 0; //pointer to first data location pRoDataRead= (char*)&aquastreamI2C; 16a4: 86 e4 ldi r24, 0x46 ; 70 16a6: 92 e0 ldi r25, 0x02 ; 2 16a8: 90 93 e7 00 sts 0x00E7, r25 16ac: 80 93 e6 00 sts 0x00E6, r24 internalData.i2cDataTrigger |= (1<<I2CTRIGGER_CPY); 16b0: 80 91 bb 00 lds r24, 0x00BB 16b4: 81 60 ori r24, 0x01 ; 1 16b6: 80 93 bb 00 sts 0x00BB, r24 |
-