Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - DISPLAY

(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?
Thu Apr 15 2021, 20:02:29, download attachment TIRO.ld
(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.
Fri Apr 16 2021, 07:44:21, download attachment bcd_test.ld
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?
Fri Apr 16 2021, 20:29:34
(no subject) (by Ihor Nehrutsa)
Yes.
Here is only packed BCD.
Sat Apr 17 2021, 02:59:38, download attachment bcd_test_packed.pl
(no subject) (by Ihor Nehrutsa)
Oh sorry, the right answer was "No".
Sat Apr 17 2021, 03:02:58
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):