The Need for Speed
OK, with everyone's help, i have a fully running X-Ray system interface, but alast, it is too slow.· I reduced the code to just scanning 3 74165 Parallel to Serial chips and reading all 8 channels of an MAX1270 12bit A to D.· I commented out all Uart send or receive.· I set a pin high, read the 74165's and the ADC channels.· It takes 25 ms to complete the read.· This yields only 40 cycles per second, but that doesn't include any Uart send/receive.
Is this thing really that slow?· It list out as 8,500 instructions per second, the fastest Basic Stamp SX is roughly twice that, but that would still be marginally fast enough.· I will post my code for review if anyone thinks that my speed results seem vastly too slow.· However, if you think they are about right, then I better begin thinking in another direction.
Thanks
Is this thing really that slow?· It list out as 8,500 instructions per second, the fastest Basic Stamp SX is roughly twice that, but that would still be marginally fast enough.· I will post my code for review if anyone thinks that my speed results seem vastly too slow.· However, if you think they are about right, then I better begin thinking in another direction.
Thanks
Comments
Since you are dealing with timing issues, here is an interesting thread in the Propeller forum:
http://forums.parallax.com/showthread.php?p=597024