Thank you for your support.
But when I followed the your suggestion, after running my simulation, I got no output displayed at LEDs.
And these messages appeared in simulation log:
(PIC18 )PC=0x0A7C. Processor has been reset by watchdog timer expiring at time 2.304000
And this message repeated several times.
Plz tell me next step!
---------- Post added at 10:13 ---------- Previous post was at 10:11 ----------
I am using Proteus7.5
I tried to work with hex but could'nt succeed!
Any more suggestions?
I disabled watchdog timer, but how to set crystal frequency there?
I disabled watchdog timer, but how to set crystal frequency there?
I disabled watchdog timer, but how to set crystal frequency there?
Hi,
Thats good that you have improved your code.
Attched is some similar code, but it is more complete.
It uses the Template file for the 452 found in the MPlab / Templates folder.
It may all seem a lot of code before you get to the Main section, but just concentrate on the main section for now.
The important thing of the template is the CONFIG statement which sets all those system paramenters - the one you are interested in is the OSC which is set to XT which is for crystals up to 4 meg.
On the design, you will see it is not neccessary to show the crystal, this is set by Editing the 452 in the design to show the crystal speed and where the .hex fle is located.
Also the pullup resistor on Mclre should be 10K, the resistors to the leds should be 470R and the leds - use the Interactive LEDS.
good luck
1. Can you please tell me what is the difference in using "LED" and "LED bargraph" in Proteus, as you wrote, "use interactive
2. About Osc; you have written that frequency is upto "4MHz", why can't it be 20MHz?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?