Shop OBEX P1 Docs P2 Docs Learn Events
IC Driver, MC14489BP and the Propeller — Parallax Forums

IC Driver, MC14489BP and the Propeller

LEDboyLEDboy Posts: 21
edited 2009-06-04 01:25 in Propeller 1
Can someone please give me an example·code for sending the information from the propeller to the MC14489 in order to display a "score" on the 16 segment LED on the PPDB.· This is just for my own use.· So far I have writen code and used some other peoples code to display "Bumpper1" and "Bumpper2" on a VGA monitor when 1 of 2 buttons on the PPDB are pressed...now what I would like to do is everythime I hit one of the buttons it displays a 10 on the 16 segment LEDs and whenever you hit the same button it adds 10 to the the previous score.

I know this chip is used for 7 segment LEDs but I dont need all 16 segments so I thought this would work just fine for now. This is just me·trying to write code·for a pinball machine I am going·to build later I'm just using the PPDB as a test platform for the code. I will post what I have on here so far if anyone would like to see.· Like I said right now all that happens so far is when button 1 or 2 are hit "Bumpper1" or "Bumpper2" are flashed up on the screen and a "ring" sound is made...When button 3 or 4 are hit "Flipper1" or "Flipper2" are flashed up on the screen to repersent the Bumppers or Flippers where activated. Now I would just like to use the LED segments to display a score.

Comments

  • LEDboyLEDboy Posts: 21
    edited 2009-06-03 05:16
    Ok so I cheated alittle...I used a 7-segment chip and my BS2PDB...and just wired it up to the PPDB.· But I'm still trying to figure out how to write the code so I can use it on the PPDB and do away with the BS2PDB.· Can someone show me an example of code that will send the data to the 7-segment chip or some other resource that will help me out.
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-06-03 13:39
    Hello LEDboy,

    now there's a week over with no answer-postings to your question

    I think I know the reason.
    There is not a single line of code from YOURSELF.

    All the information you gave was the serial number of the chip MC14489.

    This means it is a great effort for forum members to give an answer

    1.) find a download page for the chip
    2.) download the datasheet
    3.) start reading in the datasheet
    4a.) write some code with no possability for really testing it
    4b.) buy the chip to be able to test some code for it

    I hope you can see this is an initial effort almost nobody wants to take

    If you break down the problem to

    "here is a picture of the timing diagram showing the clock and dataline (attach a picture from the datasheet)
    I tried the following code but nothing happens - what am I doing wrong ?"

    I think you will get answers

    I'm sure you are NOT that type of guy but some even MIGHT think you are someone "I don't kow it - do it for me"

    Another solution would be to use 74HC595-serial shiftregisters to control all the pins of the 16segment-displays
    for 74hc595-shiftregisters there is code in the obex

    and if you come up with a detail-question with your code attached you will get a lot of answers

    So come up with your first lines of code asking a concrete question

    best regards

    Stefan
  • LEDboyLEDboy Posts: 21
    edited 2009-06-04 01:25
    Thanks Stefan,
    ···
    ···· I'll post the code I have when I get home...I've been posting all of this from work.· I dont have any code for the LED segments cause I have no clue how to write it...All the code thats working the LEDs are for the BS2 using SERIN and SEROUT...and thats what I'm trying to figure out how do I write a SEROUT command for the propeller.
    ·
Sign In or Register to comment.