i have one query. Can we program one microcontroller using another microcontroller?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
i have one query. Can we program one microcontroller using another microcontroller?
Ankit,
This is typically possible. For which family of MCU's are you referring to?
A wiki for the 430 can be found here:
http://processors.wiki.ti.com/index.php/BSL_(MSP430)
-Jason
While not really a microcontroller, I've programmed FPGAs with microcontrollers using JTAG. It takes a while to get a hang of navigating the JTAG state machine, but it's a lot more powerful and flexible than a typical bootloader. You can easily bit-bang the JTAG ports with a reasonably fast MCU, I think anything more than a few MHz would do it.
Information for JTAG on MSP430
http://www.ti.com/lit/ug/slau320d/slau320d.pdf
An introduction to JTAG programming
http://www.fpga4fun.com/JTAG.html
Tony
Actually, the TI FETs contain an 8MHz clocked MSP430F1612 that does the JTAG ont eh target MSPs.TonyKao said:You can easily bit-bang the JTAG ports with a reasonably fast MCU, I think anything more than a few MHz would do it.
However, the 'high level' commands (and the data to be written) come from the PC in this case. But it could as well be an SD card with the new firmware etc.
i am doing programming..i have error at 1 point? can u tell me why i have error
#include <p18f4580.h>
#pragma config WDT = OFF
#pragma config OSC= IRCIO67
#pragma config PWRT=ON
#pragma config LVP=OFF
void EE_WRT(void);
unsigned char EE_READ(void);
void Delay(unsigned int itime);
void main()
{
unsigned char x;
TRISB=0;
EEADR=0x0;
EEDATA='Y';
EE_WRT();
EECON1bits.WREN=0;
EECON1bits.RD=1;
EEADR=0x0;
x=EE_READ();
PORTB=x;
}
void EE_WRT()
{
EECON1bits.EEPGD=0;
EECON1bits.CFGS=0;
EECON1bits.WREN=1;
INTCONbits.GIE=0;
EECON2=0x55;
EECON2=0xAA;
EECON1bits.WR=1;
INTCONbits.GIE=1;
While(!PIR2bits.EEIF);.................................................. i have error here
PIR2bits.EEIF=0;
}
unsigned char EE_READ()
{
EECON1bits.EEPGD=0;
EECON1bits.CFGS=0;
EECON1bits.RD=1;
return(EEDATA);
}
Anurag Saha said:i have error at 1 point
You actually have several "errors".
Your first error is that you have "hijacked" this thread; ie, you have posted in a thread having nothing whatsoever to do with your question!
You need to start your own, new thread with your unrelated question.
Anurag Saha said:While(!PIR2bits.EEIF);.................................................. i have error here
Your second error is that you haven't given any details whatsoever of what error you have at that point!
The tools give error messages to identify what the error is and, thus, how to fix it!
Read the text of the message(s) carefully, and think about what it's telling you - this should show you how to fix the error.
If you still need further help, start a new thread and post the full text of the error message - use copy & paste; do not manually re-type it.
**Attention** This is a public forum