I do not have my manual with me but what if you change:
Tst_Array VAR word[20]
to
Tst_Array VAR byte[20]
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
that worked sayzer. thanks.
curious, this is the format for arrays in PBP to get word, longint values through usarts to radios?
it's working now. now that you helped with the high-low byte. on the receiving end i'm just multiplying the highbyte by a constant and adding it to the lowbyte to get my 16bit value.
many thanks
Bookmarks