I am working on a design using a PIC 16f88 to control a MCP4822 DAC via the hardware SPI. The SPI is working properly and I can send data to the DAC.
However, since I am only outputting SPI data, I would like to use the SDI pin as a digital input connected to a mechanical switch. I am not sure if/how I can do this.
The SPI transactions occur periodically inside the timer0 ISR. I would like to read the input pin in the main loop.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum