Programming the AT90S8535

Status
Not open for further replies.

Smalluser

Newbie level 1
Joined
Jan 28, 2005
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
6
Who can help me in programming the port A in output mode?
Input mode works perfect.
In output mode the PORTA dataregister and DDRA register are correctly set but the pin itself stays at 0 Volts. Here is my programming sequence


;PORT A AS OUTPUT
LDI R16,255
OUT DDRA,R16


;PORT A OUTPUT
LDI R16,15
OUT PORTA,R16

Thanks
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…