Ttelmah
Joined: 11 Mar 2010 Posts: 19369
|
|
Posted: Sat Oct 01, 2022 10:50 am |
|
|
What you are asking does not make sense.
SPI is a master slave bus. For bit banged, the PIC will always be the master,
so initiates and generates the clock for all transactions. There is nothing
for an interrupt to do. Unless the slave is sending a trigger to say 'I want
you to talk to me', in which case, just have an interrupt handler for the
signal that is connected to this trigger, that then just does the bit banged
SPI. Nothing changes about the SPI transaction itself.
If you want to implement a slave, then this can't (normally) be bit banged.
The hardware really needs to be used, otherwise you cannot guarantee the
timings (except at slow rates). |
|