tinkyminky
New Member
I can't figure out solution.I try but ı can't solve this.Here my code and question.Thanks for your help.Ouch, I almost forgot, I live in a third world country and we use 68hc11 for academic education (bs).
Code:
LDX #REGBAS %MY CODE
CLR DDRC,X ; configure PORTC as input
LDAA #$02 ; configure PIOC register
LDAB #$09 ; initialize byte counter poll STAF bit to detect the rising edge in STRA signal
STAA PIOC,X ;active STRA is rising edge
LDY #PTR ; initialize storage pointer
LOOP BRCLR PIOC,X $80 LOOP
LDAA PORTCL,X ;read PORTCL to get the input when STRA was detected
STAA $00,Y ;store it
INY ;repeat 9 times
DECB
BNE LOOP
FINISH BRA FINISH
Code:
LDX #REGBAS %question
CLR DDRC,X
LDAA #$02
LDAB #$09
STAA PIOC,X
LDY #PTR
LOOP ...
...
LDAA PORTCL,X
STAA $00,Y
INY
DECB
BNE LOOP
FINISH BRA FINISH
Last edited: