| ??? 09/27/02 15:33 Read: times |
#29785 - stuck in loop -- Debugger not stuck |
Hello
Im having trouble using the serial port I'm trying to use the serial port to write but my real running code gets stuck in a While loop When I run the code thourgh the debugger the code doesn't get stuck in the while loop void Send (short int byte2send) { P2_1 = 0; while (TI == 0) { P2_2 = 0; } P2_2 = 1; TI = 0; SBUF = byte2send; P2_1 = 1; } The first time I use the Send function the code sticks in the while loop I set TI = 1 before I use the Send function I am using RIDE -- Do I need to set my micro in a certain mode for this to work correctly? Please help Casey PS before send is used TMOD = 0x20; Serial port is in mode 1 |
| Topic | Author | Date |
| stuck in loop -- Debugger not stuck | 01/01/70 00:00 | |
| RE: stuck in loop -- Debugger not stuck | 01/01/70 00:00 | |
RE: stuck in loop -- Debugger not stuck | 01/01/70 00:00 |



