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

3-Phase PWM on LPC23xx

I'm attempting to create a 3-phase PWM signal, which would generally use 6 dual edge triggered PWMs. Is there a way to do this using 3 single edge PWMs? If so, please point me to some examples; or provide an explanation. Thanks

Parents Reply Children
  • The match pins can do quite a lot of nice things.

    If you read the user manual for the PWM, you'll see these quotes:
    "May be used as a standard timer if the PWM mode is not enabled."
    "The PWM is based on the standard Timer block and inherits all of its features, although
    only the PWM function is pinned out on the LPC2300."

    That should give a bit of indication that it is meaningful to also take a look at the four timers.

    The timers can, with the match pins, be used for PWM output. And in reverse, the capture registers can be used to instead capture/decode PWM input.

    When starting with a new processor, it's always a good idea to read through all sections of the datasheet/users manual, just to make sure that you pick up all relevant parts for your project. This helps you save costs for external hardware. And reduces probability of extra prototype spins because you didn't use the optimal processor pins for different functions.

    It's often enough to do the detailed read-through when it's time to write the code, but long before that you should have scanned through all sections to see what important features or notes that relates to your project. With bad luck (or in reality not) you may find a critical problem when scanning through the documentation - a tiny little detail that makes the processor not suitable for the project even if it initially looked promising. It's much more expensive to figure out a need to replace the processor - or redesign the outside hardware - first when you are stuck.

  • Thanks for the information. Unfortunately the uC was chosen prior to my involvement. I think a majority of the problem is my lack of understanding/experience with utilizing the PWMs/Timers; and maneuvering around an RTOS. I'm not an embedded engineer, but am in a situation where I have to "play one on TV". I'm really enjoying it, though. Do you have any recommendations for improving my knowledge-base (preferably something that is organized and structured)? The user manual has a lot of great information, but the prerequisite for grasping it quickly is a wealth of experience.

  • You will find specific examples as to how to exploit each peripheral of your processor by download NXP's code bundle (see their site). I must warn you: their code is not top notch, but you can still learn from it, in conjunction with the user manual.

  • I'm not looking to be spoon-fed. What I am looking for is something that is structured and organized in such a way as to make the process as efficient as possible. When I do it the way you're recommending (which may be the only way), I end up bouncing around from document to document. Thanks for the suggestion, though.