DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

EDE300 View Datasheet(PDF) - Unspecified

Part Name
Description
Manufacturer
EDE300 Datasheet PDF : 9 Pages
1 2 3 4 5 6 7 8 9
The following code, written for the BASIC Stamp™ I, when used with the above schematic,
will loop from zero to ten, writing the appropriate binary value to the Output Port of the EDE300
each time, stopping with the binary value 00001010b latched onto the EDE300's data I/O port.
pause 200
for b2 = 0 to 10
serout 7,T2400,("1")
serout 7,T2400,(b2)
next b2
' pause Stamp while EDE300 powers up
' tell EDE300 to accept next byte of data
' send value in b2 to EDE300 to be latched
' repeat loop until b2 = ten
Unidirectional Communication with BASIC Stamp™ I - Input Only
The following schematic will make eight inputs from two Stamp pins. Notice that in the
previous example only one pin was required; in this example, however, we still need to maintain a
serial output pin on the stamp to tell the EDE300 to send data, as well as a serial input pin on the
Stamp to receive that data.
The following code, written for the BASIC Stamp™ I, when used with the above schematic, will read
the value on the EDE300's I/O port and return it to the PC programming the Stamp via a debug
window.
pause 200
serout 7,T2400,("2")
serin 6,T2400,b2
debug b2
' pause Stamp while EDE300 powers up
' tell EDE300 to read its I/O port and transmit the value
' read transmitted value into b2
' return value in b2 to Stamp's programming PC via debug window
COPYRIGHT © 1996 E-Lab Digital Engineering, Inc. All Rights Reserved. Page # 8

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]