Friday, January 20, 2012

Reading multiple switches from one I/O pin

Normally one input switch requires one digital input pin of a microcontroller. Use of keypad style multiplexing saves some input pins while interfacing an array of switches. There exist another technique based on ADC channel that allows to connect multiple switches on a single input pin of a microcontroller. This tutorial from Embedded Lab demonstrates this as applied to PIC12F683 microcontroller.


In this example, there are four LEDs and four tact switches connected to the PIC12F683 microcontroller. While each LED is controlled through an individual I/O pin, the four switches are connected to one ADC input pin of the PIC12F683 microcontroller.

1 comments:

Unknown said...

This is how my associate Wesley Virgin's tale begins with this shocking and controversial VIDEO.

You see, Wesley was in the army-and soon after leaving-he revealed hidden, "self mind control" tactics that the CIA and others used to get anything they want.

As it turns out, these are the exact same secrets tons of famous people (notably those who "come out of nowhere") and top business people used to become wealthy and successful.

You probably know that you use less than 10% of your brain.

That's mostly because most of your brainpower is UNCONSCIOUS.

Perhaps that expression has even occurred INSIDE OF YOUR own brain... as it did in my good friend Wesley Virgin's brain 7 years back, while driving a non-registered, trash bucket of a vehicle without a driver's license and on his debit card.

"I'm absolutely fed up with going through life paycheck to paycheck! When will I finally succeed?"

You took part in those conversations, ain't it right?

Your success story is waiting to happen. You need to start believing in YOURSELF.

CLICK HERE TO LEARN WESLEY'S SECRETS

Post a Comment