fuyejun
Newbie level 4
Hi
I used a 20MHZ crystal for my 16F877 , I test the chip by on and off a LED connect to PINA1, But I found that when I cut the line which connected 2 capacitors 22pF and ground. The LED also function well.
I checked the datasheet 16F877 do not have internal oscillator. This confused me a lot.
Then I want to found weather my crystal work. Can anyone told me how to measure it. I try many time and found it's not work.
I connect 2 prob of digital oscilloscope to 2 pin of crystal, but no signal. Then I try use 1 pin connect to crystal ,the other connect to ground also no signal.
I used Hi_tech compiler, do I need add __CONFIG(); to my code. I fund that this when I don't use this word, the pic16f877 also can work, ADC, or DAC or LCD display all can work.
I used a 20MHZ crystal for my 16F877 , I test the chip by on and off a LED connect to PINA1, But I found that when I cut the line which connected 2 capacitors 22pF and ground. The LED also function well.
I checked the datasheet 16F877 do not have internal oscillator. This confused me a lot.
Then I want to found weather my crystal work. Can anyone told me how to measure it. I try many time and found it's not work.
I connect 2 prob of digital oscilloscope to 2 pin of crystal, but no signal. Then I try use 1 pin connect to crystal ,the other connect to ground also no signal.
I used Hi_tech compiler, do I need add __CONFIG(); to my code. I fund that this when I don't use this word, the pic16f877 also can work, ADC, or DAC or LCD display all can work.