• AVR Freaks

Hot!How to configure the timer of the pic 16F1777 to generate a pwm signal on PWM3 with MCC?

Author
manu_espagne
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2017/12/22 09:15:19
  • Location: 0
  • Status: offline
2020/06/05 23:05:02 (permalink)
0

How to configure the timer of the pic 16F1777 to generate a pwm signal on PWM3 with MCC?

Hello,
  I'm Emmanuel, student in TOULOUSE, FRANCE. I'm new with MPLABX i want to learn it. I want to generate PWM signals with a pic 16F1777. At the beginning, i want to use PWM 3 with timer 2. I don't know how to configure timer 2 to activate correctly PWM3 with the MCC
  Someone perhaps, had done this and could send me the mcc files and a pictures of timer 2 dashboard on the MCC
  Timer 2 on the 16F1777 is very complex and it's hard for me
  you can also send me an application notes or a c files
 
Thanks a lot for your answers, best regards,
 
Emmanuel,
 
#1

3 Replies Related Threads

    ric
    Super Member
    • Total Posts : 28324
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: How to configure the timer of the pic 16F1777 to generate a pwm signal on PWM3 with MC 2020/06/06 00:09:10 (permalink)
    0
    I don't use MCC, so can't help you there, but in general, to generate PWM the timer just has to be set to roll over at the period of your PWM. You don't have to worry about all the extra features of the timer, just set its period, which MCC should take care of for you.
    Then you need to setup your CCP into PWM mode. Again MCC should make that pretty straight forward.
    How far have you got using MCC?
    Is there a particular screen where you are confused?
     

    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
    katela
    Super Member
    • Total Posts : 1861
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: How to configure the timer of the pic 16F1777 to generate a pwm signal on PWM3 with MC 2020/06/06 02:00:19 (permalink)
    2 (1)
    As above, is there a particular configuration you are confused about? Can you post its screenshot?
    This article could help you with MCC: https://microchipdeveloper.com/8bit:10bitpwm

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #3
    manu_espagne
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2017/12/22 09:15:19
    • Location: 0
    • Status: offline
    Re: How to configure the timer of the pic 16F1777 to generate a pwm signal on PWM3 with MC 2020/06/07 02:14:58 (permalink)
    0
    Hello, 
      Thanks to you two for your answers, timer 2 of the 16F1777 is very complex much more than these of a 16F877
      i'm lost into the datasheet of the 16F1777. the best for me is a copy of the dasboard configuration of timer2 into the MCC for generate a simple pwm signal with duty cycle 20%
      i hope you'll understand me
     
    Thanks a lot for your answer 
     
    Emmanuel,
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5