27220 Parallax Inc, 27220 Datasheet - Page 208

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
Program: SW21-EX34-Serial_IO.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' This program demonstrates serial communications with a PC, using flow
' control to ensure the BASIC Stamp is ready before the PC attempts to
' send new information.
' -----[ I/O Definitions ]-------------------------------------------------
TX
RTS
RX
CTS
DQ
Clock
Reset
LEDs
' -----[ Constants ]-------------------------------------------------------
T2400
T9600
T38K4
SevenBit
Inverted
Open
Baud
CMenu
CGetId
CSetId
CTemp
CTmpC
CTmpF
CGetLeds
CSetLeds
RdTmp
WrHi
WrLo
RdHi
RdLo
PIN
PIN
PIN
PIN
CON
CON
CON
VAR
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
15
14
13
12
4
5
6
OUTA
396
84
6
$2000
$4000
$8000
T9600
$FF
$F0
$F1
$A0
$A1
$A2
$B0
$B1
$AA
$01
$02
$A1
$A2
' transmit to PC
' Request To Send
' receive from PC
' Clear To Send
' DS1620.1 (data I/O)
' DS1620.2
' DS1620.3
' LED outputs
' True for inverter
' show command menu
' get string ID
' set string ID
' get DS1620,display raw count
' get DS1620 - display in C
' get DS1620 - display in F
' get digital output status
' set LED outputs
' read temperature
' write TH (high temp)
' write TL (low temp)
' read TH
' read TL

Related parts for 27220