LCDInfo.com

http://www.lcdinfo.com
It is currently Thu Nov 21, 2024 22:30

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 29, 2003 6:39 
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


Top
  
 
 Post subject:
PostPosted: Fri Jul 11, 2003 16:41 
Offline

Joined: Mon Jul 07, 2003 15:00
Posts: 12
Location: France or England
helloooo ,

i don't know too much the motorola , but i don't understand your "main" program ( i know doen't exict in assembler)

if i read your prog step by step :

org $100 -> go to address 100 in rom prg ( ok )

JSR DISPON -> jump to dispon function (RTS mean return ?)
JSR DISPSL
JSR SETSTP
JSR STYADR -> here problem , what do you do after ? i think you have to make infinit loop to not read again dispon .

stop me if i have wrong .

as well , you have to send "display on" went you want display the data in memory and went the data are ready in memory .

try to check the busy bit between all function .

i am may be completly wrong , tell me .


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group