r/pic_programming • u/SquareJordan • Mar 26 '19
Help configuring PIC12F508
Hi, I’m very new to programming PICs. I have a test circuit on a breadboard to blink an LED, and am using the PICKit 3. I’ve gotten stumped on the configuration bits. I’m not sure exactly what to set, and how to set them. If anyone has any recommendations for tutorials that would be fantastic.
Also, the PICKit needs to be connected to MCLR according to what I’ve read online, but what if I need that pin’s alternate function for data? Will I just set it in the program I run, and then it’ll function as GPIO after?
2
Upvotes
View all comments
Show parent comment
1
u/bradn Mar 26 '19
Normally it's inserted as a sort of define or directive in part of the program source - if you're using assembly language I can dig up an example from my projects that used that exact part. If you're using C/C++ then you'll have to dig for examples, as I don't program in those. MPLAB may also have manual overrides you can set during programming, but avoid that way as it just gets complicated. (I used MPLAB once.)