This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768

@ everybody(Erik, Per & ...)
it is very interesting for me to know how did you found that i am an electronic student???
and which school session, is finished at October (in my country)?
unfortunately internet is full of 'EXPERT TROLLs' instead of real 'engineers'.

Amir

Parents
  • Hi
    another question
    I have doubts about LER in PWM.
    assume that:

    LPC_PWM1->MR0=1000000;
    LPC_PWM1->MR1=500000
    


    and TC value is about 20 and it haven't been mached with 500000 !
    now if an interrupt occurs that contains:

    LPC_PWM1->MR1=200
    LPC_PWM1->LER =0x01;
    


    does the match occurs for MR1=200 or the program runs the match for MR1=500000 and uses the new value (MR1=200) for the next cycle?

    thanks

Reply
  • Hi
    another question
    I have doubts about LER in PWM.
    assume that:

    LPC_PWM1->MR0=1000000;
    LPC_PWM1->MR1=500000
    


    and TC value is about 20 and it haven't been mached with 500000 !
    now if an interrupt occurs that contains:

    LPC_PWM1->MR1=200
    LPC_PWM1->LER =0x01;
    


    does the match occurs for MR1=200 or the program runs the match for MR1=500000 and uses the new value (MR1=200) for the next cycle?

    thanks

Children
No data