Noise on PORTC.0 with PIC16F73


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I have some doubt about it... @POR, Timer1 is already off, CCP as well.

    What you experiment is indeed an RMW issue. You don't want to write to successive output bit by bit, this will cause some problem one day or another, and faster your OSC is, more chance you have to see it happen.

    What you want to do is to write to the WHOLE PORT at once instead of single bits.

    Here:
    PORTC=7
    PORTC=0
    Goto Here

    Use shadow register, modify it, then dump it to your specific PORT, that's my suggestion.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Question

    Hi, Passion

    What Kind of load do you have on portC.0 ???

    Here, your signal might not be far from ... ~ 700 kHz ( at first sight ! 555 Khz ... at second sight )

    Alain
    Last edited by Acetronics2; - 15th February 2009 at 15:22.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    I have some doubt about it... @POR, Timer1 is already off, CCP as well.

    What you experiment is indeed an RMW issue. You don't want to write to successive output bit by bit, this will cause some problem one day or another, and faster your OSC is, more chance you have to see it happen.

    What you want to do is to write to the WHOLE PORT at once instead of single bits.

    Here:
    PORTC=7
    PORTC=0
    Goto Here

    Use shadow register, modify it, then dump it to your specific PORT, that's my suggestion.
    PortC value on POR,BOR xxxx xxxx
    value on all other resets uuuu uuuu

    PortC Data direction Register
    value on all resets 1111 1111

    My theroy is T1 osc was causing his noise.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Pretty Sure a Noise Problem
    By Tobias in forum General
    Replies: 3
    Last Post: - 10th December 2009, 01:46
  2. Loud Noise at 20khz
    By koossa in forum Off Topic
    Replies: 6
    Last Post: - 14th July 2009, 10:24
  3. Need suggestions for noise suppression
    By paul.barsamian in forum General
    Replies: 2
    Last Post: - 29th March 2008, 15:37
  4. Getting rid of noise of car battery/alternator
    By passion1 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 9th March 2008, 06:11
  5. (Off Topic) Noise from battery supply
    By CLARE in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd August 2004, 11:01

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