How do I send a file to a microcontroller for programming using a computer?

  • Thread starter Thread starter seang
  • Start date Start date
  • Tags Tags
    Microcontroller
Click For Summary
To send a file to a microcontroller for programming, users often utilize a JTAG interface, which is essential for debugging and single-step execution. While development boards simplify this process with built-in USB connections, standalone microcontrollers may require a DIY USB interface or direct coupling to a COM port. For Freescale microcontrollers, the COP implementation is relevant, and users are encouraged to research JTAG programming specifics. First-time users are advised to invest in a development kit for easier debugging and learning. Understanding the electrical characteristics of the JTAG port is crucial for successful programming.
seang
Messages
184
Reaction score
0
I'm thinking about buying a few DIP microcontrollers just for fooling around's sake. I think I'll be able to figure most things out except this: how do I send the necessary file (for example, .s19 for freescale mcs) to the microcontroller.

In school we have development boards which sort of magically have USB cables which do that part for us. Is there a pin for this on the chip? Will I have to build a USB interface or something?
 
Engineering news on Phys.org
Usually JTAG interface is used to program the uC, without those fancy dev.kit. No, if you only want to program the uC, JTAG-mode will suffice, but as soon as you start debugging (e.g single step execution) then, you'll need a real dev.kit.
 
alright, I read up on it a bit. I get what it is but I still have no idea how to implement it. Say I have the uC and a computer, what do I do?

I'll be using a freescale uC, and wikipedia tells me that their implementation is called COP. I'll be reading about that next if I can find anything

thanks
 
seang said:
alright, I read up on it a bit. I get what it is but I still have no idea how to implement it. Say I have the uC and a computer, what do I do?

I'll be using a freescale uC, and wikipedia tells me that their implementation is called COP. I'll be reading about that next if I can find anything

thanks

I'm no expert on JTAG programming, since I'm using a dev.kit from microchip, but you should check electrical characteristics of a JTAG port and check if you can directly couple it to a COM port on your computer and use some DIY software to directly program the device. Take a http://www.freescale.com/webapp/search/MainSERP.jsp?" for "jtag programming", it came up with 10+ results.

For first time users I still would recommend a dev.kit, since it is perfect for debugging. I invested some money into microchip dspic33 dev kit with debugging option and I can't complain, since i learned a lot from running single step execution on a programs that a write, hence learning a lot about how the uC works.
 
Last edited by a moderator:
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
8K
Replies
13
Views
4K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 8 ·
Replies
8
Views
8K