illegal121
Member level 2
Hello Everyone....!
I am working on PIC16F877A I tried the following JDM programmer..
**broken link removed**
It works fine for my PIC with ICprog and ICprog verified the code successfully after programming the PIC16F877A
here is my code and it works best on proteus (simulation)..
But my hardware circuitry is not working at all here is circuit I am using..
What is the problem .. If there is code problem then why it works on Proteus..
But what I think is there is hardware problem my PIC no. is PIC16F877A-I/P (1114j9b)
Please Help... !
thank u ..
I am working on PIC16F877A I tried the following JDM programmer..
**broken link removed**
It works fine for my PIC with ICprog and ICprog verified the code successfully after programming the PIC16F877A
here is my code and it works best on proteus (simulation)..
Code:
unsigned int temp_res;
unsigned int temp_res1;
char buf2[6];
char buf[6];
int i;
void main() {
UART1_Init(9600);
delay_ms(100);
TRISA = 0xFF;
CMCON = 0x07;
TRISA = 0xFF; // PORTA is input
TRISC = 0; // PORTC is output
TRISB = 0; // PORTB is output
do {
temp_res = ADC_Read(0); // Get 10-bit results of AD conversion
PORTB = temp_res; // Send lower 8 bits to PORTB
PORTC = temp_res >> 8; // Send 2 most significant bits to RC1, RC0
temp_res1=ADC_read(1);
WordToStr(temp_res,buf2 );
for(i = 0; i < 6; i++)
{
UART1_Write(buf2[i]);
Delay_us(2);
}
UART1_Write(13);
WordToStr(temp_res1,buf );
for(i = 0; i < 6; i++)
{
UART1_Write(buf[i]);
Delay_us(2);
}
}
while(1);
}
What is the problem .. If there is code problem then why it works on Proteus..
But what I think is there is hardware problem my PIC no. is PIC16F877A-I/P (1114j9b)
Please Help... !
thank u ..