PWM outputs sawtooth after possible short

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
I was re-jiggering my jumpers today and forgot to power down my circuit.

I ended up shorting a PWM ( I believe) to an external circuit.

This caused my MCU to reset and appears to have possibly ruined my pin.

The output of this PWM module is shown in the image below.

The rising edge looks ok but the falling edge is clearly incorrect.

I am just trying to confirm that it was my short that is causing this erroneous output and not the product of some unforeseen software influences.
 

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
Can you post the circuit?
Max.
For what reason?

I ask this because i am testing the PWM output straight from the board i am using. There is nothing connected aside from the required pushbuttons on the prototyping area of my Ready for Pic.

The screen waveform above was captured with nothing but pushbuttons, oh.... and an LCD however the port that concerts PWM is all clear aside from my scope probes.
 

Alec_t

Joined Sep 17, 2013
14,332
Perhaps the PWM pin needs some load in order to give a 'proper' output waveform? On the other hand you may be right; the pull-down transistor of that pin may be compromised :(.
 

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
The other output works as expected with a nice square waveform.
So I don't think that is likely the case.

I will be getting a spare chip soon so should be able to see tomorrow or the day after if it is indeed the pin that is fried.
 

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
Problem Solved ---- well a workaround has been implemented.

I guess i did indeed fry the PWM output, i have re-jiggered the code to use a 3rd PWM output and re-arranged my push-buttons to accommodate this change of pin.

I now get the correct PWM waveform.
 

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
also, i must add.

USB scopes get a-lot of stick on-line - but mine has been more than useful!

Its small, light and compact - allows me to check my micro-controller from my pc without having to move rooms with all my gear.

Not bad at all for £40!
 
Top