Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Pic 16F728A question

Posted on 2004-08-06
6
Medium Priority
?
602 Views
Last Modified: 2013-12-09
Hello,

we have a Pic 16F728A which we are trying to get working wtih a 16 or 20 MHZ crystal. We use a 5v power supply, brown out reset is off, watchdog timer disabled. With the crystals, we attach 22pf capacitros between crystal and ground, as stated in the manual. The problem is that the pic is unstable when we turn it on! all we are trying to do is turn on an led and keep it on...however the led flashes randomly...we have tried using higher level capacitors (up to 68pf) but it keeps happening.....we have read somewhere that we may have to include a resistor between crystal and pin..is this reccomended? would this fix the problem? why is this problem happening?

thanks
0
Comment
Question by:simsingh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11742930
>all we are trying to do is turn on an led and keep it on
I will assume this: You have a little program that turns high  an output line in PIC to turn on a LED, but LED flashes.
So, in appearance your problem is not related to crystal frequency (unless you have tried with lower speed and works well).
If you can make led blink regularly, then your PIC is working well, even if some flashing problems, maybe you are drawing to much current from PIC output, try to use a higher resistor to handle LED, or a transistor if you need more current anyway.
 
0
 

Author Comment

by:simsingh
ID: 11744322
but it does work with lower mhz crystals...anywhere from 4-8mhz it works, above that it breaks down....any ideas?

0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11744337
have you tried to draw less current to the LED by increasing resistor value?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:simsingh
ID: 11744369
No we haven't....can that be the issue? willl higher rate crystals cause more current to be drawn and so create problems with teh led's?

Sim
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1500 total points
ID: 11744386
>No we haven't....can that be the issue? willl higher rate crystals cause more current to be drawn and so create problems
> with teh led's?
Yes, more speed will draw more current (from power source to microcontroller), but I can't ensure how can this affect output ports, just try.
Also you can try with a bigger voltage  regulator.
0
 

Expert Comment

by:rsinisa
ID: 11747758
PIC16F728A? I was just on Microchip's web site and did not find this uC. Anyway, did you select HS for oscillator?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So, if your PC is old or new and it does not boot or has no display then what do you do? Precautions : -During connecting or disconnecting devices, be sure to have the AC electrical power disconnected -Temporarily ground yourself, or use a wris…
I have purchased two new systems and both are now Universal Extensible Firmware Interface (UEFI) based. UEFI is replacing BIOS for the desktop PC. It is a Linux based firmware with enough robustness it can communicate with a website without loading …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question