Ready to run Serial RenVoltmeter
jediako
Posts: 4
I bought this Serial VoltmeterSoftware from Reynolds Electronics, www.rentron.com/index.html.
After two fruitless phone calls to Reynolds Electronics, Dave, from Parallax Tech. Support suggested
to change the baud rate from 16468 to 16624 and later asked me to post.
The code below was written for the Basic Stamp II Interface with AD0831. It tokenizes/downloads
successfully on my BS2p P40 Demo Board but does not communicate with the RenVoltmeter. Please help. Thanks. John.
' ( $ STAMP BS2p )
' ( $ PBASIC 2.5 )
' ( $ PORT COM 1 )
ADres VAR Byte ' A-to-D result: one byte
CS CON 0 ' chip select P0
AData CON 1 ' ADC data output P1
CLK CON 2 ' clock P2
baud CON 16624 ' N9600
HIGH CS ' Deselect ADC to start
again:
LOW CS ' Activate the ADC0831
SHIFTIN AData,CLK,MSBPOST, [noparse][[/noparse] ADres\9 ] ' shift in the data
HIGH CS ' Deactivate AD0831
PAUSE 500
SEROUT 3, baud, [noparse][[/noparse] ADres ]
PAUSE 1000
GOTO again ' Do it again.
After two fruitless phone calls to Reynolds Electronics, Dave, from Parallax Tech. Support suggested
to change the baud rate from 16468 to 16624 and later asked me to post.
The code below was written for the Basic Stamp II Interface with AD0831. It tokenizes/downloads
successfully on my BS2p P40 Demo Board but does not communicate with the RenVoltmeter. Please help. Thanks. John.
' ( $ STAMP BS2p )
' ( $ PBASIC 2.5 )
' ( $ PORT COM 1 )
ADres VAR Byte ' A-to-D result: one byte
CS CON 0 ' chip select P0
AData CON 1 ' ADC data output P1
CLK CON 2 ' clock P2
baud CON 16624 ' N9600
HIGH CS ' Deselect ADC to start
again:
LOW CS ' Activate the ADC0831
SHIFTIN AData,CLK,MSBPOST, [noparse][[/noparse] ADres\9 ] ' shift in the data
HIGH CS ' Deactivate AD0831
PAUSE 500
SEROUT 3, baud, [noparse][[/noparse] ADres ]
PAUSE 1000
GOTO again ' Do it again.
Comments
You don't indicate whether you spoke to Bruce Reynols or not in your phone call attempts, If you did not, I'd suggest sending an email. He may not be in the office over the weekend to answer the phone, but he ALWAYS responds to his email within 24 hoursor less, so long as he is able to do so.
Normally technical support from Reynolds Electronics is just as good as that from Parallax.
If you contact him by email and don't get a response within 24 hours from them, contact me at the email addres below, and I'll see if I can assist you. Unfortunately I presently know nothing about the software you're speaking about.
Just for the record, the beginning of your program will have to look like that below before it will pass through the Stamp Editor without errors:
' { $STAMP BS2p }
' { $PBASIC 2.5 }
' { $PORT COM1 }
I suspect the differences may just be typos, when you transcribed the program onto this forum, rather than copying-and-pasting it.
Regards,
Bruce Bates
bvbates @ usamailbox.com
I will inform you about the outcome of my talk with Bruce Renolds tomorrow.
John.
to the DB-9 connector.
John.