PICTRAIL WROTE:Here is a link to its datasheet...
http://ww1.microchip.com/downloads/en/D ... 41574A.pdf
Is the Hi-Tech compiler updated?
I need this version info before I can comment further. Please check for the compiler version and date.
PICTRAIL WROTE:Here is a link to its datasheet...
http://ww1.microchip.com/downloads/en/D ... 41574A.pdf
PICTRAIL WROTE:Yes Brian... The HiTech Compiler is updated i'm using it for other processors aswel.
Thanks for your anticipated support.
Best Regards.
ober WROTE:Brian, any model that I can try searching for the newer model? Would really like to take a look.![]()
PICTRAIL WROTE:Thanks! I did tried. Ports are working for LED's but the LCD character displayed is different from what i sent likewise UART also not responding. Meanwhile, same code was used on PIC16F877A and worked perfectly so i know its configuration problem.
Between, any idea on how to solve this error message on the Pickit 2 programmer "Warning: No configuration word in hex file".
Regards.
#define XTAL_FREQ 20MHZ //Set PIC clock frequency to 20MHz
PICTRAIL WROTE:In the configuration word, FOSC_HS was declared.
- CODE: SELECT_ALL_CODE
#define XTAL_FREQ 20MHZ //Set PIC clock frequency to 20MHz
//configuration bits
__CONFIG(FOSC_INTOSC&WDTE_OFF&PWRTE_ON&MCLRE_OFF&CP_ON&CPD_ON&BOREN_OFF&CLKOUTEN_OFF&IESO_OFF&FCMEN_OFF);
__CONFIG(WRT_OFF&VCAPEN_RA6&PLLEN_ON&STVREN_ON&LVP_OFF);
OSCCON=0b11110000; // setting for 32MHz =8MhzX4
__delay_ms(20);
//PORT setting
TRISA = 0b00111011; //analog=AN0,AN1,AN3,AN4
ANSELA= 0b00101011;
TRISB = 0b00011110; //analog=AN8-AN11
ANSELB= 0b00011110;
TRISC = 0b10000000;
TRISD = 0b00000000;
TRISE = 0b00000001;
OPTION_REG=0b01111111;
ANSELE = 0b00000000; //port E analog disabled
Users browsing this forum: No registered users and 1 guest