Admit I am novice. Using MpLab IDE, PicBasic Pro, Pic12f683, pickit2 programmer. Need 5 I/O pins for project and trying to use GPIO.3 as input but need to set MCLRE off. So using __config directive as stated in www.melabs.com/support/config_defaults.htm
@__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF
Placed directive at start of Source program and my understanding is this would override any .inc header default cmds. Doesn't. Won't compile and recieve error massage
Error Unable to execute mpasmwin. Warning [205] c:\PBP|Buttoncmd.asm 94: Found directive in column 1. (__config)
Error [118] c:\PBP|Buttoncmd.asm 94: Overwriting previous address contects (2007)
Understand error 108 that my program is trying to write into address with default bit already set ... but I thougt assembly line _config directive should override. Not sure what warning [205] is saying.
Did homework in your FAQ and commented out _config in .inc header for the Pic12f683 MPASM assembler as suggested but made no difference.
Can overcome by switching to pic chip with more I/O ports so avoid pin with MCLRE and use general I/O pin set for input to allow for button. BUT really trying to understand what is going on. So any input or direction to iinput that could help would be appreciated.
Bookmarks