Shifting In 40 Bits at 10 MHz
Posted: Mon Aug 14, 2017 5:06 pm
A simple project I agreed to do has turned more complicated. I need to read 40 bits clocked out at 10 MHz.
I'm using a PIC18F25k22 with a 16 MHz crystal and 4xPLL enabled for a clock speed of 64 MHz.
My first thought was to use shift.bas. Is there any chance this will work at 10 MHz? If it does work, it will need modification as it's currently limited to 32 bits.
I think the practical alternative is a string of TTL serial/parallel shift registers, and reading the 40 bits with MCP23017 I2C port expanders.
There are a great number of unknowns about this project at this point, such as how often this signal is even sent. I hope to get some logic analyzer output of what's actually going on vs. what we guess is going on; just trying to figure out possible options at this point.
Thanks,
Jon
I'm using a PIC18F25k22 with a 16 MHz crystal and 4xPLL enabled for a clock speed of 64 MHz.
My first thought was to use shift.bas. Is there any chance this will work at 10 MHz? If it does work, it will need modification as it's currently limited to 32 bits.
I think the practical alternative is a string of TTL serial/parallel shift registers, and reading the 40 bits with MCP23017 I2C port expanders.
There are a great number of unknowns about this project at this point, such as how often this signal is even sent. I hope to get some logic analyzer output of what's actually going on vs. what we guess is going on; just trying to figure out possible options at this point.
Thanks,
Jon