ep.hobbyiest
Full Member level 4
Hi,
I am using pic18f25k22 PIC and CCS Compiler. Code is working on proteus but not on real hardware.
Led blinking is working properly on hardware.
Here is the code.
and main.h file is as
I am using pic18f25k22 PIC and CCS Compiler. Code is working on proteus but not on real hardware.
Led blinking is working properly on hardware.
Here is the code.
Code:
#include <main.h>
void main()
{
while(TRUE)
{
//TODO: User Code
printf("Live\r\n");
delay_ms(1000);
}
}
and main.h file is as
Code:
#include <18F25K22.h>
#device ADC=16
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#use delay(internal=16MHz)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=PORT1)