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
AI Thread 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:
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top