Pauldesign
Senior Member
Hi
I have some few RS232 serial data simulation queries.
1) The SIR protocol stipulates a start bit and 12 data bits (7 data bits and 5 device bits). Is the order of the data bits MSB or LSB because when i analysed the infraout commands the data bit are flipped or mirrored. Neglecting the start bit and delays between bits: a data bit e.g of 5 and a device ID of 1 displays as 1010000 10000 instead of 0000101 00001.
What type of data format is the SIR protocol transmitted?
2) How can i analyse a serial data stream using the virtual scope? For example sending the code serout 2, N2400 (#b0 or b0 or "b0") where b0=5, i expect to see the RS232 protocol with 5 as the serial data but i see just a straight line (zeros). I can see the serial data (5 in this case) using the virtual terminal but disappears if i connect a scope.
What i'm trying to do is to modulate a PWM signal with a data bit connected to a Schmidt trigger NAND gate, whose output goes to a virtual IR link, then scope the output of the optocoupler to see if the data is right (although this can be monitored using a LED). I've achieved the above (OOK) using a high (38KHz) as carrier and low (1KHz) as data signals of 50 % duty cycles each and it work just fine but not with a serout command.
Can somebody please enlighten me.
Rgds
Paul
I have some few RS232 serial data simulation queries.
1) The SIR protocol stipulates a start bit and 12 data bits (7 data bits and 5 device bits). Is the order of the data bits MSB or LSB because when i analysed the infraout commands the data bit are flipped or mirrored. Neglecting the start bit and delays between bits: a data bit e.g of 5 and a device ID of 1 displays as 1010000 10000 instead of 0000101 00001.
What type of data format is the SIR protocol transmitted?
2) How can i analyse a serial data stream using the virtual scope? For example sending the code serout 2, N2400 (#b0 or b0 or "b0") where b0=5, i expect to see the RS232 protocol with 5 as the serial data but i see just a straight line (zeros). I can see the serial data (5 in this case) using the virtual terminal but disappears if i connect a scope.
What i'm trying to do is to modulate a PWM signal with a data bit connected to a Schmidt trigger NAND gate, whose output goes to a virtual IR link, then scope the output of the optocoupler to see if the data is right (although this can be monitored using a LED). I've achieved the above (OOK) using a high (38KHz) as carrier and low (1KHz) as data signals of 50 % duty cycles each and it work just fine but not with a serout command.
Can somebody please enlighten me.
Rgds
Paul