Differences in PicBasic Pro code between a 16F877A and 16C765

Started by castaways3373 October 22, 2003
i have a code that i wrote and tested on a 16F877A. i couldn't use a
16C765 because i didn't have any 24MHz xtals, but now that i do, i
can't successfully program the same code onto the 16C765. the progam
will read in a value from a separate A/D and then output the data
serially. the only thing i changed in the program was this line:

DEFINE OSC 24

whereas for the 16F877A, it used to say:

DEFINE OSC 4

i had looked this up online and was told to add the statement:

ADCON1 = 7

so i even added that, and it still doesn't give me any expected
results. i'm using the epic programmer and the settings for the
oscillator are 'HS' and i did change it from 16F877A to 16C765 in the
epic settings.

Please help!



i have a code that i wrote and tested on a 16F877A. i couldn't use a
16C765 because i didn't have any 24MHz xtals, but now that i do, i
can't successfully program the same code onto the 16C765. the progam
will read in a value from a separate A/D and then output the data
serially. the only thing i changed in the program was this line:

DEFINE OSC 24

whereas for the 16F877A, it used to say:

DEFINE OSC 4

i had looked this up online and was told to add the statement:

ADCON1 = 7

so i even added that, and it still doesn't give me any expected
results. i'm using the epic programmer and the settings for the
oscillator are 'HS' and i did change it from 16F877A to 16C765 in the
epic settings.

Please help!