• AVR Freaks

PWM with time period of 1sec in PIC16F1789

Author
chetan.digiline
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2019/05/02 23:58:51
  • Location: 0
  • Status: offline
2019/10/21 03:38:29 (permalink)
0

PWM with time period of 1sec in PIC16F1789

I want to generate a pwm of 100us on time in 1s period and then in 100us on time pulse I want to generate a 10us on and 10us off pulse .PLEASE help me to solve this problem.

Attached Image(s)

#1

4 Replies Related Threads

    ric
    Super Member
    • Total Posts : 24333
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PWM with time period of 1sec in PIC16F1789 2019/10/21 12:45:18 (permalink)
    +1 (1)
    There's no way the traditional Capture/Compare/PWM module could do that.
    I assume the new PSMC (Programmable Switch Mode Control) module might be able to, but I've never used that, so someone else may be able to advise.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11415
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: PWM with time period of 1sec in PIC16F1789 2019/10/21 13:26:58 (permalink)
    +2 (2)
    Your PIC is fast enough that you could do it with just a timer and interrupts.
    #3
    chetan.digiline
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2019/05/02 23:58:51
    • Location: 0
    • Status: offline
    Re: PWM with time period of 1sec in PIC16F1789 2019/10/23 23:59:46 (permalink)
    0
    Thanks to all of you for a response . I solved it.
    #4
    pcbbc
    Super Member
    • Total Posts : 1373
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: offline
    Re: PWM with time period of 1sec in PIC16F1789 2019/10/24 00:09:03 (permalink)
    +1 (1)
    You should really explain how you did that. Otherwise the next person who stumbles upon this thread will be left frustrated and still completely in the dark.
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5