The first steps were to decide on a development environment to use, and then getting the PIC up and running. I knew I did not want to use MPLABX IDE as I always felt like it was slow, and cludgy. I liked the idea of using a basic text editor with some supporting framework, feeling that it would not let fancy IDE's do all the hard work of setup and configuration. After doing some research, I eventually settled on using Ceedling. I chose it because it aided in Test Driven Development (TDD), something I've grown quite fond of over time after seeing the benefits first hand.
After some days of tweaking and fiddling, I was able to get a basic program running to blink an LED using Ceedling as the build environment. I eventually settled on a pattern of testing my code using the simulator that comes with the MPLABX IDE, and running the code on the hardware periodically to make sure it worked on target as well. (Now I wish I had always tested in hardware as some of the SFR's in the simulator do not seem to be able to be set, which made things annoying to say the least. )
The next steps were to write up some functions to manipulate the GPIO.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.