Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

TOTALLY SURPRISED..........................

Status
Not open for further replies.

ajaykumar988

Member level 5
Joined
May 7, 2006
Messages
86
Helped
11
Reputation
22
Reaction score
3
Trophy points
1,288
Activity points
1,796
I have a basic ciruit in which a PIC is supposed to flash a few LEDs. It flashes on and off PORTA and PORTB (at twice the speed of PORTA). The micro is a PIC16F628A which is setup for using its internal osc. Power supply is stable (or at least it should be, 7805 with caps on either side). It works BUT about a quater of the time the chip does very weird things. Both ports flash on and off very quickly, as well as the osc output, you see the 8mhz signal on the scope, then nothing, then 8mhz, seems like the whole chip is switching on and off in some weird loop.
 

Does it seem to me that there is some pins withou pull-down/pull-up resistors. If your code is ok, try pulling down/up some unused pins, or configure the unused pins to output, to prevent noises like this.

regards, and good luck

btminzon
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top