Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | Differences in PicBasic Pro code between a 16F877A and 16C765

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Differences in PicBasic Pro code between a 16F877A and 16C765 - castaways3373 - Oct 22 11:07:00 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!





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Differences in PicBasic Pro code between a 16F877A and 16C765 - castaways3373 - Oct 22 11:08:00 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!




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )