Hi there,
What do you have in "Print2LCD" subroutine? If it is not a light speed transportation project, can you show us?
Also,
Why not simplify your code as below?
Code:FOR Tst_Array[17]=0 to 65534 gosub Print2LCD NEXT Tst_Array[17]
Hi there,
What do you have in "Print2LCD" subroutine? If it is not a light speed transportation project, can you show us?
Also,
Why not simplify your code as below?
Code:FOR Tst_Array[17]=0 to 65534 gosub Print2LCD NEXT Tst_Array[17]
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
light speed project, that is funny! ;-)
it just sends the array to a 2x16 lcd. hmmm, maybe i'm missing a modifier here
Code:Print2LCD FOR Ndx=0 to 18 hserout [ Tst_Array[Ndx] ] NEXT Ndx RETURN
I do not have my manual with me but what if you change:
Tst_Array VAR word[20]
to
Tst_Array VAR byte[20]
Dave
Always wear safety glasses while programming.
hey mackrackit & others
i changed type to byte with the same results.
when array is of type word, and using my debugger i see the element's value as of a word type having 16 bits. so the issue isn't with the array elements. i thinking it is the hserout performing as it is designed to do.
what i'm seeing is the function hserout, and i assume the software version, serout, is sending values up to dec 255 then rolls back to dec 0 and starts the low bits all over again.
going to try some things ... back soon ...
thx
Tst_Array[Ndx].highbyte, Tst_Array[Ndx].lowbyte ?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
compiler returns this error: This style array syntax not supported
i'm looking at this page now for some pointers,
http://www.picbasic.co.uk/forum/show...ht=style+array
maybe there is a limitation on the usart for sizes >byte or there is a register config setting i've missed on this 16f88.
i'm looking into it, back later ...
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks