+ Reply to Thread
Results 1 to 7 of 7

Thread: Sensing the High and Low state in PWM

  1. #1
    Licensed User muskut's Avatar
    Join Date
    Nov 2007
    Location
    On my chair
    Posts
    126

    Default Sensing the High and Low state in PWM

    Hi Friends,

    I have got a question about the PWM mode. When we use the HPWM command, Is it possible the sensing the High and Low time in the CCP pin? with control a register's bit? I need the sense pwm's High and Low states.

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User Tim's Avatar
    Join Date
    Jan 2003
    Location
    london
    Posts
    6,950


    Default Re: Sensing the High and Low state in PWM

    From what I know its not possible. At least I never found out.
    Tim

  4. #3
    Licensed User muskut's Avatar
    Join Date
    Nov 2007
    Location
    On my chair
    Posts
    126


    Default Re: Sensing the High and Low state in PWM

    I have got the same idea Thanks Tim

  5. #4
    Licensed User hadv215's Avatar
    Join Date
    Sep 2009
    Location
    Amstelveen, The Netherlands
    Posts
    171


    Default Re: Sensing the High and Low state in PWM

    Why not connect it to a different pin and set that one as input?
    Or use Timerx that is used for the PWM?
    Last edited by hadv215; 31st January 2012 at 15:18.

  6. #5
    Licensed User muskut's Avatar
    Join Date
    Nov 2007
    Location
    On my chair
    Posts
    126


    Default Re: Sensing the High and Low state in PWM

    I don't have any free pins to read

    I wonder is it possible or not to sense the states of the pwm, with reading the registers

  7. #6
    Licensed User hadv215's Avatar
    Join Date
    Sep 2009
    Location
    Amstelveen, The Netherlands
    Posts
    171


    Default Re: Sensing the High and Low state in PWM

    Real 'sensing' of course requires a sensor, which could be an input. But since you don't have any pins left that becomes a little difficult.
    As I said before, you can use the timer register that is associated with the PWM module.

  8. #7
    Super Moderator fanie's Avatar
    Join Date
    Oct 2005
    Location
    Crime riddled ZA
    Posts
    8,019


    Default Re: Sensing the High and Low state in PWM

    It may be possible to share an output pin as an input.

    Ie if you drive a relay you can make several readings before the relay knows it's power was off. It will depend on the 'type' of output though.
    Fanie
    FAZE
    73 de ZS6FAZ
    http://fanie.cambs.net
    Stick to pic

+ Reply to Thread

Similar Threads

  1. testing for input state change
    By C_Moore in forum Proton Plus Compiler v3
    Replies: 24
    Last Post: 3rd August 2011, 22:39
  2. A Delphi Class to provide IDE positiion and Window state changes.
    By johngb in forum Third Party Developments
    Replies: 3
    Last Post: 19th May 2011, 16:57
  3. porta.4 change its state
    By nuclear__ in forum Proton Plus Compiler v3
    Replies: 18
    Last Post: 3rd November 2010, 16:48
  4. Solid State Relay
    By pic-ignorant in forum The Lounge
    Replies: 8
    Last Post: 3rd February 2010, 19:34
  5. Solid state switch for A.C
    By shantanu@india in forum The Lounge
    Replies: 23
    Last Post: 28th October 2007, 12:35

Members who have read this thread since 20th May 2012, 14:48 : 0

Actions :  (Set Date)  (Clear Date)

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