Parallel IN to memory quickly...
MyYz400
Posts: 11
If I had a 8 or 12 bit parallel signal coming into the SX on 8 to 12 pins respectfully, is there a nice neat way of reading all inputs and storing this information with as little clock cycles as possibly? I would like to create a simple quick data acquisition system that reads the parallel information in, stores it, then I can waste my time later on reading it out of the memory. Any one able to give me some pointers?
Comments
Connect low order 8 bits to port b1-7 and high 4 remaning bits to port c0-3 then.
mov var1,rb
mov var2,rc
4 cycles.
Post Edited (Shmoopy) : 3/23/2010 12:16:36 AM GMT
This is incorrect. The "flash" memory is program/data space and is only writable by an SX-Key or similar programmer. Essentially, this space is "burned" with the program from a host PC; once the chip is running, the flash can't be changed.
Any location in flash may be read by the program. There is no internal EEPROM as Shmoopy noted. If you actually need to save all the incoming data, and say, a 32 word buffer is not big enough, you may want to consider a Propeller which has more internal RAM.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php