Shop OBEX P1 Docs P2 Docs Learn Events
HEF4543 Example Code (SPIN)? — Parallax Forums

HEF4543 Example Code (SPIN)?

Hi everyone,

Has anyone ever used the HEF4543B with the Propeller? I'm using it as a BCD to 7-Seg decoder (I have a dual 7 segment display I'm driving with the HEF4543). In the past I've used the 74HC595 shift register; it has its own object file (Channels_74HC595.spin) which was pretty handy in the code-writing process. I can't seem to locate an object file or example code to study the best way to interface with the HEF4543. Does anyone have any they can include (SPIN)? If not, suggestions, best practices, or lessons learned?

Thank you!

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2016-06-26 06:32
    But Chad, surely something as simple as a 7-seg decoder has no need for an object. Does programming these days consist of having a library or object for every simple thing. What's in a bcd to 7-seg decoder anyway? Feed it the 4-bit BCD number and the 7-segments are hooked up to you know....7 segments. So if you had an "object" what would you feed it? A 4-bit BCD number. So the chip is the object.

    btw, you may need to clean up the duplicate thread [delete]
  • Duplicate post deleted.
  • kwinnkwinn Posts: 8,697
    As Peter posted, its pretty straight forward. Output D0-D3, set /LE low, set /LE high, and you're done. For LED displays PH is connected to ground for common cathode & Vdd for common anode. For LCD's you need to provide a square wave signal that connects to PH and the LCD backplane.
Sign In or Register to comment.