28128 Parallax Inc, 28128 Datasheet - Page 88

no-image

28128

Manufacturer Part Number
28128
Description
KIT BASIC ANALOG/DIGI PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28128

Accessory Type
ADC, DAC
Product
Microcontroller Accessories
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Here is how to count from 0 to 15 using a nibble:
When nibble b is selected using
corresponding to a data direction as shown below:
Bit in nibble B
I/O pin
If we used the command “
like this:
Bit value
I/O pin
0 = 0000
1 = 0001
2 = 0010
3 = 0011
P7
P7
3
0
P6
P6
2
1
DIRB = 4
4 = 0100
5 = 0101
6 = 0110
7 = 0111
P5
P5
DIRB
1
0
, each bit in the number
” the following direction register bits would be set
P4
P4
0
0
10 = 1010
11 = 1011
8 = 1000
9 = 1001
DIRB
is set equal to a value
Figure 4-5
Debug Terminal
Output for Program
Listing 4.1, Revision
2.
12 = 1100
13 = 1101
14 = 1110
15 = 1111

Related parts for 28128