More I/O Pins BS2P40
MRay
Posts: 4
Sorry if I posted this in the wrong place, I know there is a thread somewhere about this but I can't find it.
I have a project and I currently use three basic stamps, one stamp for each 3 digit Alphanumeric Stick.
I have Alphanumeric Displays each are 3 digits on one stick with 14 pins each stick is common anode. (I prefer anode.)
Anyway each three digit stick takes up 14 pins on any one stamp.
The Problem: Control each of the 14 segments with fewer pins, or find a way to add more pins to the Basic Stamp to accommodate three 3 digit Alphanumeric Displays.
Is it possible to control all 14 segments on one pin?
If not, Is there a way to shrink the amount of pins required?
My approach is to add extra I/O lines to the Basic Stamp, but I don't know how to do that.
Thanks
MRay
Post Edited (MRay) : 9/1/2007 4:21:38 AM GMT
I have a project and I currently use three basic stamps, one stamp for each 3 digit Alphanumeric Stick.
I have Alphanumeric Displays each are 3 digits on one stick with 14 pins each stick is common anode. (I prefer anode.)
Anyway each three digit stick takes up 14 pins on any one stamp.
The Problem: Control each of the 14 segments with fewer pins, or find a way to add more pins to the Basic Stamp to accommodate three 3 digit Alphanumeric Displays.
Is it possible to control all 14 segments on one pin?
If not, Is there a way to shrink the amount of pins required?
My approach is to add extra I/O lines to the Basic Stamp, but I don't know how to do that.
Thanks
MRay
Post Edited (MRay) : 9/1/2007 4:21:38 AM GMT
Comments
There are some examples of this in the StampWorks manual that you can download here.
Thanks.
MRay
The programming is actually quite simple. If your bitmask (for the segments) is called MASK, you can access individual bits as variables like MASK.BIT1 or MASK.BIT0 for the least significant two bits. Again, read the PBasic manual to see how to get at parts of words or bytes.
MRay
I have to get some sleep I will check out the manuals and get back to you on my progress, thanks for the heads up.
MRay