Self Testing Code development
Martin Hebel
Posts: 1,239
I'm helping with the·development of BS2 compatible higher level command for an object library, and and going to start with COUNT, PULSOUT and PULSOUT. Here's something that occured to me... I was thinking about the PULSIN instruction, coding and testing. I was mulling over how to make sure it was accurate and scaled properly, and perhaps use a BS2 to send a known pulse to be read... then it occured to me, why not simply read the PULSOUT of another cog to check it..... wow [noparse]:)[/noparse]
Think how else this could be applied - Get SEROUT working on one·cog and·create·SERIN and check·on another cog and so on... even for development, this is too cool.
Of course, needing an outside standard to verify they work too, but still....
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Disclaimer: ANY Propeller statements made by me are subject to my inaccurate understanding of my limited time with it!
Southern Illinois University Carbondale -Electronic Systems Technologies
Personal Links with plenty of BASIC Stamp info
and SelmaWare Solutions - StampPlot - Graphical Data Acquisition and Control
Think how else this could be applied - Get SEROUT working on one·cog and·create·SERIN and check·on another cog and so on... even for development, this is too cool.
Of course, needing an outside standard to verify they work too, but still....
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Disclaimer: ANY Propeller statements made by me are subject to my inaccurate understanding of my limited time with it!
Southern Illinois University Carbondale -Electronic Systems Technologies
Personal Links with plenty of BASIC Stamp info
and SelmaWare Solutions - StampPlot - Graphical Data Acquisition and Control
Comments
New Count instruction··· Count pin ,sync, register
Count on·"pin" ·while "·sync "·is high and store in register..
Re the count instruction ..
We need the facility to count for an indefinate amount of time.
Possibly synced to another input that tells it to accumalate..
Pulse rate 5HZ -40KZ max .. having 32 bit this should be cool and will
be needed by many apps..
Ronald Nollet
1st step will be to try to duplicate the BS2 as closely as possible to help those familiar with the BS2 get started doing common tasks. Along with that we'll shoot for a super-bs2 library with extended speed/functionality.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Disclaimer: ANY Propeller statements made by me are subject to my inaccurate understanding of my limited time with it!
Southern Illinois University Carbondale -Electronic Systems Technologies
Personal Links with plenty of BASIC Stamp info
and SelmaWare Solutions - StampPlot - Graphical Data Acquisition and Control
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truth can be dangerous... Trust can be deadly.
This should help Stamp users doing some common tasks, though it's written in Spin, and there are some limitations, such as minimum pulse width. It's be better of I had the time and energy to do it in P-ASM.
Sorry, guys, don't mean to tease by posting this, but at least some of us will have experience to help out new users when it's released.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Disclaimer: ANY Propeller statements made by me are subject to my inaccurate understanding of my limited time with it!
Southern Illinois University Carbondale -Electronic Systems Technologies
Personal Links with plenty of BASIC Stamp info
and SelmaWare Solutions - StampPlot - Graphical Data Acquisition and Control
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truth can be dangerous... Trust can be deadly.