THANKS jOE,
I TRY AGAIN AS YOUR SUGGESTION.
I WILL SET THE OSC TO 20MHZ, AND CHECK THE DATA SHEET
THANKS
THANKS jOE,
I TRY AGAIN AS YOUR SUGGESTION.
I WILL SET THE OSC TO 20MHZ, AND CHECK THE DATA SHEET
THANKS
In case you change XT to HS osc in your .inc file, make sure you've made the change for the right assembler... this is 1 reason why I set my fuses in code, not in the .INC file.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
hi, Joe and Steve,
thanks for your concern. I tried testing but no thing happen. is it possible the two capacitors of the osc-xtal is the main problem.
I saw in the data sheet, for the Hs (20Mhz) xtal osc, the capacitors are range 15-33pF. but i use only 10uF! (table 14-2 page 144 of the data sheet).
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
MINHLE, What exactly is the question? Are you concerned that the voltage across the led is too low? What is the value of the resistor in series with the led? Do you have any resistor in series with the led at all? If there is no resistor in series with the led then the current is too great for the PIC and the voltage is being dropped too low for the oscillator to operate... What is the voltage across the 2 PIC pins you are using to drive the led? You should start out with maybe a 680 Ohm resistor in series with the led and see if that doesnt cure the problem...
Dave Purola,
N8NTA
Hi Dave,
thanks for your concern,
the voltage drop across the LED is an important issue here. if the voltage different across the LED is '0" then the LEd cannot be lighted up. a resistor in serial with the LED is to protect the LED when the high pulse current flowing through the LEd aND TO PROTECT THE PIC FROM HIGH IN PUT CURENT . so we do have to consider the voltage drop on the resistor.
in this case the positive pin of the LED is 1.65V, then the negative pin of the LED has to be '0' as set up. however the situation different, both side of the LED is 1.65 so it means that either open circuit (no current flowS through the LED) , the bad PIC or the program not well set up( i.e conf, ...).
I wish getting some suggestion , ideal from you,
thank agian
Bookmarks