I'm using an ADuC7021 and I need to detect which of two defined protocols is being recieved on the incoming comms stream. One option that has been suggested to me is to use seperate UARTs, each set to a different protocol, to monitor the comms. The first valid comms command received would then determine which protocol is in use.
The ADuC7021 only has the one UART, so is there any soft UART code available for this device? Once the protocol has been determined, the device UART can be set accordingly.
The appended .c file is for the ADuC7023.
However, you should only need to change the header file called to ADuC7021.h