cfgwrd2 not implemented

Status
Not open for further replies.

arafatfvz

New Member
hi I am simulating my program with Proteus ISIS and is showing that there is problem with my configuration. On Proteus software shows me CFGWORD2 not implemented. in my circuit i use pic16f877 and max6952 led driver please help. my code and electronic circuit ;

void maxim(char reg, char bilgi)
{
int MaxSayisi=1;
unsigned char dongu=1;
PORTC.F0 = 0;
for(dongu=1;dongu<=MaxSayisi;dongu++)
{
spi1_write(reg);
spi1_write(bilgi);
//spi2_write(reg);
//spi2_write(bilgi);
//SPI_WRITE(reg);
//SPI_WRITE(data);

}
PORTC.F0 = 1;
PORTC.F0 = 0;

}

void MAX_6952_init(){

maxim(0x04,0x01); //Configuration

maxim(0x01,0x0FF); //intensity10 yoğunluk

maxim(0x02,0x0FF); //intensity32

maxim(0x03,0xff); //scan limit

}

void main(){


char a[ ]=" fevzi ";
int i;
TRISC=0B00011000;
Spi1_Init();
MAX_6952_init();
while(1)
{

for(i=0;i<=16;i++){
maxim(0x20,a); //digit 0 plane p0
maxim(0x21,a[i+1]); //digit 1 plane p0
maxim(0x22,a[i+2]); //digit 2 plane p0
maxim(0x23,a[i+3]); //digit 3 plane p0
delay_ms(700);
}

}

}
**broken link removed**[/IMG]
 
Assuming that your is code is correct. I see that you have not set any fuse settings in your code.Secondly are you using proteus ISIS from MPLAB(mplab controls execution) or just using the hex file to run the processor in PROTEUS?

Which compiler are you using?
 
mikroC PRO for PIC from mikroelektronika

i use mikroC PRO for PIC from mikroelektronika. and i compile my program and to load my hex code in proteus. methinks i must set the "program configuration word" but how? or not? please help?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…