changing microprocessor type issue
Posted: Mon Jan 15, 2007 11:45 pm
I have a flowcode 3 program that runs fine on a 16F88 processor.
It uses (lowest 3 bits of) port A for digital output, port B as digital input (simple pushbuttion E-block for instance)
Since I wanted another version that would allow more data to be output during operation for status monitoring, I decided to try running it on a 16F877A and attach an LCD display (or the LED E-block for instance) to one of the extra ports (I tried port C).
I replaced the 16F88 with the 16F877A on the programmer, changed the target chip in flowcode to 16F877A and compiled to the chip. Compiling and coding go allright, but the program does not run at all. Also the hardware reset does not seem to function.
When I let flowcode autodetect the chip in the configuration screen, it does detect the 16F877A allright.
When I start with a new empty flowcode program file, select 16F877A as target chip and write some simple statements inputting bytes from port B and outputting them to port A and C everything works fine, so there's nothing wrong with the programmer board or the 16F877A
My last try was to take my 16F88 based program, export macros from it and import those in the "freshly made for the 16F877A" flowcode file.
This however does not compile. I get an error message saying (translation from dutch, so not exactly): check any C Code that's part of this program, could not compile C code incorporated in the program. If the C Code is known to be correct, contact technical support.
would appreciate any advice you can give me
It uses (lowest 3 bits of) port A for digital output, port B as digital input (simple pushbuttion E-block for instance)
Since I wanted another version that would allow more data to be output during operation for status monitoring, I decided to try running it on a 16F877A and attach an LCD display (or the LED E-block for instance) to one of the extra ports (I tried port C).
I replaced the 16F88 with the 16F877A on the programmer, changed the target chip in flowcode to 16F877A and compiled to the chip. Compiling and coding go allright, but the program does not run at all. Also the hardware reset does not seem to function.
When I let flowcode autodetect the chip in the configuration screen, it does detect the 16F877A allright.
When I start with a new empty flowcode program file, select 16F877A as target chip and write some simple statements inputting bytes from port B and outputting them to port A and C everything works fine, so there's nothing wrong with the programmer board or the 16F877A
My last try was to take my 16F88 based program, export macros from it and import those in the "freshly made for the 16F877A" flowcode file.
This however does not compile. I get an error message saying (translation from dutch, so not exactly): check any C Code that's part of this program, could not compile C code incorporated in the program. If the C Code is known to be correct, contact technical support.
would appreciate any advice you can give me