I have got a little problem of understanding how is suppose to work. Basically all what I need is to light up a led on each side of 7 segment display. They overlapping each other or only showing on left or right side. If someone can put me on right track will be nice. Thank you.
Something like this
;Port Addresses
.equ DDRA =$1A ;Port A Data Direction Register Address
.equ PORTA =$1B ;Port A Output Address
.equ PINB =$16 ;Port B Input Address
.equ DDRB =$17 ;Port B Data Direction Register Address
.equ PINC =$13 ;Port C Input Address
.equ DDRC =$14 ;Port C Data Direction Register Address
.equ PORTD =$12 ;Port D Output Address
.equ DDRD =$11 ;Port D Dara Direction Register Address
;Register Definitions
.def temp =r16 ;Temporary storage register
;Program Initialisation
;Initialise Input Ports
ldi temp,$00
out DDRB,temp
out DDRC, temp
;Initialise output ports
ldi temp,$FF
out DDRA,temp
out DDRD,temp
loop: ldi r17,$7f ; left side
out PORTA,r17
ldi r18, $ff ; right side
out PORTA,r18
rjmp loop