It works perfectly.why this program do not work?
it must operate like flasher each 500ms off and on but it always is onIt works perfectly.
this program with other PIC series for example 16F877 works perfectlyHi,
which compiler do you use?
Is this your whole program? Where's the configuration bits? You miss a resistor in series with the LED.
You need to provide a bit more info...
Compare the datasheet of those devices and you will know why.this program with other PIC series for example 16F877 works perfectly
there is nothing in datasheet that different with the other typesCompare the datasheet of those devices and you will know why.
CMON=0x00;
sbit LED at RC4_bit;
void main() {
CMCON = 0x00;
ANSEL = 0x00;
TRISA = 0x31;
TRISC = 0x00;
PORTA = 0x00;
PORTC = 0x00;
while(1) {
LED = ~LED;
Delay_ms(500);
}
}
Two things make or break a good embedded programmer: programming skills, and your willingness and ability to comprehend the datasheet.there is nothing in datasheet that different with the other types
In mikroC PRO PIC "Edit Project" dialog box set Osc type to XT if you are using 4 MHz and HS if you are using more than 4 MHz Crystal.
by Don Wilcher
by Aaron Carman
by Duane Benson
by Jake Hertz