Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to read the CD_ROM sectors Pin
longdafeng15-Feb-04 1:45
longdafeng15-Feb-04 1:45 
GeneralRe: how to read the CD_ROM sectors Pin
David Crow16-Feb-04 3:18
David Crow16-Feb-04 3:18 
GeneralMenu mnemonics Pin
shultas12-Feb-04 17:37
shultas12-Feb-04 17:37 
GeneralRe: Menu mnemonics Pin
Ravi Bhavnani12-Feb-04 18:18
professionalRavi Bhavnani12-Feb-04 18:18 
GeneralRe: Menu mnemonics Pin
Mike Dimmick13-Feb-04 2:09
Mike Dimmick13-Feb-04 2:09 
GeneralRe: Questions Pin
Davide Pizzolato12-Feb-04 20:38
Davide Pizzolato12-Feb-04 20:38 
GeneralRe: Questions Pin
Kenttw13-Feb-04 2:05
Kenttw13-Feb-04 2:05 
GeneralRe: Questions Pin
Roger Wright13-Feb-04 3:03
professionalRoger Wright13-Feb-04 3:03 
Start and Stop bits, framing, and parity are all handled by the UART hardware; you don't need to be concerned about them other than to set your preferences at each end of the comm channel. Since hardware handshaking has gone out of style, serial comms are essentially asynchronous - you can't depend on port timing for real time use.

What you can do is set your sampling hardware to a defined sample rate less than the serial port rate, and buffer it in case there are delays that prevent a sample from being read by the host machine before the next sample is taken. I believe that modern uart chips have a built-in 16-byte buffer, and that may be adequate for your purposes.

On the host machine you can simply read the data continuously from the serial port and pass it to a buffer. A separate thread can read the buffer and process the PCM data.

For simulation purposes you might write a test program that uses COM1 to output a block of data at a slow rate, and COM2 to read data at a high rate, with a null modem cable between the two ports.

Heard in Bullhead City - "You haven't lost your girl -
you've just lost your turn..." [sigh] So true...
GeneralRe: Questions Pin
Davide Pizzolato14-Feb-04 0:32
Davide Pizzolato14-Feb-04 0:32 
GeneralRe: Questions Pin
Anonymous15-Feb-04 19:55
Anonymous15-Feb-04 19:55 
GeneralRe: Questions Pin
Davide Pizzolato16-Feb-04 11:26
Davide Pizzolato16-Feb-04 11:26 
QuestionHow to hide tab label ? Pin
c832212612-Feb-04 16:29
c832212612-Feb-04 16:29 
GeneralGame Programing Pin
kylerey12-Feb-04 16:12
kylerey12-Feb-04 16:12 
GeneralRe: Game Programing Pin
Tim Smith12-Feb-04 17:27
Tim Smith12-Feb-04 17:27 
GeneralRe: Game Programing Pin
John M. Drescher12-Feb-04 17:27
John M. Drescher12-Feb-04 17:27 
GeneralRe: Game Programing Pin
Selvam R12-Feb-04 23:29
professionalSelvam R12-Feb-04 23:29 
QuestionCEdit -> Caption Title??? Pin
kekelepervanche12-Feb-04 15:12
kekelepervanche12-Feb-04 15:12 
AnswerRe: CEdit -> Caption Title??? Pin
Ravi Bhavnani12-Feb-04 18:24
professionalRavi Bhavnani12-Feb-04 18:24 
AnswerRe: CEdit -> Caption Title??? Pin
Selvam R12-Feb-04 23:58
professionalSelvam R12-Feb-04 23:58 
GeneralMDIChild creation from dll Pin
Member 40856112-Feb-04 15:11
Member 40856112-Feb-04 15:11 
GeneralAdd popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy12-Feb-04 13:52
lxy12-Feb-04 13:52 
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
Roger Allen13-Feb-04 3:14
Roger Allen13-Feb-04 3:14 
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy16-Feb-04 22:21
lxy16-Feb-04 22:21 
GeneralKeeping startbar visible Pin
Chanbara12-Feb-04 13:38
Chanbara12-Feb-04 13:38 
GeneralSystemParametersInfo & SPI_SETMENUSHOWDELAY Pin
GregH12-Feb-04 11:29
GregH12-Feb-04 11:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.