Since the Mosfet problem has been settled (NOT blowing up) I've moved on in that project. Now passing decent amps with (fairly) cool Mfets...
In comes Readadc10 or Readadc. I'm reading the current that results from a certain PWM duty cycle. What happens is that while the 28x1 goes off reading the analogue from the Closed Loop Hall sensor, the PWM duty changes, this is also visible on the scope. I will take pics tommorow and post. After completing the Readadc(10), the scope shows the correct duty at that moment, untill the next Readadc(10) cycle. It is as if the actual pulse from PWM is chopped to what appears to be about 70% of the then set duty.
Example: Say period is 100ms, duty at 50%. When reading analogue the total period seems the same but smaller chops of not 50ms(50% duty) but more like 30ms with the same "off" or low period as normal. A picture will show this so I will post some....
Any ideas ?
Manie
In comes Readadc10 or Readadc. I'm reading the current that results from a certain PWM duty cycle. What happens is that while the 28x1 goes off reading the analogue from the Closed Loop Hall sensor, the PWM duty changes, this is also visible on the scope. I will take pics tommorow and post. After completing the Readadc(10), the scope shows the correct duty at that moment, untill the next Readadc(10) cycle. It is as if the actual pulse from PWM is chopped to what appears to be about 70% of the then set duty.
Example: Say period is 100ms, duty at 50%. When reading analogue the total period seems the same but smaller chops of not 50ms(50% duty) but more like 30ms with the same "off" or low period as normal. A picture will show this so I will post some....
Any ideas ?
Manie