Have a look at the code posted in this thread, in particular post #16 I think there might be something you can use in there, a tidy little ring buffer perhaps.
http://www.picbasic.co.uk/forum/showthread.php?t=4972
Have a look at the code posted in this thread, in particular post #16 I think there might be something you can use in there, a tidy little ring buffer perhaps.
http://www.picbasic.co.uk/forum/showthread.php?t=4972
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.
Thanks Joe,
I have got "rather" consistent reading with HSERIN command
For example I got @123456789 , then 89 @12345 then 3@ 234 789
How to "filter" or how to put a qualifier so I can get numbers after @ sign ?
You see it is looping and catching data mid stream, look at the manual under herserin, and serin2 for instructions re: wait . If your data is a fixed length packet you can tell herserin how many units to receive before proceeding to the next operation.
http://www.picbasic.co.uk/forum/showthread.php?t=4047
http://www.picbasic.co.uk/forum/showthread.php?t=3751
http://www.picbasic.co.uk/forum/showthread.php?t=6963
Last edited by Archangel; - 10th August 2008 at 20:20.
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.
Thanks Joe, it works now.
The problem was the unshielded cable . I changed the cable to shielded, and ground it, the readings are now consistent
Bookmarks