PDA

View Full Version : Debug speed question



Dick Ivers
- 10th October 2011, 02:13
Okay, I think this is a simple question. Can someone help fill in the blanks.....

How long does it take to print 58 characters using debug at 9600 baud with a 12F1822 running at 8 mhz? The receiving device is Hyperterminal.

I think the calculation goes something like this:

10 bits per character (1 start,8 data,1 stop}
58*10/9600 = .060 seconds

Debug processing time = ?

Hyperterminal processing time = ?

Thanks

gadelhas
- 10th October 2011, 03:02
I would like this;

Start a timer
Debug command
Stop the timer
Read the Timer registers and do the Math.

On the hyperterminal side, don't know, but if you do a VB program to receive the data you can control that too.

Charles Linquis
- 10th October 2011, 03:16
Hyperterminal can handle the chars as fast as they come - at least up to 115K baud.
Debug is really a lot better than I thought. Unfortunately, I don't have a 12F running at 8Mhz. All I have is an 18F8723 running at 40Mhz.6040

I sent out $FF in a loop. Note that there is virtually no extra space between ANY of the bits. So DEBUG is very fast. But remember that DEBUG is a blocking command. If all you have to do is pull bytes out of an array and send them, you will see the same results I do, but if you have to calculate or use some logic between sending bytes, that will add a bit of time.