16f690 crashes


Closed Thread
Results 1 to 9 of 9

Thread: 16f690 crashes

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    5

    Default noise reduction

    hey, my code is working great, but I have been running into some problems with noise. I geuss I should state the problem first. I am trying to get both input and output working on about a 1 foot long straight (four wires untwisted parrallel) serial cable to a PC. it worked ok before when I was just using on line and a ground, but now that I have input and output lines going to the pc, I get noise on the other line everytime I use the serout command from the pic. tried using 10k pulldowns (not being sure about the connection on that I ran 10k from data line to ground and the unused in from the pc as well). that didn't work. then I tried a 10 mf electrolytic on the unused line with neg side going to ground. this worked but it didn't quite seem kosher to be putting a 10mf electrolytic on a line of this sort, especially going to a PC serial line.

    is there perhaps a post here with few help hints and some schematics showing how to reduce noise on straight cabling? I been looking for quite some time for some info to glean.

    also worth noting, when I ran this pic (16f690).. just on the protoboard with intosc and nothing but power, I got no noise, so it is the parrallel capacitance of those wires doing it. recon I could try some cat5 I have lying around.. would be interested in all things noise reduction however.

    I added an xtal btw. specs say +- 1 but in the area of millions of cycles per second, that could be a deal breaker.

    thanks for any help. thanks for the help you allready gave me.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    then I tried a 10 mf electrolytic on the unused line with neg side going to ground. this worked but it didn't quite seem kosher
    Capacitors are the best way to reduce noise. I would guess the unused line is acting like an antenna and the cap is suppressing it.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2008
    Posts
    5

    Default noise reduction

    huh.. I tried that electrolytic 10 mf cap. works fine across unused line from the pic. but I started wondering what it might do to the waveform of the incoming pc. I put it accross the pic out, and it went from high/low pulsing to low pulsing. anotherwords the cap is too high. I recon I'm going to have to pull out the old cap box I salvaged some years back and try some various values. I recon its about time to re-stock on the salvaged caps, the goo inside is prolly starting to dry up on the old ones. man.. I sure hope I don't have to find a scope to do this with, that would be a pain in the rear.

    gotta hammer away some more and try to find some solutions. I think I am going to replace the wires with twisted pair cat 5 and see what that does.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653

    Wink

    Hi, Lincoln

    Why do you think ICs creators spend their efforts in creating LINE DRIVERS with as little as possible output impedance ???

    Good question ... don't you think ?

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. HSERIN / SERIN Problem with 16f690
    By rborsuk in forum Serial
    Replies: 24
    Last Post: - 5th February 2010, 05:51
  2. Programmer for 16F690?
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd August 2007, 16:12
  3. Using HPWM in half bridge mode on 16f690
    By Chris Barron in forum mel PIC BASIC
    Replies: 0
    Last Post: - 29th December 2006, 12:18
  4. tmr1 on 16f690
    By dan gill in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th November 2006, 22:58
  5. 16F690 Support
    By Ruben Pena in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th September 2005, 23:35

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts