I am trying to interface my PC with 8051 using a CP2102 USB to UART bridge. I tried sending the characters 'M' & 'C' and view them using hyper terminal. I am able to receive the characters but instead of receiving them once, the data is received repeatedly in a loop fashion. I simulated this in Proteus and it works as expected i.e. I'm getting characters MC and them the program halts in while loop. Same results as proteus in Keil Debug as well. Please help me fix this issue.
ST pin(7) of DS1232 has to be driven from high to low state within the WDT time-out period(150 ms) or else it would reset the controller. ST pin is connected to my micro-controller at PORT 1 pin 0 , so I simply had to make it HIGH at the beginning of the while loop & LOW at the end.