[Tutor] Programming pic chips with python

Alan Gauld alan.gauld at btinternet.com
Mon Apr 26 17:35:42 CEST 2010

"Humphrey" <humphreybutau at vodamail.co.za> wrote

> I am new to python and i want to ask if python can be used in electronics 
> like for programming programmable chips like the PIC16F series. 

It depends on your chip development environment.
If the programmer connects to a PC (via serial or USB for example) 
then usually there will be standard Windows libraries that expose 
an API onto the chip. In that case you can use the ctypes module 
in Python to communicate with the programmer.

If the programmer is standalone it will be much harder, 
maybe impossible. And if it is a bespoke platform using 
a standard OS(eg Linux) then its likely possible to get the 
Python source to build on the platform and use it, but how 
much use it would be will dpened on how the programmer 
makes itself available in an API.

It will take a fair bit of in depth research to find out exactly 
what will work in your case.


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list