Just daydreaming here...
I am experimenting with the AMS AS5048 rotary encoder that outputs a 16-bit value using SPI. My MCU chip will be a Microchip enhanced mid-range device, such as the 12F1840 or 16F1519. Those devices have an MSSP serial port module, but it seems to be just 8-bits wide. I suspect I could clock the source (slave) relatively slowly compared to the MCU, detect a full buffer (SSP1BUF) and transfer that between clocks to get the full 16 bits without interruption.
I was just wondering whether TMR1's registers can be used as a 16-bit shift register rotating bits into it out of STATUS?
John
I am experimenting with the AMS AS5048 rotary encoder that outputs a 16-bit value using SPI. My MCU chip will be a Microchip enhanced mid-range device, such as the 12F1840 or 16F1519. Those devices have an MSSP serial port module, but it seems to be just 8-bits wide. I suspect I could clock the source (slave) relatively slowly compared to the MCU, detect a full buffer (SSP1BUF) and transfer that between clocks to get the full 16 bits without interruption.
I was just wondering whether TMR1's registers can be used as a 16-bit shift register rotating bits into it out of STATUS?
John