RS-232 help needed!
Hello,
I recently bought a Basic Stamp 2 and I have never worked with a microprocessor
before.
I have encountered a "small" problem! I tried to establish RS-232 communication
with a video camera that has a RS-232C port.
I've used the SEROUT command and the camera responded "parity error". Then I
noticed that the camera uses syncron communication, 8 data bits, 1 start bit, 1
stop bit and 1 parity bit (ODD). The Basic Stamp doesn't seem to be able to use
1 parity bit (ODD) and 8 data bits!
Have I understood this correctly? Is there any way around it?
The problem above doesn't really matter since SEROUT uses asyncron transfer and
the camera need syncron transfer. I could perhaps use the SHIFTOUT command but
there is another problem! The camera uses a 9-pin D-sub and the isn't any
connection for the clock signal. I've read that the clock signal can be encoded
into the data. But how is this done?
Can I use 1 parity bit (odd) with the shiftout command?
Please try to help me with this!
Thank you in advance.
Best regard
Johan Brostr
I recently bought a Basic Stamp 2 and I have never worked with a microprocessor
before.
I have encountered a "small" problem! I tried to establish RS-232 communication
with a video camera that has a RS-232C port.
I've used the SEROUT command and the camera responded "parity error". Then I
noticed that the camera uses syncron communication, 8 data bits, 1 start bit, 1
stop bit and 1 parity bit (ODD). The Basic Stamp doesn't seem to be able to use
1 parity bit (ODD) and 8 data bits!
Have I understood this correctly? Is there any way around it?
The problem above doesn't really matter since SEROUT uses asyncron transfer and
the camera need syncron transfer. I could perhaps use the SHIFTOUT command but
there is another problem! The camera uses a 9-pin D-sub and the isn't any
connection for the clock signal. I've read that the clock signal can be encoded
into the data. But how is this done?
Can I use 1 parity bit (odd) with the shiftout command?
Please try to help me with this!
Thank you in advance.
Best regard
Johan Brostr