Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

7 Bit binary to Decimal on two 7-segment display.

Status
Not open for further replies.
Hello Dragon, My teacher gave me same homework but i realy dont understand electronic design. I'm an computer programming student and i find this. I have no idea how to make this. My teacher ask me this on proteus. Maybe you laugh but, could you help me about this? If you still have your design could you send me? Thank you.
 
Last edited:
Yeah i see. I want to try my chance. :) Because there is nothing on the internet about this.
I really doubt that.... Nigel and myself have done examples here on this site... ASM and C varieties...
 
Did you take a look at the circuits in post#19 and post#20?

Or you want to use an EPROM like 27C64?

7 BIN TO 7 SEG.PNG

So 0010011 binary is decoded to dec 19. But you must have some way to program the eprom....

Allen
 
You use an eprom programmer, of course...

the code is as below:
Code:
    org     0x00
    db    00,01,02,03,04,05,06,07
    db    08,09,10H,11H,12H,13H,14H,15H
    DB    16H,17H,18H,19H,20H,21H,22H,23H
    DB    24H,25H,26H,27H,28H,29H,30H,31H
    DB    32H,33H,34H,35H,36H,37H,38H,39H
    DB    40H,41H,42H,43H,44H,45H,46H,47H
    DB    48H,49H,50H,51H,52H,53H,54H,55H
    DB    56H,57H,58H,59H,60H,61H,62H,63H
    DB    64H,65H,66H,67H,68H,69H,70H,71H
    DB    72H,73H,74H,75H,76H,77H,78H,79H
    DB    80H,81H,82H,83H,84H,85H,86H,87H
    DB    88H,89H,90H,91H,92H,93H,94H,95H
    DB    96H,97H,98H,99H
    END

you can assemble with any mpu/mcu assembler, I guess.

Here is the object code in .bin
 

Attachments

  • EPROM DATA.bin
    98 bytes · Views: 117
You use an eprom programmer, of course...

the code is as below:
Code:
    org     0x00
    db    00,01,02,03,04,05,06,07
    db    08,09,10H,11H,12H,13H,14H,15H
    DB    16H,17H,18H,19H,20H,21H,22H,23H
    DB    24H,25H,26H,27H,28H,29H,30H,31H
    DB    32H,33H,34H,35H,36H,37H,38H,39H
    DB    40H,41H,42H,43H,44H,45H,46H,47H
    DB    48H,49H,50H,51H,52H,53H,54H,55H
    DB    56H,57H,58H,59H,60H,61H,62H,63H
    DB    64H,65H,66H,67H,68H,69H,70H,71H
    DB    72H,73H,74H,75H,76H,77H,78H,79H
    DB    80H,81H,82H,83H,84H,85H,86H,87H
    DB    88H,89H,90H,91H,92H,93H,94H,95H
    DB    96H,97H,98H,99H
    END

you can assemble with any mpu/mcu assembler, I guess.

Here is the object code in .bin

I'm using Proteus for this project. I double click to eprom (edit component) then image file > import the EPROM DATA.bin. Is that true?

PS : Something wrong with 2^3 = 8. When i input 0001000 , the 7 segments light 0-0.

img

img
 
Last edited:
Yes I am having the same problem. I check the file with HEXEDIT and looks like the assembler only assemble the left half of the file and the right halves are all 0s.

Here is the Hex format of the same file...
 

Attachments

  • EPROM DATA.hex
    304 bytes · Views: 137
Yes I am having the same problem. I check the file with HEXEDIT and looks like the assembler only assemble the left half of the file and the right halves are all 0s.

Here is the Hex format of the same file...

Oh, it works! You are really saved me, thank you for everything. You are the man bro!
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top