SPI Slave NodeMCU fake header insertion
Posted: Sun Feb 06, 2022 8:29 pm
Hi! I wish you guys can help me out. I have a project in it NodeMCU is put in Slave position for SPI. In my project, I cannot insert libraries or scripts to the Master side, as NodeMCU should only get data from master.
I have already tried SPIslave.h libraries (Master & Slave) and using a protocol analiser, I’ve checked that Master in this case send a 0x02 followed by 0x00 byte before sending real data.
My problem: My real master send a sequence of 101(bit) followed by (000000) address and then data. It controls a HT1621B LCD driver.
So, SPI slave won’t receive 0x02 followed by 0x00 before true data.
Question: Is it possible to create “fake” bytes as soon as Enable line gets low to pretend first 2 bytes are 0x02 & 0x00?
I’ve been looking for this for a while and got stuck at this.
I appreciate any suggestions.
I have already tried SPIslave.h libraries (Master & Slave) and using a protocol analiser, I’ve checked that Master in this case send a 0x02 followed by 0x00 byte before sending real data.
My problem: My real master send a sequence of 101(bit) followed by (000000) address and then data. It controls a HT1621B LCD driver.
So, SPI slave won’t receive 0x02 followed by 0x00 before true data.
Question: Is it possible to create “fake” bytes as soon as Enable line gets low to pretend first 2 bytes are 0x02 & 0x00?
I’ve been looking for this for a while and got stuck at this.
I appreciate any suggestions.