PDA

View Full Version : ICCPROP C Ping



jazzed
03-19-2009, 07:09 AM
Please "peer review" this ICCPROP C Ping test code/driver before I commit to obex.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve


Propalyzer: Propeller PC Logic Analyzer (http://www.brouhaha.com/~sdenson/Propalyzer)
http://forums.parallax.com/showthread.php?p=788230 (http://forums.parallax.com/showthread.php?p=788230)

Post Edited (jazzed) : 3/19/2009 5:15:34 PM GMT

jazzed
03-20-2009, 12:19 AM
Ping_1_01.zip commited to obex: http://obex.parallax.com/objects/432/ˇˇThanks to Allen for review.

Allen suggested that I'm missing a good opportunity to demonstrate how to use ICCPROP ASM, so I added the ping_asm.s file to define ping_clocks. The ping.c module retains the equivalent ping_clockc C function for comparison. The private ping_convert chooses which ping_clock variant to use for getting the ping pulse width ... both functions yield the same result.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve


Propalyzer: Propeller PC Logic Analyzer (http://www.brouhaha.com/~sdenson/Propalyzer)
http://forums.parallax.com/showthread.php?p=788230 (http://forums.parallax.com/showthread.php?p=788230)