[PIC] Can SDI be polled while SSP enabled?

Discussion in 'Embedded Systems and Microcontrollers' started by wannaBinventor, Oct 15, 2010.

  1. wannaBinventor

    Thread Starter Member

    Apr 8, 2010
    I am going to be using a serial device that will generate a pulse on the MISO line whenever one of its 16bit registers has been addressed and is ready to receive the next byte.

    I'm not sure than the PIC will perform a BTFSS or BTFSC properly if the SPI is enabled, even if the TRIS is set as an input for that pin. I really don't want to have to disable the SPI in the middle of the process because I'm concerned about issues that might create (may be a non issue - I don't know).

    Does anyone know if the PIC (A 16F818) will allow me to poll the SDI pin with the SPI enabled?

  2. nickelflipper

    Active Member

    Jun 2, 2010
    Better yet, use the interrupt, at least that's what I did for the 16F88 SSP module (I2C mode).