hi
I am usign an 8-bit Parallel In Seial Out shift register to shift data to a max232 ic which is connected to the serial port of my PC. I am not using a UART, but simply clocking the shift register at 9.6Khz
I have designed a VB aplication to read the data from the shift register and display its value.
from the 8 bits being sent to the shift register, one is the start bit and one is the stop nit. therefore my data is oly 6-bit long.
my problem is that i can see the output of the MAX232 being correctly sent to the PC using the the oscilloscope but i cannot interpret the data being sent to the VB application.
since i could be making an error in the code,(but i am sure that the receive buffer is receiving data), i tried to use HyperTerminal to see the incoming dat but still the data doesnt relate to anything being sent to the pc
i tried using 2 different setting: 9600,N,6,1 and 19200,N,6,1
this is wat i get
i am sending a stream of 6 bits + one start bit + 1 stop bit.
the problem is that when i send out the folowing streams: 001000, 001111, 100100, 100110, 100111-----i always get an '8'
the following streams 001010, 001011,101010,101011 always return '&'
the following stream 000100, 000110, 000111, 100010, 100011 always return a blank space ' '
the folowing stream 010000, 011000, 011111,,101000 always give me '>'
these are the only values that i get when reading from HyperTerminal, even VB gave me some of the above results
i tried the port setting 9600,N,6,1 as well as 19200,N,6,1
any idea what is wrong? Can someone please help???
thx in advance
PS:
can someone please confirm if HyperTeminal is supposed to display only ASCII charaters or can it display data in any other format?
I am usign an 8-bit Parallel In Seial Out shift register to shift data to a max232 ic which is connected to the serial port of my PC. I am not using a UART, but simply clocking the shift register at 9.6Khz
I have designed a VB aplication to read the data from the shift register and display its value.
from the 8 bits being sent to the shift register, one is the start bit and one is the stop nit. therefore my data is oly 6-bit long.
my problem is that i can see the output of the MAX232 being correctly sent to the PC using the the oscilloscope but i cannot interpret the data being sent to the VB application.
since i could be making an error in the code,(but i am sure that the receive buffer is receiving data), i tried to use HyperTerminal to see the incoming dat but still the data doesnt relate to anything being sent to the pc
i tried using 2 different setting: 9600,N,6,1 and 19200,N,6,1
this is wat i get
i am sending a stream of 6 bits + one start bit + 1 stop bit.
the problem is that when i send out the folowing streams: 001000, 001111, 100100, 100110, 100111-----i always get an '8'
the following streams 001010, 001011,101010,101011 always return '&'
the following stream 000100, 000110, 000111, 100010, 100011 always return a blank space ' '
the folowing stream 010000, 011000, 011111,,101000 always give me '>'
these are the only values that i get when reading from HyperTerminal, even VB gave me some of the above results
i tried the port setting 9600,N,6,1 as well as 19200,N,6,1
any idea what is wrong? Can someone please help???
thx in advance
PS:
can someone please confirm if HyperTeminal is supposed to display only ASCII charaters or can it display data in any other format?