68hc11 port A and C setting HELP!!!!!

Status
Not open for further replies.
how to set all PORT A & PORT C into all OUTPUT.....
in asm form
i dont want C code.....
Something like
Code:
    ldaa  #0FFh  ; All ones to accumulator A
    staa  DDRA   ; All PORTA bits are outputs
    staa  DDRC   ; All PORTC bits are outputs
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…