Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 6th December 2007, 04:56 PM   (permalink)
Default Standalone PIC Programming with MMC which is including HEX file

Hi all,
I have an elevator control card.I need the program card's mcu without computer .Shortly I need read data from SPI and write it on PIC's program memory.
I found a lot of example project about MMC and..But I need to understand how it works first.
I m using C18 compiler.and I saw PICDEM-FS demo board..there is an example for PICDEM-FS named MDS on Proteus VSM samples..Can anyone help about this title and how can I find Proteus VSM PICDEM-FS(MDS) firmware codes.
(PICDEM FS is in Proteus USB VSM samples directory..)
Thanks
paranoideyez is offline  
Old 6th December 2007, 10:34 PM   (permalink)
Default

Microchip publish programming specifications for all their PICs. With those you can write code for a master PIC, so that the master PIC programs the target one.

The steps are:-
1). enter programming mode
2) collect some of the .hex file from MMC card
3)send data to target PIC, one instruction at a time
4) Repeat 2 & 3 until you get to the end of the .hex file
5) leave programming mode and reset target.

You still need a PC to get the program onto the master PIC.

I've programmed a target PIC (I used a 10F200) from a master (16F877), but the 16F877 has enough memory to hold its program and the program of the 10F200, so I didn't need a MMC card.

If you are wanting to program a more advanced PIC, you can write a bootloader program, so the PIC reads data from the MMC card then writes that data onto itself. You still need a PC to get the bootloader onto the PIC.
Diver300 is offline  
Old 7th December 2007, 01:02 AM   (permalink)
Default

I sometimes updating my elevator firmware.So my customers have to bring the PIC to me for update..But I want to send update's hex file them via my web site..And they download it into their MMC card.
I can't use more than one PIC..I m using 18F4550.So I need to reserve a small area for bootloader on program memory..Your solution seems good..
But I m coding elevator program in ASM...I suppose I need to write bootloader in C...But when I use C,The code's dimension spending very much area on program memory..is it possible to coding the bootloader with ASM..Here is my start project..Thanks for your helps.



paranoideyez is offline  
Old 7th December 2007, 01:10 AM   (permalink)
Default

I sometimes updating my elevator firmware.So my customers have to bring the PIC to me for update..But I want to send update's hex file them via my web site..And they download it into their MMC card.
I can't use more than one PIC..I m using 18F4550.So I need to reserve a small area for bootloader on program memory..Your solution seems good..
But I m coding elevator program in ASM...I suppose I need to write bootloader in C...But when I use C,The code's dimension spending very much area on program memory..is it possible to coding the bootloader with ASM..Here is my start project..Thanks for your helps.
paranoideyez is offline  
Old 7th December 2007, 07:42 AM   (permalink)
Default

The bootloader can be in assembler. Even if the bootloader is written in C, most compilers produce assembler code from the source code in C. That can be incorporated into your other code.

If you want a separate PIC, that doesn't have to be a permanent part of your circuit. It only has to be present while the program is being updated. You could use:-

http://www.flexipanel.com/TEAclipper.htm
Diver300 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Quik PIC Programming kit Krumlink General Electronics Chat 5 28th January 2008 12:27 AM
PIC Programming. Joe McGivern Electronic Projects Design/Ideas/Reviews 4 1st December 2007 07:38 AM
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 01:21 AM
Programming PIC to generate square wave elec123 Micro Controllers 11 13th October 2007 02:15 PM
Programming HEX file with MPlab/Inchworm gregmcc Micro Controllers 4 27th April 2007 04:20 PM



All times are GMT. The time now is 04:01 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker