Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 14309

F28075 ,DRV8842 Motor drive(PWM-ADC)

$
0
0

Hello ,

I am working on TMS320F28075 Microcontroller with DRV8842 Motor Driver IC.

In my application i will be getting an analog signal(voltage) which is given to an ADC(12bit) (ADCIN0 channel) of my controller.

Now i need to drive a DC motor Linearly according to the PWM duty cycle which i have generated(PWM of 50KHz). Max Period register value-65536.

At present i have captured the digital value in ADCResult Register and have put some compare values ranging from 0 to 4096 and according to those compare values i am varying the duty cycle(50%,75%,80%,100%).

I need the dc motor to rotate in a linear fashion from 0 to 100% duty cycle according to the input voltage(0v-3.3v).

How can i achieve this?

Regards,

Sanath Rai


Viewing all articles
Browse latest Browse all 14309

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>