Rd's address : d dddd = 1 1011 = 0x1B (27) //What is this register with address 1B?
And the REAL point is STILL that to set those two pins, this line:Code: [Select]PORTB = 0b00000011;is wrong and it should beCode: [Select]PORTB |= 0b00000011;
PORTB = 0b00000011;
PORTB |= 0b00000011;
Well, that's the absurd bit. Register 0x1B is the PCIFR - Pin Change Interrupt Flag Register. [...].
start: #define PORTB r27000000 e013 ldi r17, 0b000011 ; data for PB0 and PB1000001 9310 0129 sts $0129, r17 ; data saved in RAM location 0x0129000003 e0d1 ldi r29, 0x01000004 e2c0 ldi r28, 0x20 ; Y register contains 0x0120000005 85b9 ldd r27, Y+9 ; r27 holds 000011 which eneters into PORTB throgh #define directive?000006 cff9 rjmp start
000007 e0b3 ldi r27, 0b000011000008 2fbb mov PORTB, r27