Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > Handy in and output circuit ....good for testing circuits .. idea's ..  Forum Quick Jump
 
New Topic Post Reply Printable Version
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

OzStamp
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 377
 
   Posted 10/1/2007 12:22 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hi All.
 
Alway's trying to wire a couple of inputs with a couple of outputs.
 
This was my criteria.. just for proto stuffing on my bench..
 
Wanted a simple  circuit that satisfies quick testing.. without releasing the magic smoke
from the Propeller Chip.
I seem to be testing little code snippets all the time.. shifting leds on and off
testing and proving sequences etc etc ... like to see leds confirming what's going on..
Mainly digital type stuff or routines that involve internal but shifting etc etc..
You know what we mean SPI  in/out   doing calculations shifting etc etc..
So see the attached document for the sketch on what was the outcome of it all.
 
The i/O pin when configured for input is pulled down with the 10K resistor
When the switch is closed the voltage as measured rises to 2.4V ( well above the threshold)
and detects a 1 .. (also the led lights up confirming a 1 is present on the input pin)
Of course when the switch is open the input is low ..
 
The I/O pin when configured for output sources power to the led via the resistor and the led
lights up.(when the output is set to high)
If the output pin is low the top resistor is in the circuit even if the switch is on the current
will be shunted away from the LED ( so not lit) the current is limited to safe margins...
Turning the switch on or off has no bearing at all on what the leds does.. the I/O pin
when set to output controls the status of the led.
 
The value of 560 Ohms works well .. even 680 or 820 Ohms as well
Just depends on how bright you want the led to be..I use nice bright little SHARP brand ones
and they work well at all the above values..
 
 
Enjoy
 
Ronald Nollet   OZ 
 
 
 
 
 
 

File Attachment :
handyinoutport.pdf   11KB (application/pdf)
This file has been downloaded 302 time(s).
Back to Top
 

Stan671
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2006
Total Posts : 103
 
   Posted 10/3/2007 11:37 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I do lots of testing with a few switches here and there and a few LEDs here and there. This nice little circuit uses only one I/O pin for either (or both) purposes. I am going to add a couple to my prototyping board immediately. Excellent. Thanks!


Stan Dobrowski

Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
 
Forum Information
Currently it is Thursday, July 29, 2010 5:17 PM (GMT -7)
There are a total of 462,439 posts in 62,066 threads.
In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
Who's Online
This forum has 20143 registered members. Please welcome our newest member, ME01.
52 Guest(s), 8 Registered Member(s) are currently online.  Details
John Abshier, Rayman, BradC, Sapieha, Gene Bonin, laser-vector, localroger, Nick McClick