I/O pins count increase
![hmlittle59](https://forums.parallax.com/uploads/userpics/199/nCR6ABWFQF1HY.jpg)
Hello All,
I've used all 16 pins and need 2 more. Short of changing chips is there any other way to increase the pin count with additional components???
Any help please...I did a search of forum and could not find any thing
thanks to all
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
I've used all 16 pins and need 2 more. Short of changing chips is there any other way to increase the pin count with additional components???
Any help please...I did a search of forum and could not find any thing
thanks to all
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
Comments
Can you post a schematic? There may be ways to consolidate the pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
1) output
DS1302 chip/4 push sw/1 Piezo/1 LCD/3 R-G-Y LEDs/3 scrs/3 MAG. sw... the LEDs (green on/red off) can not be consolidated because at times they need to be both off.
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
http://forums.parallax.com/showthread.php?p=552892
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
thanks again
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
thanks again
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I'm still trying to understand all that is happening with your program and schematic. I've down loaded a .PDF file for the chip to better understand how it works and the program is executing . My current thinking is to use my LAST free Data line to control one more (SSR) not (SCR) like I stated before(my bad) and (2)HIGH/LOW of a switch. Is that possible with only one last I/O line???
thanks for any help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
First I understand the theory/concept of whats suppose to happen, but for me to jump in now and start redoing my code and electronics, I'm FAR from that point so if you could bare with me PLEASE. Note:With the 4th spin of my board I switched to DIPtracePCB software and used all SMT components even the BS2. I'm now using the BS2e and I'm in Bank 3 with my code that monitors the SW, activates the SSRs and Piezo. To avoid any major coding problems my thinking is to move the LEDs(2) and Piezo(1) to the SPI chip because this should be just on/off.
So now I should have:
1) LEDs(2)+Piezo(1) = 3
2) FREE Pin(1) = 1
3) DS1302 (2) share = 2
that should be 6 lines to get the SPI working...My thinking is to activate the Piezo(chirp), turn ON/OFF the LEDs as needed and program the DS1302 without going thru the SPI chip, that way I will not have to bother the routines for the Switches and SSR(they have a lot of activity going on within those sub-Routines).
I Googled the chip and read some of the links about Master/Slave hook ups trying to understand how it works..Within my program I Set the DS1302 and read/write to the DS1302 RAM for storage so I know how to Set/Clear but I don't see any of this going on within your BINARY program(set/clear). Maybe I'm just way off base in my thinking of how this chip works and thats why I can't grasp it. I see were you Gosub Out_595. Point me some were to Read more on the Basics...thanks
thanks for your time
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I HAVE LEARN SO MUCH...BUT STILL KNOW SO LITTLE!!!
hmlittle59
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
try this ..... i'm not sure it will work with you
Nut & Volt Magazine - Column #79 (Expand Your Stamp’s I/O With I2C)
thanks for (Mike Green) who told me before about it
regards