How to download the the prog.

Status
Not open for further replies.

MGH

New Member
and i have the following problems:

1- when i wrote the assemply program in Mplab i didnt know how to download it

to the microcontroller (Does Mplab have the ability to download the program to

the IC).

2- when i tried to use winpic to open the HEX file generated by Mplab and

program the IC by it i get an error. i guess that happened because Mplab save

hex files in types (INHX32 and INHX8S)and winpic can accept hex files in types

(IHX8) only.

in brief, i need to program my own assmply program and download it to the

microcontroller , what is the program doing this? and how?
 
Homemade JDM (serial).

BUT THE PROBLEM NOT ON THE PROGRAMMER.
THE PROBLEM IS HOW TO WRITE THE ASSEMPLY PROG. AND DOWN LOAD IT TO THE IC
IN MPLAB I CAN WRITE THE ASSEMPLY PROG BUT I CANT BURN THE PIC
& IN WINPIC I CANT WRITE IN ASSEMPLY (JUST HEX) BUT I CAN BURN THE PIC.
THE HEX FILES FROM MPLAB NOT ACCEPTED IN WINPIC!!!!!!!!!
 

Attachments

  • untitled_219.jpg
    26.4 KB · Views: 479

Set MPLAB/MPASM to output files in the correct format, although the default setting is usually the correct one.
 
MGH said:
SORRY , BUT ONE MORE Q

CAN MPLAB BURN THE MICROCONTROLLER? HOW?

MPLAB can directly feed MicroChip's own programmers, like the PICStart+, or the ICD2 - and you can build clones of the ICD2.

But as you've already got a programmer (presuming it works?), you've got every thing you need.

MPASM (the assembler part of MPLAB) can be set to four different file types:

Default
INHX8M
INHX8S
INHX32

Mine is set to 'Default', and it produces files that WinPicProg can load, the default format is INHX8M.

I don't use MPLAB myself, I just use MPASM directly, but a quick check of the MPLAB helpfile only lists the last two file formats under 'Export HEX File'. You shouldn't be 'exporting', MPLAB should generate a INHX8M file, exporting presumably then converts it to the other file types?.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…