IM USING A MOTOROLA BOARD AND IM INTERFACING IT TO THE CFAG12864B-TMI-V LCD BUT MY PROGRAM IS NOT WORKING ANY AT ALL
HELP!!!!!!!!!!!!!
THIS IS WHAT I GOT SO FAR
REGBAS EQU $1000
PORTC EQU $3
PORTA EQU $0
DDRC EQU $7
ORG $100
JSR DISPON
JSR DISPSL
JSR SETSTP
JSR STYADR
HERE BRA HERE
DISPON LDX #REGBAS
BSET DDRC,X %11111111 ;SET ALL PORTC PINS FOR OUTPUT
LDAA #%00000000
STAA PORTA,X
LDAA #%00111111 ;TURN DISPLAY ON
STAA PORTC,X
RTS
DISPSL LDX #REGBAS
BSET DDRC,X %11111111 ;SET ALL PORTC PINS FOR OUTPUT
LDAA #%00000000
STAA PORTA,X
LDAA #%11000000 ;SETS STARTLINE TO 0
STAA PORTC,X
RTS
SETSTP LDX #REGBAS
BSET DDRC,X %11111111 ;SET ALL PORTC PINS FOR OUTPUT
LDAA #%00000000
STAA PORTA,X
LDAA #%10111000 ;SETS STARTPAGE TO 0
STAA PORTC,X
RTS
STYADR LDX #REGBAS
BSET DDRC,X %11111111 ;SET ALL PORTC PINS FOR OUTPUT
LDAA #%00000000
STAA PORTA,X
LDAA #%01000000 ;SETS Y ADDRESS TO 0
STAA PORTC,X
RTS
WRDATA LDX #REGBAS
BSET DDRC,X %11111111 ;SET ALL PORTC PINS FOR OUTPUT
LDAA #%01000000
STAA PORTA,X
LDAA #%01001000 ;SETS DATA TO 46
STAA PORTC,X
RTS
STREAD LDX #REGBAS
BSET DDRC,X %00000000 ;SET ALL PORTC PINS FOR INPUT
LDAA #%00000000
STAA PORTA,X
LP: LDAA PORTC,X ;CHECK IF BUSY
BRSET PORTC,X %10000000 LP
RTS
|