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

debugger UARTcommunication with third party application

Hello

I try to set up a test environment with the keil environment with an ADUC848 from analog device.

Basically my application acquires data from ADC and sends it to a host on UART link every 240 ms, and waits for an acknowledge from the host.

The acquisition is started when a “HELLO frame is received “, so the protocol communication protocol looks like that:

HOST : Send Hello

Simulated ADUC848 : Ack Hello

Simulated ADUC848 : Send DATA t0

HOST : Ack DATA

Simulated ADUC848 :Send DATA t0 + 240 ms

HOST : Ack DATA

Simulated ADUC848 : Send DATA t0 + 480 ms

HOST : Ack DATA

....

The UART link between keil simulator and the host are by a cross cable between COM1 ( the host) and COM4 (connected to keil simulator)

The communication protocol is set with a baud rate of 9600 bps, and 9 data bits with even parity.

The communication between host and simulator are correct, the Hello frame is received by the simulator, and correctly acknowledged to the host.

The Data frame has a length of 26 characters, so the expected time of transmission it 26/27 ms ( at 9600 bps).

By installing an UART spy between host and simulator, I measure a total sending time of data frame about 235-250 ms, with some times a gap of 30 to 40 ms between each sendig of a character.

Waht could be the reason for this large time to send the frame ? A clue to solve this problem ?

Thanks in advance.

Nicolas BERTRAND

0