Hi, I've been using my beautiful own JDM programmer and IC-prog to burn hex files into my chips.
Anyway, I've been struggling for a day to find out what's really wrong in my compiler settings.
oh, I use mikroC pro. I have 3 pcs of pic16f628A, they work very well.
but when I try to make a blink program using mikroC (note: I use 8mhz internal clock settings in mikroC, and tried 4mhz too! ), get the .hex file, burn it using IC-prog.
PROBLEM: 1. The LED is not blinking!
2. IT DOESN'T TURN ON, unless I "TOUCH" the chip!!!!
note: PIN 4 MCLR is in HIGH!
here is my code:
WHAT THE HECK is going on? huhuhu. All of my chips are fully working in bcd to hex decoder program.
Should I use Assembly Language instead? Cause some people say that C is not quite compatible with this chip.
please reply ASAP. Im not reviewing my schools stuffs (this is not my school stuff Im really pushing myself to study in advance).
Anyway, I've been struggling for a day to find out what's really wrong in my compiler settings.
oh, I use mikroC pro. I have 3 pcs of pic16f628A, they work very well.
but when I try to make a blink program using mikroC (note: I use 8mhz internal clock settings in mikroC, and tried 4mhz too! ), get the .hex file, burn it using IC-prog.
PROBLEM: 1. The LED is not blinking!
2. IT DOESN'T TURN ON, unless I "TOUCH" the chip!!!!
note: PIN 4 MCLR is in HIGH!
here is my code:
Rich (BB code):
void main() {
TRISA = 0x00;
PORTA = 0x00;
while(1)
{
RA2_bit=1; // I TRIED PORTA.RA2 <- IS THAT CORRECT?
//PORTA.RA2 compiles! :) But same result :(
Delay_ms(1000);
RA2_bit=0;
Delay_ms(1000);
}
}
Should I use Assembly Language instead? Cause some people say that C is not quite compatible with this chip.
please reply ASAP. Im not reviewing my schools stuffs (this is not my school stuff Im really pushing myself to study in advance).