News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Is possible to program a PIC using MASM?

Started by Shintaro, September 09, 2016, 04:35:22 PM

Previous topic - Next topic

Shintaro

Hi,

I have a bit of time between now and Christmas (just taking care of my kids) and was thinking about creating a fan controller for this http://www.ebay.com.au/itm/152089069232?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT cooling pad.
The fans are in the perfect position for my HP Envy M6.

So I was thinking of using a PIC so that I could interface it via USB and then create a small driver for windows (In ASM if at all possible?) for control.

There are a lot of circuit diagrams on the web so that is not a problem (I'm ok at reading circuit diagrams and creating test bread boards), but I would like to use masm to program the PIC rather than use another ASM variant.

Has anyone done something like this? Thoughts? Advice?

Kind regards.


"Wyrd bið ful āræd. Fate is inexorable."

Siekmanski

Programming a PIC with MASM is impossible (totally different architectures ), but you can write software in MASM to communicate with the microcontroller via USB on your PC.
You need a programming device to program/flash a PIC and a "PIC assembler or c/c++ compiler" to write software for the PIC microcontroller.
Don't know if there are PIC's with usb controllers onboard, else search "FTDI" for usb connection between a microcontroller and a PC.
I have converted the FTDI include files to MASM in case you need them. http://masm32.com/board/index.php?topic=1239.msg12113#msg12113
Creative coders use backward thinking techniques as a strategy.

K_F

I haven't looked at the PIC Dev kits for yonks, but other than Siekmanski says..
You're best off with buying a PIC programmer Dev kit from Microchip (or agents - Use legal agents otherwise nothing works).
These kits have all the hardware and usb drivers..

I can tell you they easy to use and hassle free.. don't waste your time re-inventing the wheel
:t
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'