RS232 Interface
Archiver
Posts: 46,084
Hi all,
I have a project, in which my 1st stage is to control the zooming of
a SONY video camera of the model no. FCB EX470LP. However, I have
some difficulty in figuring out the interface between the basic
stamp and the RS232 port of the video camera. Wonder if anyone can
help me.
I am supposed to use a RC controller which gives a PWM signal to a
basic stamp which will do some computation to calculate the duty
cycle and give some signal to the video camera to control the
zooming. The RS232 port of the video camera has the following pin
assignments:
Connect to Controller
PIN 1 TXD IN Transmit Data
Pin 2 DTR IN Data Transmission Ready
Pin 3 DSR IN Data Set Ready
Pin 4 RXD IN Receive Data
Pin 5 TXD OUT Transmit Data
Connect to next Camera
Pin 6 DTR OUT Data Transmission Ready
Pin 7 DSR OUT Data Set Ready
Pin 8 RXD OUT Data Set Ready
Pin 9 GND Ground
Pin 10 NC
I am not sure of the connection.I am a beginner in basic stamp and
RS232 connection. If I have to use the I/o pins with a circuit, can
someone pls provide me with some schematics of the circuit diagram.
I really appreciate your help.Thank you
I have a project, in which my 1st stage is to control the zooming of
a SONY video camera of the model no. FCB EX470LP. However, I have
some difficulty in figuring out the interface between the basic
stamp and the RS232 port of the video camera. Wonder if anyone can
help me.
I am supposed to use a RC controller which gives a PWM signal to a
basic stamp which will do some computation to calculate the duty
cycle and give some signal to the video camera to control the
zooming. The RS232 port of the video camera has the following pin
assignments:
Connect to Controller
PIN 1 TXD IN Transmit Data
Pin 2 DTR IN Data Transmission Ready
Pin 3 DSR IN Data Set Ready
Pin 4 RXD IN Receive Data
Pin 5 TXD OUT Transmit Data
Connect to next Camera
Pin 6 DTR OUT Data Transmission Ready
Pin 7 DSR OUT Data Set Ready
Pin 8 RXD OUT Data Set Ready
Pin 9 GND Ground
Pin 10 NC
I am not sure of the connection.I am a beginner in basic stamp and
RS232 connection. If I have to use the I/o pins with a circuit, can
someone pls provide me with some schematics of the circuit diagram.
I really appreciate your help.Thank you
Comments
The problem is twofold (maybe threefold!):
1) The serial connector is actually an RS455 connector (a balabnced
232). Fortunately you can build a simple converter cable to solve
this problem. Email me for the diagram.
2) Sony has a table of data codes associated with the function that
you want camera to do (iris adjust, focus, etc) accompanied with a
checksum system to guarantee valid data being sent. You must have
access to this information to properly control the camera.
3) This is the tough one...
Sony uses the baudrate of 38400,1 stop and odd parity to communicate
with most of their commercial broadcast equipment (in my case, a Sony
portable Beta VCR). Your baudrate may be different... not enough
information provided by you...
The problem I have is the odd parity. Which brings me to my question:
What can you all suggest about getting around this by simulating odd
parity at 38400 on a BS2?
Jim "Ack" Cambron
--- In basicstamps@y..., "juijing" <juijing@y...> wrote:
> Hi all,
> I have a project, in which my 1st stage is to control the zooming
of
> a SONY video camera of the model no. FCB EX470LP. However, I have
> some difficulty in figuring out the interface between the basic
> stamp and the RS232 port of the video camera. Wonder if anyone can
> help me.
> I am supposed to use a RC controller which gives a PWM signal to a
> basic stamp which will do some computation to calculate the duty
> cycle and give some signal to the video camera to control the
> zooming. The RS232 port of the video camera has the following pin
> assignments:
>
> Connect to Controller
> PIN 1 TXD IN Transmit Data
> Pin 2 DTR IN Data Transmission Ready
> Pin 3 DSR IN Data Set Ready
> Pin 4 RXD IN Receive Data
> Pin 5 TXD OUT Transmit Data
> Connect to next Camera
> Pin 6 DTR OUT Data Transmission Ready
> Pin 7 DSR OUT Data Set Ready
> Pin 8 RXD OUT Data Set Ready
> Pin 9 GND Ground
> Pin 10 NC
>
> I am not sure of the connection.I am a beginner in basic stamp and
> RS232 connection. If I have to use the I/o pins with a circuit, can
> someone pls provide me with some schematics of the circuit diagram.
> I really appreciate your help.Thank you
>Sony uses the baudrate of 38400,1 stop and odd parity to communicate
>with most of their commercial broadcast equipment (in my case, a Sony
>portable Beta VCR). Your baudrate may be different... not enough
>information provided by you...
>The problem I have is the odd parity. Which brings me to my question:
>What can you all suggest about getting around this by simulating odd
>parity at 38400 on a BS2?
>Jim "Ack" Cambron
How many data bits? If 7 with odd parity, you can use 8 data bits
and fill in the 8th bit with your own odd parity calculation. But if
8 bits with odd parity, then I think you will have to add an external
UART, like the MAX3100.
-- Tracy
>Sony uses the baudrate of 38400,1 stop and odd parity to communicate
>with most of their commercial broadcast equipment (in my case, a Sony
>portable Beta VCR). Your baudrate may be different... not enough
>information provided by you...
>The problem I have is the odd parity. Which brings me to my question:
>What can you all suggest about getting around this by simulating odd
>parity at 38400 on a BS2?
>Jim "Ack" Cambron
How many data bits? If 7 + odd parity, you can select 8 data bits
and fill in the 8th bit with your own parity calc. If 8 + odd
parity, then I'm afraid you will have to tack on an external UART,
like the MAX3100.
-- Tracy
I took a quick look at the Stamp Manual V2.0 and the 3100 data sheet
but could not find info on SPI/Microwire interfacing.
I think I remember somewhere in previous research that a Stamp can
interface using SPI/Microwire (or maybe not...) Any idea where I
might find that info? I shall continue the search from this end...
Even if the Stamp is not microwire compatible, I bet that there is a
suitable UART with a parallel input interface that can do the job
(although I may run low on I/O pins)!
Thanks, Tracy!
Jim
--- In basicstamps@y..., Tracy Allen <tracy@e...> wrote:
> >3) This is the tough one...
> >Sony uses the baudrate of 38400,1 stop and odd parity to
communicate
> >with most of their commercial broadcast equipment (in my case, a
Sony
> >portable Beta VCR). Your baudrate may be different... not enough
> >information provided by you...
> >The problem I have is the odd parity. Which brings me to my
question:
> >What can you all suggest about getting around this by simulating
odd
> >parity at 38400 on a BS2?
> >Jim "Ack" Cambron
>
> How many data bits? If 7 + odd parity, you can select 8 data bits
> and fill in the 8th bit with your own parity calc. If 8 + odd
> parity, then I'm afraid you will have to tack on an external UART,
> like the MAX3100.
>
> -- Tracy
>As per usual, DUHHH!
>
>I took a quick look at the Stamp Manual V2.0 and the 3100 data sheet
>but could not find info on SPI/Microwire interfacing.
>
>I think I remember somewhere in previous research that a Stamp can
>interface using SPI/Microwire (or maybe not...) Any idea where I
>might find that info? I shall continue the search from this end...
>
>Even if the Stamp is not microwire compatible, I bet that there is a
>suitable UART with a parallel input interface that can do the job
>(although I may run low on I/O pins)!
>
>
>Thanks, Tracy!
>
>
>Jim
Jim -
Shiftin and Shiftout will do it for you. Check the manual for details.
Bruce
Al Williams
AWC
* Floating point A/D
http://www.al-williams.com/awce/pak9.htm
>
Original Message
> From: Jim Cambron [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2DdgWoUSNrfg85OtLqzoSdDDqsJ8bTn6Xiz39rkuf0L50haGT4IurZCvbYKpkQPYKgfjNyEw7LkwKqkzVGLW6_iv5LI]nehsoft@n...[/url
> Sent: Wednesday, October 02, 2002 12:12 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]JUNK] [noparse][[/noparse]basicstamps] Re: RS232 Interface
>
>
> As per usual, DUHHH!
>
> I took a quick look at the Stamp Manual V2.0 and the 3100 data sheet
> but could not find info on SPI/Microwire interfacing.
>
> I think I remember somewhere in previous research that a Stamp can
> interface using SPI/Microwire (or maybe not...) Any idea where I
> might find that info? I shall continue the search from this end...
>
> Even if the Stamp is not microwire compatible, I bet that there is a
> suitable UART with a parallel input interface that can do the job
> (although I may run low on I/O pins)!
>
>
> Thanks, Tracy!
>
>
> Jim
>
>
> --- In basicstamps@y..., Tracy Allen <tracy@e...> wrote:
> > >3) This is the tough one...
> > >Sony uses the baudrate of 38400,1 stop and odd parity to
> communicate
> > >with most of their commercial broadcast equipment (in my case, a
> Sony
> > >portable Beta VCR). Your baudrate may be different... not enough
> > >information provided by you... The problem I have is the
> odd parity.
> > >Which brings me to my
> question:
> > >What can you all suggest about getting around this by simulating
> odd
> > >parity at 38400 on a BS2?
> > >Jim "Ack" Cambron
> >
> > How many data bits? If 7 + odd parity, you can select 8 data bits
> > and fill in the 8th bit with your own parity calc. If 8 + odd
> > parity, then I'm afraid you will have to tack on an external UART,
> > like the MAX3100.
> >
> > -- Tracy
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
the Xicor X25640 EEPROM. This devices uses SPI and there are code examples
given.
Here is a link, but it may wrap:
http://www.parallaxinc.com/downloads/Documentation/Application%20Kits/X25640
%208kb%20Serial%20EEPROM/X25640%208Kb%20Serial%20EEPROM.pdf
Original Message
> I took a quick look at the Stamp Manual V2.0 and the 3100 data sheet
> but could not find info on SPI/Microwire interfacing.
>
> I think I remember somewhere in previous research that a Stamp can
> interface using SPI/Microwire (or maybe not...) Any idea where I
> might find that info? I shall continue the search from this end...
"ordinary" SPI examples less than useful. The page at
http://www.wd5gnr.com/suart.htm shows a 3110 which -- I think -- is a
3100 with a MAX233 built in. Hard to get, though.
Al Williams
AWC
* Control 8 servos at once
http://www.al-williams.com/awce/pak8.htm
>
Original Message
> From: Rodent [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bY_nF-Dp8bVrpl1nOs6TO4xZUYhKokhrxolJJr6e6mNqj1zlyXIbDmVOmPo9UIxZkyNkOoiEvvp-Gw]daweasel@s...[/url
> Sent: Wednesday, October 02, 2002 12:33 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]JUNK] Re: [noparse][[/noparse]basicstamps] Re: RS232 Interface
>
>
> Just go to the Parallax web site and look up the AppKit
> documentation for the Xicor X25640 EEPROM. This devices uses
> SPI and there are code examples given.
>
> Here is a link, but it may wrap:
>
> http://www.parallaxinc.com/downloads/Documentation/Application
> %20Kits/X25640
> %208kb%20Serial%20EEPROM/X25640%208Kb%20Serial%20EEPROM.pdf
>
>
Original Message
>
> > I took a quick look at the Stamp Manual V2.0 and the 3100
> data sheet
> > but could not find info on SPI/Microwire interfacing.
> >
> > I think I remember somewhere in previous research that a Stamp can
> > interface using SPI/Microwire (or maybe not...) Any idea where I
> > might find that info? I shall continue the search from this end...
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
areas... Can you provide me with converter cable diagram?
Thank you!
Jim Cambron wrote:
Ahhh, someone with the same problem I have!
The problem is twofold (maybe threefold!):
1) The serial connector is actually an RS455 connector (a balabnced
232). Fortunately you can build a simple converter cable to solve
this problem. Email me for the diagram.
2) Sony has a table of data codes associated with the function that
you want camera to do (iris adjust, focus, etc) accompanied with a
checksum system to guarantee valid data being sent. You must have
access to this information to properly control the camera.
3) This is the tough one...
Sony uses the baudrate of 38400,1 stop and odd parity to communicate
with most of their commercial broadcast equipment (in my case, a Sony
portable Beta VCR). Your baudrate may be different... not enough
information provided by you...
The problem I have is the odd parity. Which brings me to my question:
What can you all suggest about getting around this by simulating odd
parity at 38400 on a BS2?
Jim "Ack" Cambron
--- In basicstamps@y..., "juijing" wrote:
> Hi all,
> I have a project, in which my 1st stage is to control the zooming
of
> a SONY video camera of the model no. FCB EX470LP. However, I have
> some difficulty in figuring out the interface between the basic
> stamp and the RS232 port of the video camera. Wonder if anyone can
> help me.
> I am supposed to use a RC controller which gives a PWM signal to a
> basic stamp which will do some computation to calculate the duty
> cycle and give some signal to the video camera to control the
> zooming. The RS232 port of the video camera has the following pin
> assignments:
>
> Connect to Controller
> PIN 1 TXD IN Transmit Data
> Pin 2 DTR IN Data Transmission Ready
> Pin 3 DSR IN Data Set Ready
> Pin 4 RXD IN Receive Data
> Pin 5 TXD OUT Transmit Data
> Connect to next Camera
> Pin 6 DTR OUT Data Transmission Ready
> Pin 7 DSR OUT Data Set Ready
> Pin 8 RXD OUT Data Set Ready
> Pin 9 GND Ground
> Pin 10 NC
>
> I am not sure of the connection.I am a beginner in basic stamp and
> RS232 connection. If I have to use the I/o pins with a circuit, can
> someone pls provide me with some schematics of the circuit diagram.
> I really appreciate your help.Thank you
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
[noparse][[/noparse]Non-text portions of this message have been removed]
> >3) This is the tough one...
> >Sony uses the baudrate of 38400,1 stop and odd parity to
communicate
> >with most of their commercial broadcast equipment (in my case, a
Sony
> >portable Beta VCR). Your baudrate may be different... not enough
> >information provided by you...
> >The problem I have is the odd parity. Which brings me to my
question:
> >What can you all suggest about getting around this by simulating
odd
> >parity at 38400 on a BS2?
> >Jim "Ack" Cambron
>
> How many data bits? If 7 + odd parity, you can select 8 data bits
> and fill in the 8th bit with your own parity calc. If 8 + odd
> parity, then I'm afraid you will have to tack on an external UART,
> like the MAX3100.
>
> -- Tracy
There are 8 data bits... (sorry)
and yes, it is Shiftout, not Serout... (oops!)
The sample code I am finding is incomplete looking --like if you buy
my product I'll give you the rest... anyone know of a source of
complete Max 3100/Stamp source code?
The other big question I have is, do I pre-calculate the odd parity
bit for the 8 bits of data and stuff it into the output data at
the "pt" bit? That would make sense to me...
Jim