AnsweredHot!Is it possible to write code for dead band in PWM to Control Motors via H bridge !?

Author
Dhivakar RS
Senior Member
  • Total Posts : 179
  • Reward points : 0
  • Joined: 2016/10/15 03:44:54
  • Location: Coimbatore
  • Status: offline
2017/11/14 06:05:35 (permalink)
0

Is it possible to write code for dead band in PWM to Control Motors via H bridge !?

     I am using PIC16F866. I want to generate minimum 10HZ to Maximum 10 Khz pulses. I can do this with the help of PWM. But controlling the dead bands what matters most!! Any possible experts??? Most wanted for me... Thank you..

#1
NKurzman
A Guy on the Net
  • Total Posts : 14959
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 06:56:58 (permalink)
+1 (1)
Why not choose a PIC with built in deadband?
#2
Dhivakar RS
Senior Member
  • Total Posts : 179
  • Reward points : 0
  • Joined: 2016/10/15 03:44:54
  • Location: Coimbatore
  • Status: offline
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 06:58:49 (permalink)
0
Wow!! Which pic has that facility sir? Kindly let me know !
#3
DarioG
leaving this planet
  • Total Posts : 53071
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: porcodioland
  • Status: offline
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 09:53:24 (permalink)
0
Many dsPICs Smile look for "MC" or "MU" models

Dario Greggio
--
how does it feel, never having been loved? as life fades away, day after day, on this planet made of s h i t...

#4
NKurzman
A Guy on the Net
  • Total Posts : 14959
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 11:03:57 (permalink)
+1 (1)
Some of the Newer PIC16 and PIC18 too . you would need to look in the product search.
#5
dan1138
Super Member
  • Total Posts : 2604
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 15:09:36 (permalink) ☼ Best Answerby Dhivakar RS 2017/11/15 00:03:29
+2 (2)
dhivakarrs
     I am using PIC16F866. I want to generate minimum 10HZ to Maximum 10 Khz pulses. I can do this with the help of PWM. But controlling the dead bands what matters most!!

From your other posts you seem to actually be using a PIC16F886, if true then I would direct your attention to section 11.6.6 of the PIC16F886 data sheet DS40001291H page 142. This section describes using the PWM1CON register to select the number of FOSC/4 clocks used for low-to-high output transitions for the enhanced PWM in half bridge mode. Note that this feature is not available for PWM2.
#6
NKurzman
A Guy on the Net
  • Total Posts : 14959
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 15:51:09 (permalink)
0
There you go problem solved.
#7
Dhivakar RS
Senior Member
  • Total Posts : 179
  • Reward points : 0
  • Joined: 2016/10/15 03:44:54
  • Location: Coimbatore
  • Status: offline
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 22:49:19 (permalink)
0
dan1138
From your other posts you seem to actually be using a PIC16F886, if true then I would direct your attention to section 11.6.6 of the PIC16F886 data sheet DS40001291H page 142. This section describes using the PWM1CON register to select the number of FOSC/4 clocks used for low-to-high output transitions for the enhanced PWM in half bridge mode. Note that this feature is not available for PWM2.


  Oh god!!! That was a blunder mistake. Yeah i'm using PIC16F886. Thanks a lot sir.
#8
Dhivakar RS
Senior Member
  • Total Posts : 179
  • Reward points : 0
  • Joined: 2016/10/15 03:44:54
  • Location: Coimbatore
  • Status: offline
Re: Is it possible to write code for dead band in PWM to Control Motors via H bridge !? 2017/11/14 23:20:16 (permalink)
0
If i do this in PIC16F877A , is it possible to execute Half Bridge here??
post edited by Dhivakar RS - 2017/11/23 06:25:01
#9
Jump to:
© 2017 APG vNext Commercial Version 4.5