Amulet lcd troubles
Archiver
Posts: 46,084
Hello,
I have been trying and trying to get my BS2P24 to send a word value
to the 3.8" Amulet lcd. To those of you who have dealt with the
display, what is wrong here??
Connections are right, baud is right, serout data format good...
Thank you,
John
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-
1">
<META NAME="Amulet" Content="baud=9600">
<META NAME="Amulet" Content="BASICStamp">
<META NAME="Amulet" Content="SlaveNoRsp">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="320"
HEIGHT="240">
<tr>
<td height="40">
<applet code="Field.class" width="92" height="30" align="BOTTOM"
name="Numtest">
<param name="href" value="Amulet:InternalRAM.word(3).value()">
<param name="numFontSize" value="3">
<param name="numFontStyle" value="bold">
<param name="min" value="0">
<param name="max" value="900">
<param name="printf" value="%3i">
<param name="minFld" value="0">
<param name="maxFld" value="900">
<param name="updateRate" value=".33">
<param name="horizontalAlign" value="left">
<param name="verticalAlign" value="bottom">
</applet><font size="3"> Test</font>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</BODY>
</HTML>
'{$STAMP BS2p}
Wout VAR Word
Varnum VAR Byte
Main:
Wout = 87
Varnum = 3
SEROUT 16,84,[noparse][[/noparse]$D6,HEX2 Varnum, HEX4 Wout]
GOTO Main
I have been trying and trying to get my BS2P24 to send a word value
to the 3.8" Amulet lcd. To those of you who have dealt with the
display, what is wrong here??
Connections are right, baud is right, serout data format good...
Thank you,
John
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-
1">
<META NAME="Amulet" Content="baud=9600">
<META NAME="Amulet" Content="BASICStamp">
<META NAME="Amulet" Content="SlaveNoRsp">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="320"
HEIGHT="240">
<tr>
<td height="40">
<applet code="Field.class" width="92" height="30" align="BOTTOM"
name="Numtest">
<param name="href" value="Amulet:InternalRAM.word(3).value()">
<param name="numFontSize" value="3">
<param name="numFontStyle" value="bold">
<param name="min" value="0">
<param name="max" value="900">
<param name="printf" value="%3i">
<param name="minFld" value="0">
<param name="maxFld" value="900">
<param name="updateRate" value=".33">
<param name="horizontalAlign" value="left">
<param name="verticalAlign" value="bottom">
</applet><font size="3"> Test</font>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</BODY>
</HTML>
'{$STAMP BS2p}
Wout VAR Word
Varnum VAR Byte
Main:
Wout = 87
Varnum = 3
SEROUT 16,84,[noparse][[/noparse]$D6,HEX2 Varnum, HEX4 Wout]
GOTO Main
Comments
is for the BS2/BS2e/BS2pe. You should be using 240. Since PBASIC 2.5
offers conditional compilation, I use this block in all of my programs
that need serial comms:
#SELECT $STAMP
#CASE BS2, BS2E, BS2PE
T1200 CON 813
T2400 CON 396
T4800 CON 188
T9600 CON 84
T192K CON 32
T384K CON 6
#CASE BS2SX, BS2P
T1200 CON 2063
T2400 CON 1021
T4800 CON 501
T9600 CON 240
T192K CON 110
T384K CON 45
#ENDSELECT
Inverted CON $4000
Open CON $8000
Baud CON T9600
-- just changed the Baud constant to reflect transmission speed, and on
those projects where you need it you can add Inverted or Open to the
value.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: cn00728 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wxKBAC3EqqBPKPtZRjWr9VcP17ItS7-rgFqwKbVKo2W9AWrnfWgT5YiXXWbpqn1gWOrg8zmtRzki0g]cn00728@y...[/url
Sent: Saturday, December 06, 2003 10:52 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Amulet lcd troubles
Hello,
I have been trying and trying to get my BS2P24 to send a word value
to the 3.8" Amulet lcd. To those of you who have dealt with the
display, what is wrong here??
Connections are right, baud is right, serout data format good...
Thank you,
John
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-
1">
<META NAME="Amulet" Content="baud=9600">
<META NAME="Amulet" Content="BASICStamp">
<META NAME="Amulet" Content="SlaveNoRsp">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="320"
HEIGHT="240"> <tr> <td height="40"> <applet code="Field.class"
width="92" height="30" align="BOTTOM" name="Numtest"> <param name="href"
value="Amulet:InternalRAM.word(3).value()">
<param name="numFontSize" value="3">
<param name="numFontStyle" value="bold">
<param name="min" value="0">
<param name="max" value="900">
<param name="printf" value="%3i">
<param name="minFld" value="0">
<param name="maxFld" value="900">
<param name="updateRate" value=".33">
<param name="horizontalAlign" value="left">
<param name="verticalAlign" value="bottom">
</applet><font size="3"> Test</font>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</BODY>
</HTML>
'{$STAMP BS2p}
Wout VAR Word
Varnum VAR Byte
Main:
Wout = 87
Varnum = 3
SEROUT 16,84,[noparse][[/noparse]$D6,HEX2 Varnum, HEX4 Wout]
GOTO Main
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/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....