I am trying to make Ethernet communication with MCU. To make this happen, I need MCU(in this case AT89C2051), Ethernet Controller ( ENC28J60), and a RJ45. However the microcontroller that I selected doesnt have SPI, hence I need to bit-bang it to act as substitute for dedicated hardware SPI. This was intended to be implement within a specific device so that i can create a master/slave connection.
So here is my question:
- Does my concept to create a master/slave connection correct?
- Is it possible to write bit-bang code in C language/ Assembly language?
- If i intend to create a software that interacts with the Master device and control all the slave device, does it mean that I need to use socket programming ?