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.

reassemble a new HEX file

Status
Not open for further replies.

macobt

New Member
I need to reassemble a ASM file to hex file and some other changes,but I dont know how,J have made the one segment clock nixie and j have a 4MHz crystal.
Here is link to website;

**broken link removed**

And some pictures of my problem
 

Attachments

  • problem picture.jpg
    problem picture.jpg
    145.3 KB · Views: 156
If you have used a nixie tube it will not work. Can you get it to work with the hex file from the site. It will run a bit fast but it will show that your hardware is correct and you can program your chip. To assemble the asm file you need to download (free) MPLAB from the microchip website.

Mike.
 
OK, here's the hex file for a 4MHz crystal.
Code:
:020000040000FA
:100000008E018F0190019101023092000130930026
:1000100094018501860183168501803086000430B5
:1000200081008312861FCF28372072200B1D1628CF
:100030008B01A1200C08143A031D222830308600C1
:100040001F3085008C0B162814280F398207403486
:10005000793424343034193412340234783400348E
:1000600010347F347F347F347F347F347F347A3070
:100070008C008E0A0E08093C031808007B308C00A7
:100080008E018F0A0F08053C0318080079308C0098
:100090008F01900A1008093C031808007B308C007F
:1000A0009001910A1108053C031808007C308C006F
:1000B00091011308003C03186828920A1208023CB8
:1000C000031808007D308C009201920A9301080009
:1000D000920A1208093C031808007D308C00920136
:1000E000930A08009501940A1408083C031C940123
:1000F0001408013A03198A28033A03198F28013A90
:1001000003199228073A03199528303086001F30CA
:100110008500080095151308031D9728080015157C
:10012000120897289514110897281514100897009D
:1001300025208D001F3985000D0C303915048600EF
:100140000800861B0800950803190800970A17087D
:10015000093C031C970117089720C720861FAE286B
:10016000C720861FAE2814309600861FA628C720F9
:10017000960BB528170894018F018E0195199300ED
:1001800015199200951891001518900014280C303C
:100190008C000B1DC9288B018C0BC9280800960107
:1001A00016089720C720C720960A16080A3A031D8A
:0401B000D028CF285C
:02400E00F93F78
:00000001FF
You need to copy this to notepad and save it as a hex file.

Mike.
 
Thanks a lot MIke,J have made the changes and reprogram the pic,and now the time will tell,we wil see if clock is runing faster.
I gona write again to told you.
Best regards Maco
 
Hi again Mike
I have see that this is 12 hour clock code,can you make 24 hour if you want and if you have time.
 
Here you go,

Code:
:020000040000FA
:100000008E018F0190019101023092000130930026
:1000100094018501860183168501803086000430B5
:1000200081008312861FCE28372071200B1D1628D1
:100030008B01A0200C08143A031D222830308600C2
:100040001F3085008C0B162814280F398207403486
:10005000793424343034193412340234783400348E
:1000600010347F347F347F347F347F347F347A3070
:100070008C008E0A0E08093C031808007B308C00A7
:100080008E018F0A0F08053C0318080079308C0098
:100090008F01900A1008093C031808007B308C007F
:1000A0009001910A1108053C031808007C308C006F
:1000B00091011308013C03186728920A1208033CB7
:1000C000031808007D308C00920193010800920A09
:1000D0001208093C031808007D308C009201930A35
:1000E00008009501940A1408083C031C94011408A4
:1000F000013A03198928033A03198E28013A031992
:100100009128073A03199428303086001F30850063
:10011000080095151308031D9628080015151208E8
:100120009628951411089628151410089700252074
:100130008D001F3985000D0C30391504860008002C
:10014000861B0800950803190800970A1708093C40
:10015000031C970117089620C620861FAD28C620CD
:10016000861FAD2814309600861FA528C620960B42
:10017000B428170894018F018E0195199300151961
:100180009200951891001518900014280C308C00DE
:100190000B1DC8288B018C0BC82808009601160877
:1001A0009620C620C620960A16080A3A031DCF28B4
:0201B000CE2857
:02400E00F93F78
:00000001FF

Edit, to do this took less than 1 minute including getting the code from the link you provided. Why not take the time and try and learn how to use MPLAB so you can do this yourself.

Mike.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top