20M2 support spiin/shiftin, spiout/shiftout

RonCzap

Member
I am confused! Does the 20M2 supports spiin (or shiftin) / spiout (or shiftout) commands?

In the manual, the picaxe chip symbols on the left lead me to believe they are "native" commands nut the compiler says the routines in the manual must be used.

Which is it?

Thanks!
 

westaust55

Moderator
The following information under the SHIFTIN and SHIFTOUT commands in manual 2 will further explain the situation:

Information:
The spiin (shiftin also accepted by the compiler) command is a ‘bit-bang’ method
of SPI communication on the X1 and X2 parts ONLY. All other parts must use the
sample program included overleaf to duplicate this behaviour.
For a hardware solution for X1/X2 parts see the ‘hshin’ command.
and

Other PICAXE microcontrollers do not have a direct spiin (shiftin) command.
However the same functionality found in other products can be achieved by
using the sub procedures listed overleaf.
 

westaust55

Moderator
Also, for the HSPIIN and HSPIOUT commands, in PICAXE manual 2 (currently V7.7) pages 96 and 97, the PICAXE images at the left of the page reference only the X1 and X2 parts
 

RonCzap

Member
Thanks! I thought the PICAXE images on the left indicated which chips supported a command but the details you quoted clarified the matter.

I appreciate your help.
 

westaust55

Moderator
From previous comment by Technical or hippy, the concept is that because the pages include code for the non X1/X2 parts, the M and M2 parts etc are in effect supported by the information on those pages.
 
Top