serin variables

kenmac

Member
Hi folks,
If I send 16 bytes as one serial message, there is only a max. of 14 GP variables available to receive same, using Serin.
Is there a way around this, apart from splitting the data into separate sends?
Is it possible to put the Serin data directly in other variables?

Kenmac
 

Aries

New Member
Use @ptrinc (for scratchpad) or @bptrinc (for RAM). You can then receive or send large numbers of consecutive byes.
 

hippy

Technical Support
Staff member
Which PICAXE are you using ? Modern M2's have 28 byte variables, 'b0' through 'b27', X2's have twice that, 56.

Only very old PICAXE have only 14 byte variables and don't support 'ptr' or 'bptr'..
 

kenmac

Member
Oops, I forgot that the M2 have 28 GP variables.
It was just a habit to work within 14.
So, I don't have a problem after all.
Thanks Hippy.

Ken Mac
 
Top