So im trying to make a small 4x4x4 led cube using assembly on atmel.
I have connected (+ve) pins for rows of my cube to Analog pins 5-2
The (-ve)column pins are connected to d0-d13 and 2 are connected to analog pins 0,1
In C if i want to make the all leds glow i set the rows array to 1 and columns to 0
I want to make this happen using assembly
start: ser r16 //set all pins to 1 out DDRC, r16 out PORTC, r16 //set all analog pins to 1 clr r16 out ddrb,r16 //set portb , portd pins to 0 as in input out ddrd,r16 clr r16 out portb,r16 out portd,r16>" rjmp start
im aware im setting all analog pins to 1 despite when two columns are connected to it but still it should at least light up the remaining columns.
I debugged it and it is setting analog pins to 1
But no leds are lighting up?
What am i missing any help apreciated