RE: Full-Duplex Serial Driver
schwiegjc
Posts: 41
The ASCII data stream from a sensor can be successfully read using Serin_Wait(2,@DataIn,"T",4800,mode,8) function (mode=1 or non-inverted) but does not work with Full-Duplex Serial Driver start(2, 2, mode, 4800) function. Is it because of the value of the mode variable? Note. The mode variable never seems to be assigned in the Full-Duplex Serial Driver.
The mode variable is defined for Serin-Wait function as:
Mode: 0 = Inverted - Normally low Constant: BS2#Inv
1 = Non-Inverted - Normally High Constant: BS2#NI
The mode variable is defined for start function as:
'' mode bit 0 = invert rx
'' mode bit 1 = invert tx
'' mode bit 2 = open-drain/source tx
'' mode bit 3 = ignore tx echo on rx
The mode variable is defined for Serin-Wait function as:
Mode: 0 = Inverted - Normally low Constant: BS2#Inv
1 = Non-Inverted - Normally High Constant: BS2#NI
The mode variable is defined for start function as:
'' mode bit 0 = invert rx
'' mode bit 1 = invert tx
'' mode bit 2 = open-drain/source tx
'' mode bit 3 = ignore tx echo on rx
Comments