µTasker Forum

µTasker Forum => µTasker general => Topic started by: neil on November 06, 2008, 01:10:48 PM

Title: serial task
Post by: neil on November 06, 2008, 01:10:48 PM
Hi Mark,
  I have a serial port task set for character mode.  Am I right in thinking, that when data is coming in from the serial port it is placed in its internal buffer (defined in RxQueueSize variable during initialisation of the port), and within the serial task, it is then simply read in with the 'fnRead( SerialPortID, &ucInputMessage[0], 1)' command (I read in 1 byte at a time). Is it the same with the output? The size is defined with the TxQueueSize variable during initialisation of the port, and a fnWrite(SerialPortID, ....) writes to the internal buffer , and through interupt it is sent out (if DMA not used)

Neil
Title: Re: serial task
Post by: mark on November 06, 2008, 01:58:54 PM
Hi Neil

Yes, I think that your description is exact.

Regards

Mark