Announcement

Collapse
No announcement yet.

Bipolar PI design

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Try this:
    Click image for larger version

Name:	image.png
Views:	89
Size:	319.9 KB
ID:	450765

    Comment


    • Originally posted by Carl-NC View Post
      This is where pot values get converted into timing values:

      Code:
      Bool ADC_Run(void)
      {
      if(ADC_GetPot1() || ADC_GetPot2()) // If either pot has changed value
      {
      Settings.TgtDelay = ( 50 + Pot1Value) << 1; // Min = 50 (12.5us), max = 113 (28.25us)
      Settings.TxWidth = ( 50 + Pot2Value) << 3; // Min = 50us, max = 305us
      Settings.TxPeriod = (200 + (Pot2Value << 2)) << 3; // Min = 200us, max = 1220us
      return True;
      }
      return False;
      }​
      The problem is, a minimum TxPeriod of 50us (20kHz) requires reducing everything else to fit. You would first need to drop the TxWidth down to, say, 10-15us and go from there.
      Hello
      Dear Carl
      Can you tell me GB delay in code? Is it 5us?

      Comment

      Working...
      X