chipKIT® Development Platform

Inspired by Arduino™

Can low-level register manipulation be done in sketches?

Created Mon, 08 Apr 2013 07:08:31 +0000 by light


light

Mon, 08 Apr 2013 07:08:31 +0000

I am a complete newbie to PIC processors. MPIDE sketches use a high-level language. What if the library functions do not have what I want and I want to manipulate the registers directly? Can I do it in the sketch or do I have to write libraries, then import it into MPIDE?

Thank you.


Jacob Christ

Mon, 08 Apr 2013 12:00:15 +0000

It can be done in a sketch or lib. I would recommend avoiding doing so to keep you code cross platform. With that said your thinking is spot on, if you want to utilize functionality of the chip that is not available in a lib talk directly to the sfr's.

There are examples floating around on the message board. Just search for tris.

Jacob


majenko

Mon, 08 Apr 2013 13:39:10 +0000

Best way is to write a library, then share it around. That way other people benefit from your work too ;)