Author Topic: serial task  (Read 7930 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
serial task
« 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

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: serial task
« Reply #1 on: November 06, 2008, 01:58:54 PM »
Hi Neil

Yes, I think that your description is exact.

Regards

Mark