??? 08/24/05 16:52 Modified: 08/24/05 16:57 Read: times |
#100016 - Pointless Responding to: ???'s previous message |
Vignesh Prasad said:
Dear Andy, I have stripped off the remaining portions and have put the simplified version of my serial handling routine and corresponding screen shot of Keil C51 simulator. The code you are simulating is not the same as the code you are running on your target! In particular, you have added clearing RI in your serial ISR...! If you run this modified code on your target, does it work? The combuf[..] array doesnt get stored by the values of SBUF.. It does when I simulate it! I think you are missing the fact that SBUF is actually two completeley independent buffers: Writing to SBUF loads the the UART's transmitter; Reading from SBUF reads the UART's receiver. Don't bother messing with SBUF - just open the Serial Window in the simulator and watch the characters appear in the combuf[] array as you type in the Serial Window. They do get into combuf[], and the first one does go into combuf[0] And if you type more than 5 characters, the values in combuf[] do get overwritten! And if you type more than 10 characters, they get overwritten again! And if you type more than 15 characters, ... well, you get the idea? |
Topic | Author | Date |
More encounters with Keil C51 | 01/01/70 00:00 | |
Simulate it! | 01/01/70 00:00 | |
It is not an homework | 01/01/70 00:00 | |
Proving nothing. | 01/01/70 00:00 | |
LCD | 01/01/70 00:00 | |
Simulation Results | 01/01/70 00:00 | |
Pointless | 01/01/70 00:00 | |
Got it !! | 01/01/70 00:00 | |
update | 01/01/70 00:00 | |
do you set SCON as a byte or bitwise ? | 01/01/70 00:00 | |
not an answer, but why do you call a fun | 01/01/70 00:00 | |
I don't C | 01/01/70 00:00 | |
inline | 01/01/70 00:00 | |
Compiler Tries | 01/01/70 00:00 | |
OT: inline, Keil ARM | 01/01/70 00:00 | |
C99 does specify inline as a keyword.![]() | 01/01/70 00:00 | |
Review index boundary value | 01/01/70 00:00 | |
Even More Pointless simulation! | 01/01/70 00:00 |