DAT or PUB ??? for a lenghty data table
$WMc%
Posts: 1,884
Hello
········ I need to make a data table in SPIN. this data table is (KTablePos.BPe) its the "k" lookup table for the DS2760TC. I have 2 of these on a onewire bus w/ the Prop on My Prop.Pro.Dev.Board. I used(SpinOneWire.spin) and (SpinOneWire-test.spin) This works great as I see the 2 Diff. SER#'s on the TV.
········ I have read the DAT section in the Prop. manule, And the more I read through it, The more confused I seem to get.
········ Q?1 is: Should I use " DAT "·or " PUB "?;Q?2 is: Where would I put the statment· if( PUB )1st,2nd,last.? If (DAT) would it be right after the "OBJ"??; Q?3 which program should it go in (SpinOneWire) or SpinOneWire-test)?????
············ ___________________$WMc%__________out___
········ I need to make a data table in SPIN. this data table is (KTablePos.BPe) its the "k" lookup table for the DS2760TC. I have 2 of these on a onewire bus w/ the Prop on My Prop.Pro.Dev.Board. I used(SpinOneWire.spin) and (SpinOneWire-test.spin) This works great as I see the 2 Diff. SER#'s on the TV.
········ I have read the DAT section in the Prop. manule, And the more I read through it, The more confused I seem to get.
········ Q?1 is: Should I use " DAT "·or " PUB "?;Q?2 is: Where would I put the statment· if( PUB )1st,2nd,last.? If (DAT) would it be right after the "OBJ"??; Q?3 which program should it go in (SpinOneWire) or SpinOneWire-test)?????
············ ___________________$WMc%__________out___
Comments
To look up a k value, you could just say something like this:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
······· Thanks for the help guys; I can see (in your example) how to write the data and how it will be called. Why didn't Parallax put that in the manule?.·I'll ·give it try...
··············· ________________$WMc%_____________out·