Difference between revisions of "DsPic-Raspberry programmer interface"
Jump to navigation
Jump to search
| Line 48: | Line 48: | ||
==Software use== | ==Software use== | ||
| + | |||
The picpgm software is [http://picpgm.picprojects.net/index.html hosted here] and should be used with the following script: | The picpgm software is [http://picpgm.picprojects.net/index.html hosted here] and should be used with the following script: | ||
| − | < | + | <br>Bash file @ /etc/rc.local<br/> |
| − | <br>Phyton | + | <pre>CODE</pre> |
| + | |||
| + | |||
| + | <br>Phyton script<br/> | ||
<pre>CODE</pre> | <pre>CODE</pre> | ||
| − | |||
| − | |||
A backup is also founded at elab1/... | A backup is also founded at elab1/... | ||
Revision as of 10:56, 13 May 2020
dsPic-Raspberry programmer interface
A general purpose interface consisting in two opto-couplers have been developed to program the dsPic micro-controllers directly from the Raspberry, allowing remote maintenance and reprogramming of each de-localized unit.
It as to be powered by 12 V (minimum voltage 10.5V - maximum voltage 13.5V) dsPic node unregulated Vcc and feed by the Raspberry GP_I/O, with a common digital ground.
Pin-out and connections
The following table describes the pin-out assembly of the opt-programmer developed to be used with picpgm software.
| Programmer pin-out | |||||
|---|---|---|---|---|---|
| Rasp I/O | Label | Programmer I/O | Cable | ||
| 39 | GND | GND | Blue/Wh | ||
| 37 | GPIO26 | TBD - Function | Brown | ||
| 35 | GPIO19 | TBD | Blue | ||
| 33 | GPIO13 | TBD | Green | ||
| 29 | GPIO05 | TBD | Brown/Wh | ||
| 03 | GPIO02 | TBD | Orange | ||
Software use
The picpgm software is hosted here and should be used with the following script:
Bash file @ /etc/rc.local
CODE
Phyton script
CODE
A backup is also founded at elab1/...