PIC16f84 malfunctions - diyAudio
Go Back   Home > Forums > Amplifiers > Power Supplies

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th March 2008, 11:33 PM   #1
cipher is offline cipher  Philippines
diyAudio Member
 
Join Date: Mar 2008
Unhappy PIC16f84 malfunctions

gd am. i am creating a hardware cicruits where i am using 2 pic16f84 to communicate with each other. i am controlling at least 6 motors for the wheels and other components. the PIC16f84 works as expected when i tested it with each component individually. however, when all of the components are integrated, the PIC16f84 won't function as expected. it cannot even rotate a stepper motor while the dc motor is running. im using a 12v battery for my power supply. and a voltage regulator which is the 7805 for the 5v needed for the ICs that i am using.

i tried putting a decoupling capacitor in the VDD and VSS. it works ok but after some time, the PIC16f84 will start to go crazy again.

can anyone give me some advice on what to do so that i can integrate my components without problem? thanks!
  Reply With Quote
Old 8th March 2008, 11:57 PM   #2
MartyM is offline MartyM  United States
diyAudio Member
 
MartyM's Avatar
 
Join Date: Oct 2006
Location: Monroe, North Carolina, USA
Send a message via Yahoo to MartyM
Can you please be more specific regarding some of the design details?

For example, what protocol/medium are they communicating on? (bit banging, parallel lines, RS-232, ?).

I can tell you that we've worked with RS-232, & 422, etc. and occasionally we've had issues when they don't share a common RS-232 signal ground.
  Reply With Quote
Old 9th March 2008, 08:48 AM   #3
cipher is offline cipher  Philippines
diyAudio Member
 
Join Date: Mar 2008
i am using a two bits of the serial port and conect them to the PIC16f84. this PIC is also connected to another PIC that is used to activate the stepper and DC motors. my problem is with its power supply because the PIC will go crazy after a few minutes that it is turned on. it is not able to detect the data sent by the serial and the output are all wrong.
  Reply With Quote
Old 9th March 2008, 05:47 PM   #4
MartyM is offline MartyM  United States
diyAudio Member
 
MartyM's Avatar
 
Join Date: Oct 2006
Location: Monroe, North Carolina, USA
Send a message via Yahoo to MartyM
If you are getting noise/spikes on the Tx & Rx lines maybe you should be using RS-422, RS-485 or some other noise resistant medium to help guard against the noise.

The data handling doesn't change, maybe only R (receive) and D (drive) bits needed, but the ICs are really cheap.

I'm assuming you put a scope on the lines, right? What did that show?

Not sure I can help but just throwing out ideas based on what you wrote.

I'm guessing you'll find some kind of weird noise issue.

Good luck!
  Reply With Quote
Old 9th March 2008, 05:56 PM   #5
Electrons are yellow and more is better!
diyAudio Member
 
peranders's Avatar
 
Join Date: Apr 2002
Location: Göteborg, Sweden
Blog Entries: 4
My guess is that the circuit solution may be the problem. I have experience with >10000 PIC's in work and my experience is that they work pretty good.
__________________
/Per-Anders (my first name) or P-A as my friends call me
  Reply With Quote
Old 7th April 2008, 09:14 PM   #6
mahmood is offline mahmood  Iran
diyAudio Member
 
Join Date: Jan 2008
you most use PIC16f876A because it has one Hardware USART
module in it . i think cause noise in your supply circuit and software serial commands . software serial comuication can't
detect either error bit or frame error and after few minute will go
itself . i attached two usart proton+ code . first for sending the data of a keypad and second code for indicate data on 2*16 lcd
that included recieved data , error bit , frame error bit as well as
a bit of an internal counter that check the situation of the transmiter . read them carefully .these are simple code to show that how can U configur the USART . this is reciever .
Attached Files
File Type: pdf reciever.pdf (30.9 KB, 20 views)
  Reply With Quote
Old 7th April 2008, 09:15 PM   #7
mahmood is offline mahmood  Iran
diyAudio Member
 
Join Date: Jan 2008
and transmiter is here .
Attached Files
File Type: pdf transfer.pdf (27.0 KB, 13 views)
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
12KWatts PIC16F84/ADC0831 Power Inverter CHACALPOWERS Power Supplies 6 12th January 2012 07:43 PM
Pic16f84 nbcd Digital Source 10 29th September 2004 10:11 AM


New To Site? Need Help?

All times are GMT. The time now is 06:20 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2