Sir, i want to control room devices by transmitting serially from virtual terminal to microcontroller.
That means if i write BULB ON in virtual terminal, the bulb connected to p0.0 glows
I have written a code but that is not working fine.
Please can you tell me the errors in this.
I am attaching the code and circuit diagram.
Hi,
Store the characters from the Serial buffer into an array or using a pointer. And then use the strcmp commands or strncmp (if you intend to compare particular length of character)
Based on the comparison result go for toggling the I/O pins.