From Mark Willis, Jeff King, Don McKenzie, Craig Lee
(A)--\/\/--+-----+-----+
# | |
# | |
(B)--\/\/--+--+--(--+ |
# # # #
# # # #
(C)--\/\/--+--+--+ | |
# | |
# | |
(D)--\/\/--+--------+--+
Where each ## in the diagram is actually two LED hooked "anti-parallel" like this:
|----|<-----|
-| |-
|---->|-----|
ABCD LED ON
---- ------
0000 none
1111 none
zzzz none
01zz 1
10zz 2
0z1z 3
1z0z 4
z01z 5
z10z 6
0zz1 7
1zz0 8
zz01 9
zz10 10
z0z1 11
z1z0 12
Questions:
James Newton replies: Now that I think about it: Yes, in a microcontroller z would represent a pin that had been set as an input.+
| file: /techref/io/led/12w4pins.htm, 2KB, , updated: 2007/4/2 12:58, local time: 2009/11/21 21:54,
38.107.191.102:LOG IN
|
| ©2009 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? Please DO link to this page! Digg it! <A HREF="http://piclist.com/techref/io/led/12w4pins.htm"> Light Emitting Diode Displays - Driving 12 leds with 4 uController pins</A> |
| Did you find what you needed? |
THE book for getting started with the PIC uC!
5 stars at Amazon.com
Now available from piclist.com for $34.95 ($7.50 S&H)
|
|
Ubicom SX18 thru SX52, PIC 16c5X compatibile, 50 to 75 MIPS microcontrollers! Now US customers can buy the Excellent SXDev from SXList.com for $150 + $15 import fee + s&h (~ $180 total+tax in CA) |
.