I am freaking :lol: !
Although I searched a lot in the forum and I Googled
I cannot find an appropriate answer for my case.
I will explain you my application
and I hope someone can help me.
I use an atmega16, a DAC (12-bit) and an ADC (16-bit) that communicate with SPI.
I use FT232RL with D2XXX drivers, in order to communicate with the atmega16. For that purpose
atmega16 has enabled USART @ 250kbps (0% error @16MHz)
The PC side software (Delphi) tells the atmega16 to output a voltage and to start reading through the ADC.
The atmega16 outputs the voltage and then
enters a loop that continuously reads ADC and sends data over RS232 to the FT232RL.
The PC software reads the buffers and outputs the data to a Memo and then to a Chart.
The problem I am facing is that data does not come
as it should.
For example the uC sends repeatedly "345/n" (let's say ADC reads the same voltage) and the PC uses "/n" as a delimiter.
Instead of getting lots of "345/n" somewhere in the middle of data received, I get
What I guess, it is either a problem of speed,
or USB polling architecture, or buffering, or UART-USART compatibility, or missing flow control.
Please, if you have any clue, please give me a hint or any help.
Thank you a priori.