Author Topic: Is possible to program a PIC using MASM?  (Read 691 times)

aparsons

  • Regular Member
  • *
  • Posts: 17
Is possible to program a PIC using MASM?
« on: September 09, 2016, 04:35:22 PM »
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.



Siekmanski

  • Member
  • *****
  • Posts: 1145
Re: Is possible to program a PIC using MASM?
« Reply #1 on: September 09, 2016, 05:29:59 PM »
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

K_F

  • Member
  • *****
  • Posts: 1294
  • Anybody out there?
Re: Is possible to program a PIC using MASM?
« Reply #2 on: September 13, 2016, 05:48:22 AM »
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....'