Hi mackrackit,
I run those number variations / combinations, what a difference:
Code:
SERIN2 PORTC.5, 16780,[DEC NUM1, DEC NUM2]
This one grabbed 123 then added 123 to give 246.
Code:
[DEC2 NUM1, DEC NUM2]
This one grabbed the 1 and the 2 to give twelve, then added the 3 to give 15.
Code:
[DEC NUM1, DEC2 NUM2]
This grabbed 123 + 12 to give 135
Like you said earlier:
One of the things you need to consider is, how is the data coming into the MCU?
I can see this is very important, you've got to be comparing apples with apples, or else you're in real trouble, or at least be aware of how the numbers will be affected, your term 'grabbed' was right on the money.
Looks like you are getting VARIABLE size confused with this.
Guilty, I do tend to look at things one dimentionally before moving around and taking another view of things. It's that old lack of knowledge thing again
Ah just remembered, in the PICBASIC PRO book, the DB9 cable dia has a 22k series resistor on PIN3, do I need to add one or am I ok you think? (I can't smell any smoke
)
Where to next......?
Dave
Bookmarks