User LEDs

General problems? Ask here!

Moderator: cbarnes

User LEDs

Postby Quartico » Mon Feb 19, 2007 8:05 pm

I want to use the LEDs but I couldnt find which register I needed to manipulate. Can you show me a simple program that turns the LEDs on?
Quartico
Newbie
Newbie
 
Posts: 2
Joined: Mon Feb 19, 2007 4:51 pm

Postby ed taylor » Tue Feb 20, 2007 10:04 pm

hi:

which board(s) are you using?

if you look at the schematic drawing you should see net names on the signals. follow these back to the chip and that should show you the port they are connected to. simple code for porta:

eg program )

movb #$FF,DDRA ;set direction as output
movb #$AA,PORTA ;set every other bit high
bra * ;stay and do nothing

regards,

ed
ed taylor
Master
Master
 
Posts: 174
Joined: Wed Jan 19, 2005 10:20 pm
Location: calgary alberta

Postby Quartico » Wed Feb 21, 2007 4:35 pm

Thanks, that worked.
Quartico
Newbie
Newbie
 
Posts: 2
Joined: Mon Feb 19, 2007 4:51 pm


Return to General Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron