pulsin again!anyone plz help!


Closed Thread
Results 1 to 36 of 36

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    sorry its a 2400 microsecond header so divide by 2 microsecond get 1200!!!!

  2. #2
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    oh yes the header should be
    header<1000
    n header >1350

    but i have tried wid this..
    its still not working.....

  3. #3
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    -Turn off the Analog to Digital converter
    -Comparators Off
    -Set a maximum count for Pulsin: DEFINE PULSIN_MAX 1350

  4. #4
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    sir i dont think that there would be any point of turning adc off.because i am using portb for input and it is not an analog port in pic 16f877a.in this pic only porta is the analog one!!!

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


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    Hello,
    I have to ask what exactly is your circuit doing or not doing? Does it do anything ?
    Does it flash the LED ? This question next is not designed to offend you . . . Have you checked all of your connections for errors and continuity? Breadboard errors trip me up regularly as do poor connections caused by internal corrosion in the breadboards. You buy one, and unbeknownst to you, it sat on the dealer's shelf for ten years . . . and all the contacts are corroded. I have disassembled some that were really scuzzy.
    One more thing, I think portB inputs default to weak pull ups on, turn them off in the option register.
    EDIT: Nope default off. Easy to check with a hi impedance voltmeter though.

    Last question: are you measuring a high pulse or a low pulse? State 0, indicates a low pulse, is that correct?
    Last edited by Archangel; - 26th May 2011 at 07:16.
    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.

  6. #6
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    thanku archangel sir for replying.

    now the basic purpose of my project is to turn a relay on or off using sirc(sony protocol).

    for this i need to decode just two keysne for on and one for off.or maybe just one key that if a user presses a button 5v appear on output pin and if it presses the same button then it turns off!!this is one point...

    the next point is that the above code is working for
    Code:
    if IRBUTTON >=0 and IRBUTTON < 255 then
     
     
    but not working for 
    if irbutton=16 then high sony led '16 is for channel up

    it is not working for this the above command
    this is the second point...


    and the third point is that i dont understand this
    One more thing, I think portB inputs default to weak pull ups on, turn them off in the option register.
    EDIT: Nope default off. Easy to check with a hi impedance voltmeter though... cant understand this
    Last edited by Archangel; - 27th May 2011 at 00:56. Reason: code tags [code] your code [/code]

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


    Did you find this post helpful? Yes | No

    Default Re: pulsin again!anyone plz help!

    OK, RE: I Dont understand . . .
    Just a small argument with myself . . .
    Let me explain my thought process, If the weak pullups were turned on, then applying voltage to that pin might go unnoticed by the MCU because voltage is already present . . .
    Let me ask you this, can you output the value of pulsin to an LCD display or to your computer to find out its value, or flash an LED the number stored therein ?
    That might give you some insight as to what is going on.
    EDIT:
    but not working for
    if irbutton=16 then high sony led '16 is for channel up

    NOT IN POSTED CODE ! Maybe it never gets there, please post
    your code, use code tags as shown in the edit explanation at
    the bottom of your edited last post
    Last edited by Archangel; - 27th May 2011 at 01:28. Reason: add
    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.

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