Searching \ for 'Lockuptable checking up a variable for 7x5 LED dis' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/displays.htm?key=led
Search entire site for: 'Lockuptable checking up a variable for 7x5 LED dis'.

Truncated match.
PICList Thread
'Lockuptable checking up a variable for 7x5 LED dis'
2000\03\11@161317 by Andreas Magnusson

picon face
Ok this is the guy with the 7x5 led display again.... I have a small
problem...

I am playing around with a display showing a message. I use a loockup table
to get the message. It works just fine. I have now putted a clock in to the
program and wants to show the time. For this I have made a few tests on how
to use a lockuptable to this.... but it doesent works this is what I have
tested

What I want to do is to get the number in a register (variable) to the
workingregister from a lockuptable

I have puted up the complete source code of my 5x7 LED program on
http://d1o45.telia.com/~u36300007/images/alfanum2.asm if anyone wants to see
more of the code to understund the problem...

Tnks for any help.


first test Didn't worked
;******************************


addwf PCL,f

retlw 'T'
retlw 'I'
retlw 'M'
retlw 'E'
retlw '='    ;=are temporary used as "shift"
retlw klocksiffra1                                            ;Ehh...here I
just put in the file registers containing the number I want to move to
W.....
retlw klocksiffra2
retlw ':'
retlw klocksiffra3
retlw klocksiffra4

retlw 0



secound test worked in the simulator but not in reality ??????!!!
;************************************************************************
addwf PCL,f

retlw 'T'
retlw 'I'
retlw 'M'
retlw 'E'
retlw '='    ;=are temporary used as "shift"
movlw .3
addwf charnumber,f
movf klocksiffra1,W
return
movlw .3
addwf charnumber,f
movf klocksiffra2,W
return

retlw ':'

movlw .3
addwf charnumber,f
movf klocksiffra3,W
return

movlw .3
addwf charnumber,f
movf klocksiffra4,W
return

retlw 0



third test worked in the simulator but didn't worked in reality?????????
-( gaaaaaaaahhhhhhhhhhh!!!!!
;***************************************************************************
******************************************



addwf PCL,f

retlw 'T'
retlw 'I'
retlw 'M'
retlw 'E'
retlw '='    ;=are temporary used as "shift"
; retlw '1'
; retlw ':'
; retlw '5'
; retlw '3'
goto siffra1in
goto siffra2in
retlw ':'
goto siffra3in
goto siffra4in

retlw 0

siffra1in
movf klocksiffra1,W
return

siffra2in
movf klocksiffra2,W
return

siffra3in
movf klocksiffra3,W
return

siffra4in
movf klocksiffra4,W
return

retlw 0

2000\03\11@164104 by Rich Leggitt

picon face
>
>  addwf PCL,f
>
>  retlw 'T'
>  retlw 'I'
>  retlw 'M'
>  retlw 'E'
>  retlw '='    ;=are temporary used as "shift"
>  retlw klocksiffra1                                            ;Ehh...here I
> just put in the file registers containing the number I want to move to
> W.....
>  retlw klocksiffra2
>  retlw ':'
>  retlw klocksiffra3
>  retlw klocksiffra4
>
>  retlw 0
No, returns the _address_ of klocksiffraX

{Quote hidden}

No, each table entry is limited to single instruction... shouldn't have
worked in sim either...

{Quote hidden}

Should work. But does klocksiffraX hold a CHARACTER? Or maybe your table
is crossing 256 word page?

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...