How to differentiate between BS2p24 and BS2P40?
daniel
Posts: 231
Is there a way to use the built-in $STAMP (or something else) to make a compile-time differentiation between the 24-pin and the 40-pin BS2p?·
I know I can do:
I would like to do something like:
I did not run across this·information in the Help file; the closest I can find is in the AUXIO / MAINIO / IOTERM Example; but that example does not distinguish between the 24-pin and the 40-pin BS2p.
Daniel
...
Post Edited (daniel) : 8/4/2005 4:02:47 AM GMT
I know I can do:
#IF $STAMP <> BS2p #THEN #ERROR "Requires a BS2p" END #ENDIF
I would like to do something like:
#IF $STAMP <> BS2p40 #THEN #ERROR "Requires a 40-pin BS2p" END #ENDIF
I did not run across this·information in the Help file; the closest I can find is in the AUXIO / MAINIO / IOTERM Example; but that example does not distinguish between the 24-pin and the 40-pin BS2p.
Daniel
...
Post Edited (daniel) : 8/4/2005 4:02:47 AM GMT
Comments
You could make your own directive:
#DEFINE BS2PTYPE=40 ' or 24
#IF BS2PTYPE=40 #THEN
AUXIO
DIRS=$FFFF
#ENDIF
That directive could also enforce the type=40 with the #ERROR message, just as a reminder of the type required.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Thanks for the tip.· I'll make use of that somehow.
As for the original request, I'm looking for that additional bit of chip-level information that, as you suggest, already exists.· Specifically, I would expect that
would be true for any BS2p.
I'm looking for the chip's self-report to additionally allow me to differentiate between the different BS2p.· I don't think I require that I be able to assign the BS2p40 attribute, just that the Identify function be able to distinguish between them.· I'd be willing to use another built-in constant, such as $PINCOUNT or $MODEL·to allow the differentiation, as
Daniel