Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PWM speed controlling

Status
Not open for further replies.

civictypeR

New Member
Hey guys , I am curious as I tried this experiment out and I wonder this coding really functions. I am using Melabs to do my programming and PIC16F877A to control my DC motor driver IC modelled L293B . It required PWM to control the voltage output to my DC motor . THe coding is below as shown .
\
DEFINE OSC 20

TRISC = %00000000

HPWM 1, 150, 16000
pause 3000
HPWM 2, 50, 16000
pause 3000

. The means that 1 pin in port C will output a certain PWM and portC.2 will output another output . Is it possible if i use the HPWM command on 1 same pin many times and change the frequency ? Will my output change ? Thanks a lot .

Civic type R
 
Status
Not open for further replies.

Latest threads

Back
Top