|
Post by felixx on Jan 7, 2023 20:10:09 GMT
Hello, I am fairly used to programming arduino-boards. But since my application needs more processing power, I decidedly to buy a shieldbuddy TC375.
For my application the user sends values (frequency and dutycycle) via display to the shieldbuddy. In addition the MCU should use these values to create two phase correct PWM-signals which later will be used to control IGBTs of an H-Bridge.
If I were to do that with an arduino I would write to the PWM registers directly:
pinMode(3, OUTPUT); pinMode(11,OUTPUT); TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM20); TCCR2B = _BV(CS22); OCR2A = 180; //Dutycycle Output A OCR2B = 50; //Dutycycle Output B
In the sketch provided above I proceed to get an phase correct PWM on the designated pins with a fixed frequency
I now want to do the same on the shieldbuddy, but I can’t figure out how to do that.
Any help would be much appreciated!
|
|