serout
jcleaver
Posts: 17
new to the basic stamp
trying to setup a display using a 1 pin serial lcd (at89c2051 ic)
cannot get display to work
using bs2x
not alot of information with the lcd but seem to be set for 9600 baud
some of there example code serout txd 9600[noparse][[/noparse] "9" cr]
cannot use this code with my stamp ver
any help???
trying to setup a display using a 1 pin serial lcd (at89c2051 ic)
cannot get display to work
using bs2x
not alot of information with the lcd but seem to be set for 9600 baud
some of there example code serout txd 9600[noparse][[/noparse] "9" cr]
cannot use this code with my stamp ver
any help???
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
have tried all the sample·programs for the serout
plus just a simple
main:
serout 1, 16780, [noparse][[/noparse]"hello", cr]
pause 1000
goto main
tried many number for the baud display is connected to pin 1
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
still not working??
· ' =========================================================================
'
'·· File.......
'·· Purpose....
'·· Author..... Jon Williams -- Parallax, Inc.
'·· E-mail..... jwilliams@parallax.com
'·· Started....
'·· Updated.... DD MMM YYYY
'
'·· {$STAMP BS2sx}
'·· {$PBASIC 2.5}
'
' =========================================================================
'
[noparse][[/noparse] Program Description ]
'
[noparse][[/noparse] Revision History ]
'
[noparse][[/noparse] Conditional Definitions ]
'
[noparse][[/noparse] I/O Definitions ]
'
[noparse][[/noparse] Constants ]
#SELECT $STAMP
· #CASE BS2, BS2E, BS2PE
··· T1200······ CON···· 813
··· T2400······ CON···· 396
··· T4800······ CON···· 188
··· T9600······ CON···· 84
··· T19K2······ CON···· 32
··· TMidi······ CON···· 12
··· T38K4······ CON···· 6
· #CASE BS2SX, BS2P
··· T1200······ CON···· 2063
··· T2400······ CON···· 1021
··· T4800······ CON···· 500
··· T9600······ CON···· 240
··· T19K2······ CON···· 110
··· TMidi······ CON···· 60
··· T38K4······ CON···· 45
· #CASE BS2PX
··· T1200······ CON···· 3313
··· T2400······ CON···· 1646
··· T4800······ CON···· 813
··· T9600······ CON···· 396
··· T19K2······ CON···· 188
··· TMidi······ CON···· 108
··· T38K4······ CON···· 84
#ENDSELECT
SevenBit······· CON···· $2000
Inverted······· CON···· $4000
Open··········· CON···· $8000
Baud··········· CON···· T9600
'
[noparse][[/noparse] Variables ]
'
[noparse][[/noparse] EEPROM Data ]
'
[noparse][[/noparse] Initialization ]
Reset:
'
[noparse][[/noparse] Program Code ]
Main:
txd CON 1
· here:
· SEROUT TxD,baud,[noparse][[/noparse]"Hello world", CR]
· PAUSE 1000
· GOTO here
· END
'
[noparse][[/noparse] Subroutines ]
And did you try inverted mode?· If not, change the Baud defintion line to this:
Baud··· CON···· Inverted | T9600
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
did get it working ended being 8 bit 9600 no parity (240) still cant control the cursor properly