Noise on PORTC.0 with PIC16F73


Results 1 to 8 of 8

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by passion1 View Post
    After reading another thread I added
    LOW PORTC.0
    just before the loop and this seemed to solve my problem!
    Why would that be?
    Isn't TRISC %11111000 supposed to set PORTC.0 as an output?
    Hello Passion1,
    Yes TRISC <font color=red><b>=</b></font color>%11111000 will set RC0 as an output
    LOW PORTC.0 is a RMW operation and the data sheet advises not to do this on portC of this chip. RC.0 shares TMR1clockin and osc functions so you want to disable those if using as a standard I/O so:
    T1CON.0 = 0 'disable timer 1
    CCP1CON=0 ' disable capture compare module which works with timer 1
    Datasheet SEC. 4.3
    "Since the TRIS bit override is in effect while peripheral is enabled, read-modify-write instructions (BSF, BCF, XORWF) with TRISC as destination should be avoided."
    Last edited by Archangel; - 14th February 2009 at 19:23.
    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, 00:46
  2. Loud Noise at 20khz
    By koossa in forum Off Topic
    Replies: 6
    Last Post: - 14th July 2009, 09:24
  3. Need suggestions for noise suppression
    By paul.barsamian in forum General
    Replies: 2
    Last Post: - 29th March 2008, 14: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, 05:11
  5. (Off Topic) Noise from battery supply
    By CLARE in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd August 2004, 10: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