121
µTasker general / 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
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