![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| hi! it's me again, this time i was wondering if i am able to connect a Switch(input) and a base a a transistor for selecting 7-segment display(output) all these in one pin of the AT89S8252 port1. how will these work? your response is highly appreciated!
__________________ nedzamba thendo biko | |
| |
| | (permalink) |
| Can you re-frame your question? I am not able to udersatnd what you are asking.
__________________ "There is no way to peace, peace is the way!" | |
| |
| | (permalink) |
| Me again! i'm asking if it's possible to use a pin as an input and output at the same time. my input is a switch and my output is a base of a transistor(To select one of the 7-segment displays). 1-PIN = 1 SWITCH + 1 TRANSISTOR. how will it work?
__________________ nedzamba thendo biko | |
| |
| | (permalink) |
| It might depend on what type of transistor you use and what state the pin is when the switch is close..... It might work as long as you make sure that the switch doesn't trigger the transistor. Ivancho | |
| |
| | (permalink) |
| Yes it is possible through multiplexing. See this schematic and code. It just does what you are looking for : http://chaokhun.kmitl.ac.th/~kswichi...-seg/7-seg.htm
__________________ "There is no way to peace, peace is the way!" | |
| |