I am using Synergy S7G2 MCU, I have run into a peripheral device which uses Two-Wire Serial Digital Interface (Not I2C) more of a Two wire SPI version. In this device I need to POLL the Input and wait for the the Input to get High and after that send clock cycles to fetch the data I do not want to poll the input as the device takes a lot of time 10ms for the data to get ready and other processes stall (Graphics etc.) due to polling.
Is there a non-blocking way to poll the Input pin of the device, I do not have any IRQ input pin available! Is it possible to poll the input state using threads or any framework so that the thread waits for the input and processes it whenever the input is available so that other threads work properly.
In this sample code on media gallery, you can generate a i/o pin ISR via a non IRQ pin!, using ELC.
Provided your current pin is from Port1,2,3,4.
(+) s5_pk_elc_ioport_1_3_2.zip - Synergy - Media Gallery…