PWM Configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PWM Configuration

1,428件の閲覧回数
DavidoBG
Contributor II

I have a center aligned PWM function on my application. I can tune duty cycle.

So my high level corresponds @ +VDD (3.3V) and my low level corresponds à VSS.

But, i would like that the high level correspond @+5.5V (provides by external alimentation of application) and my level @ GND.

Is it possible to configure the direction PWM port while cycle.

TMP1CH0 Port Direction= Input (High Impedance) while counter up

TMP1CH0 Port Direction= Output (GND provide by µC) while counter down.

I connect a pull up on this TPM1CH0 pin.

Thanks you for your help

David

ラベル(1)
0 件の賞賛
返信
1 返信

692件の閲覧回数
Witztronics
Contributor IV

If I understand what you are trying to do, it sounds like using a low-side switch would be more appropriate.  You would use the PWM output to control the low-side switch.

 

 

0 件の賞賛
返信