|
|
|
(you are viewing a thread; or go back to
list of threads)
DISPLAY (by Mauro )
Dear friends:
I'm creating a circuit to stop a pulley in a predeterminated distance (3, 4 and 10 meters). The distance is seted in a push button, and the pulley has a encober (5 pulses in XENC = 1 meter), but i would like to use a LED display to show the distance, using two IC CD4511. Is needed use another BIN2BCD converter? How I must proceed to configure it correctly? how i must configure te pins that will send the BCD code to the CD 4511?
(no subject) (by Ihor Nehrutsa)
You may use unpacked(one digit-one byte)
or packed(one digit-one nibble-four bits) bcd format.
In first case you need 2 ports of MCU, so connect
D0,D1,D2,D3 of CD4511 to PORTD0,PORTD1,PORTD2,PORTD3 and D0,D1,D2,D3 of CD4511 to PORTE0,PORTE1,PORTE2,PORTE3.
In second case need 1 port of MCU, so connect
D0,D1,D2,D3 of CD4511 to PORTF0,PORTF1,PORTF2,PORTF3 and D0,D1,D2,D3 of CD4511 to PORTF4,PORTF5,PORTF6,PORTF7.
DISPLAY (by Mauro )
Dear friend:
Initially I thought im second option. Use only one port to show the numbers. In the example you send me, all that lines will be used in both cases?
(no subject) (by Ihor Nehrutsa)
Yes.
Here is only packed BCD.
(no subject) (by Ihor Nehrutsa)
Oh sorry, the right answer was "No".
Post a reply to this comment:
|