📜 ⬆️ ⬇️

Programming microcontrollers PIC16 / PIC18 in C. The third article. Something about iron

All this is good when the LED flashes in the simulator, but it would be nice to see this action live.
I'll tell you briefly about the hardware of this process.


From iron we need:
- Actually controller with strapping;
- programmer.

On the first point you can :
a) assemble circuits on a breadboard;
on the first and second:
b) do it yourself;
c) buy a finished product.
')
More on item a :
Will be needed:
- bread board;
- soldering iron, solder, flux;
- basic soldering skills;
- the controller and the corresponding strapping;
- nippers, pliers and other tools;
- wires and other connectors.

image

Pros :
- simple and fast for small circuits;
- economically;
Minuses:
- there is a certain indicator of complexity when the layout becomes too nalyapisty;
- very fragile design;
- heavy troubleshooting (wire disappeared, missing contact).

Conclusion :
For starters, it is, if the question is $ acute.

On item b:
We are looking for a popular debugging circuit board. For example here - olimex.com
Even better are looking along with the printed circuit board.
If there is no picture you have to part the board yourself.
We download the program Sprint Layout 5. Very convenient and simple program for amateur (and not only) purposes.
We breed fee. We read about the LUT method of manufacturing printed circuit boards at home.
We print, we iron, we poison, we puddle, we carry out installation.
For the programmer is similar. In this case, there are a lot more finished projects in the network with schemes and drawing of conductors.
K need in this case will be added:
- laser printer;
- appropriate paper (usually coated, or film);
- ferric chloride;
- textolite;
- patience.

image

Pros :
- With sufficient skill, you can make quality products;
- economically;
Cons :
- quite difficult in technical terms;
- it will take a long time until they get decent results.

On item in:
About olimeks already mentioned. There is a good selection of debug / demo boards. There are no problems with delivery to Ukraine.
Where I still bought and with whom I am satisfied (not advertising):
- Moscow - Terraelectronics, an excellent choice, reasonable prices;
- Kiev - Flykont, the choice is poorer, but it is easier for Ukrainians to buy.
The fee will cost $ 50-100.

image

With programmers easier. From cheaper I advise JDM-like programmers. Works through the COM port. Price from $ 20.
Of the more expensive PonyProg used. Now PICkit2. Last about $ 40. Works via USB.
From software I recommend:
- for JDM - WinPIC800;
- ICProg;
- PICKit sews straight from MPLAB, which is very convenient.

image

It turned out one water, but all the same someone will come in handy as a starting point.

Source: https://habr.com/ru/post/75418/


All Articles