Matrix _16f877 need help, please


Closed Thread
Results 1 to 12 of 12

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    In case you change XT to HS osc in your .inc file, make sure you've made the change for the right assembler... this is 1 reason why I set my fuses in code, not in the .INC file.
    Steve

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

  2. #2
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    hi, Joe and Steve,
    thanks for your concern. I tried testing but no thing happen. is it possible the two capacitors of the osc-xtal is the main problem.

    I saw in the data sheet, for the Hs (20Mhz) xtal osc, the capacitors are range 15-33pF. but i use only 10uF! (table 14-2 page 144 of the data sheet).

  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 MINHLE View Post
    hi, Joe and Steve,
    thanks for your concern. I tried testing but no thing happen. is it possible the two capacitors of the osc-xtal is the main problem.

    I saw in the data sheet, for the Hs (20Mhz) xtal osc, the capacitors are range 15-33pF. but i use only 10uF! (table 14-2 page 144 of the data sheet).
    µ is Way bigger than pf Way too big !10µF will oscillate in kilohertz, not mhz.
    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    thanks, I should replace them tomorrow.

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    MINHLE, What exactly is the question? Are you concerned that the voltage across the led is too low? What is the value of the resistor in series with the led? Do you have any resistor in series with the led at all? If there is no resistor in series with the led then the current is too great for the PIC and the voltage is being dropped too low for the oscillator to operate... What is the voltage across the 2 PIC pins you are using to drive the led? You should start out with maybe a 680 Ohm resistor in series with the led and see if that doesnt cure the problem...

    Dave Purola,
    N8NTA

  6. #6
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,


    thanks for your concern,

    the voltage drop across the LED is an important issue here. if the voltage different across the LED is '0" then the LEd cannot be lighted up. a resistor in serial with the LED is to protect the LED when the high pulse current flowing through the LEd aND TO PROTECT THE PIC FROM HIGH IN PUT CURENT . so we do have to consider the voltage drop on the resistor.

    in this case the positive pin of the LED is 1.65V, then the negative pin of the LED has to be '0' as set up. however the situation different, both side of the LED is 1.65 so it means that either open circuit (no current flowS through the LED) , the bad PIC or the program not well set up( i.e conf, ...).

    I wish getting some suggestion , ideal from you,

    thank agian

  7. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Since you didn't use a limiting resistor, you have fried the pic!
    Replace it and put a 330 ohms resistor in series to every leds. Then use Joe snippet, given in post # 2 and you will see that leds will switch on and off without burning another pic.
    You will always read 1.6 - 1.7 V across a led, unless you have shorted one!

    Al.
    Last edited by aratti; - 7th February 2009 at 18:31.
    All progress began with an idea

Similar Threads

  1. led matrix pic 16f84 and 4017 help me please
    By Mus.me in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 5th February 2011, 01:06
  2. RGB LED Matrix
    By ERIK in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th June 2008, 08:01
  3. LED Matrix Question
    By mekohler in forum Schematics
    Replies: 28
    Last Post: - 29th September 2007, 14:12
  4. 4x16 Dot Matrix LCD control is possible?
    By muskut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st September 2005, 10:56
  5. need help with switch matrix
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th January 2005, 19:59

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