Try this:
Announcement
Collapse
No announcement yet.
Bipolar PI design
Collapse
X
-
HelloOriginally posted by Carl-NC View PostThis is where pot values get converted into timing values:
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.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; }
Dear Carl
Can you tell me GB delay in code? Is it 5us?
Comment
Comment