This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About send debug code to computer system

Dear all,
I have one question about how to send debug code(8-bit) from within 8051 C program in "real-time" to working computer ?

Background: Currently 2 ways are used to debug issue:
#1. via serial port(to show debug code Ex. string or Hex number)
#2. via LA(to observe what we want to see by setting trigger conditions)

For #1 we can show everying but it occupy more code space;besides it add "delay" within code...

For #2 we can see more detailed information but LA has limited RAM and thus we can not "log" complete firmware behavior...

Question: Is there any other method we can use to send Ex. debug code(8-bit) outside to computer in real-time and we can "log" much data ?

My first thought is:
- Use Port1 of 8051-A to send 8-bit value in Keil C Ex. P1 = 0x66;
- Connect Port1 of 8051-A to Ex. Port1 of 8051-B
- 8051-B is responsible for read Port1 and send out by USB (<- it seems there exists tool kit for this purpose...)
- In computer system one application is written to receive the debug code and show on screen( much like HyperTerminal...)

Is it workable ? or there is also ready-made way ? or better way to achieve this goal ?

Besides, it must be ok if:
P1 = 0x66;
P1 = 0x77;
P1 = 0x88;
( we have to see "66" "77" "88" on screen and no loss)

Could you give me some recommendations/comments ?

Thanks !

0