Hello, all!
I am having an issue with migration of a program written for Pic microcontroller that I wondered if anyone would know how to correct.
This program was originally written in assembly language for a PIC12F615 and was successfully migrated to PIC12HV615, PIC12F617, AND PIC16F684 with no issues. I now have tried to migrate this code to a PIC12F1840 enhanced midrange microcontroller. I have step by step very methodically changed over this program and have had success up to the point that I get up to a program line of say 1125 and my program does not work correctly. I am using MPLABX IDE and confirm with an oscilloscope. I have isolated a part of the program which uses CCP to capture a falling edge and check the code, I know the code is correct as I have used this code on the above mentioned PICS and following the datasheet to make sure my BANK selection is correct. I have tried moving my variables used in this section of code into 0x70 section of memory which is shared between all banks, but did not have any luck with it. I finally took this code and moved it from around the program line 1125 to the start of my program which is after the initialization and macros etc and ran it in simulation and on my oscilloscope and it works.
From the information above can anyone see what the issue is that I can not find as to why the code will not work at this point with this microcontroller? I migrated to the PIC 12F1840 because I want to use the USART and EEPROM sections also. I do not think it is a paging issue as I am still within 2048 words of code.
Suggestions?
Thank you all for your time and help.
Lisa
I am having an issue with migration of a program written for Pic microcontroller that I wondered if anyone would know how to correct.
This program was originally written in assembly language for a PIC12F615 and was successfully migrated to PIC12HV615, PIC12F617, AND PIC16F684 with no issues. I now have tried to migrate this code to a PIC12F1840 enhanced midrange microcontroller. I have step by step very methodically changed over this program and have had success up to the point that I get up to a program line of say 1125 and my program does not work correctly. I am using MPLABX IDE and confirm with an oscilloscope. I have isolated a part of the program which uses CCP to capture a falling edge and check the code, I know the code is correct as I have used this code on the above mentioned PICS and following the datasheet to make sure my BANK selection is correct. I have tried moving my variables used in this section of code into 0x70 section of memory which is shared between all banks, but did not have any luck with it. I finally took this code and moved it from around the program line 1125 to the start of my program which is after the initialization and macros etc and ran it in simulation and on my oscilloscope and it works.
From the information above can anyone see what the issue is that I can not find as to why the code will not work at this point with this microcontroller? I migrated to the PIC 12F1840 because I want to use the USART and EEPROM sections also. I do not think it is a paging issue as I am still within 2048 words of code.
Suggestions?
Thank you all for your time and help.
Lisa