barcode generator vb.net code THE BASIC STAMP 2 in Software

Creating ANSI/AIM Code 128 in Software THE BASIC STAMP 2

12 THE BASIC STAMP 2
Code128 Reader In None
Using Barcode Control SDK for Software Control to generate, create, read, scan barcode image in Software applications.
Draw Code 128 In None
Using Barcode creation for Software Control to generate, create Code 128 Code Set A image in Software applications.
+5V +5V
Code 128A Recognizer In None
Using Barcode decoder for Software Control to read, scan read, scan image in Software applications.
USS Code 128 Maker In Visual C#.NET
Using Barcode creator for VS .NET Control to generate, create Code128 image in .NET applications.
9-pin serial 6 PSR RESET
Create Code 128B In .NET
Using Barcode maker for ASP.NET Control to generate, create USS Code 128 image in ASP.NET applications.
Code 128 Code Set C Generator In .NET Framework
Using Barcode encoder for .NET framework Control to generate, create Code 128A image in .NET framework applications.
3 2 1 5 6 6 7
Draw Code 128 Code Set C In VB.NET
Using Barcode maker for .NET framework Control to generate, create ANSI/AIM Code 128 image in .NET framework applications.
Universal Product Code Version A Printer In None
Using Barcode creation for Software Control to generate, create Universal Product Code version A image in Software applications.
R1 3
Generate Data Matrix ECC200 In None
Using Barcode generator for Software Control to generate, create ECC200 image in Software applications.
Draw GS1-128 In None
Using Barcode generator for Software Control to generate, create EAN128 image in Software applications.
2 1 27
Printing EAN13 In None
Using Barcode creation for Software Control to generate, create UPC - 13 image in Software applications.
Encoding Barcode In None
Using Barcode maker for Software Control to generate, create bar code image in Software applications.
4 P8 P9 P10 P11 P12 P13 P14 P15
USD8 Maker In None
Using Barcode generator for Software Control to generate, create USD8 image in Software applications.
Code 128 Creation In Java
Using Barcode encoder for Java Control to generate, create Code 128 Code Set A image in Java applications.
7 RTS 5 GND
Create EAN / UCC - 13 In None
Using Barcode printer for Word Control to generate, create EAN 13 image in Word applications.
Generating Barcode In Java
Using Barcode encoder for Android Control to generate, create bar code image in Android applications.
28 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 2
DataMatrix Creator In None
Using Barcode drawer for Font Control to generate, create Data Matrix image in Font applications.
European Article Number 13 Maker In Objective-C
Using Barcode drawer for iPad Control to generate, create EAN13 image in iPad applications.
R2 R3 8
Matrix 2D Barcode Creator In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create 2D Barcode image in ASP.NET applications.
Encoding Bar Code In C#.NET
Using Barcode maker for Visual Studio .NET Control to generate, create bar code image in .NET framework applications.
4 DTR 3 TXD
14 7 16 1 3 4 5 D1
2 RXD
C4 C5
2 6 15
P6 P5 P4 P3
P2 P1
Figure 1-10 Alternative STAMP 2.
STAMP 2 has 16 I/Os, but the pinouts are different from the original STAMP 2. The alternative STAMP 2 provides P0 through P15 at the interpreter chip pins 10 through 25. A simple trick is to add 10 to the functional designation; see the chart in Table 1-4. In order to connect input switches to the STAMP 2 s I/O, you will need to install 10-k pull-up resistors from the 5-V supply to the STAMP 2 pins that will be used for inputs (see Fig. 1-11). The MAX232 chip at U3 is a serial interface chip that allows the 16C57 PIC processor to communicate to your personal computer, so that you can download your programs via the serial port of your PC (see Fig. 1-12).
An Exercise
Now let s have some fun and exercise the alternative STAMP 2 (refer to the diagram in Fig. 1-13). For this first project, you will need two 470- resistors and two LEDs as well as
O C6
+12V
AN EXERCISE 13
TABLE 1-4
ORIGINAL STAMP 2 VERSUS ALTERNATIVE STAMP 2 PINOUTS ORIGINAL STAMP 2 PIN ALTERNATIVE STAMP 2 PIN
P DESIGNATION
P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14 P15
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
two 10-k resistors and two momentary pushbutton switches as shown. The LEDs are connected to pins P0 and P1 and the two input switches are connected to pins P2 and P3. The program will begin blinking one of the LEDs when switch S1 is pressed. When S2 is pressed, the second LED will begin blinking with a double blink. The blink program demonstrates the use of inputs and outputs as well as whether the alternative STAMP 2 is functioning. Once the test circuit has been breadboarded or built on a perfboard or PC board, you are now ready to load your first program into the microprocessor. Once you have assembled your alternative STAMP 2, you will need to connect it to your PC s serial port, using a serial programming cable. Once your serial cable has been built and connected between your PC and the alternative STAMP 2, apply power through the 5-V regulator and you are ready to roll. Locate the Windows desktop editor software STAMPW.EXE and call it up on your PC. Once the program has been installed and called up, you can apply power to your alternative STAMP 2 circuit and support chips. Remember, if you are using the alternative STAMP 2, you will need to provide 5 V to pin 2. You are now ready to begin programming your new STAMP 2 microcontroller. Type the BLINK.BS2 program (Listing 1-1) into the Windows STAMP 2 editor and then run the blink program to test your alternative STAMP 2. Your alternative STAMP 2 should now come to life as soon as you press switch S1 or S2. You are now on your way to programming and enjoying your STAMP 2 microprocessor.
14 THE BASIC STAMP 2
N/O P7 P6 P5 P4 P3 P2 P1 P0
"Alternative" STAMP 2
PIC16C57
+5V Figure 1-11 Alternative STAMP 2 input connections.
Parallax, the supplier of the STAMP products, has very good online documentation. The Parallax website also has many application notes and links to many other STAMP providers and hobbyists. The resources on the enclosed CD-ROM will aid the STAMP 2 project builder with additional tools. Appendix 1 contains complete data sheets that are used for projects in this book. Appendix 2 contains a number of important tables and charts and commands, which should prove be very useful. Appendix 3 lists a number of important websites and support chip manufacturers that complement the BASIC STAMP 2. The STAMP 2 manual can be found on the companion CD-ROM as well as all the program listings for the projects contained in this book. An additional section on the CD-ROM contains many additional STAMP 2 projects not covered in this book.
Copyright © OnBarcode.com . All rights reserved.