This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to go about coding the Tiva launchpad TM4C123G in c to use PMW to control a simple servo motor?

For Arduino one can use the map function. How about for the Tiva. I use IAR Embedded workbench. 

  • Hello Nyasha

    Your post lacks a clear objective other than the title. You need to make details clear (beyond Arduino)

    1. What kind of simple servo motor, electrical specification, etc.
    2. What is the control mechanism?
  • Would not your desired, "Go about" include:

    • Read/review of the MCU manual - specifically the exhaustive PWM Section
    • Examination of the extensive Code Examples - found (interestingly enough) w/in, "Examples/Peripherals."   PWM is well represented.
    • Unless your motor is tiny - you'll need proper, "Current and Voltage" boosting & buffering to translate low level MCU PWM into Servo Motor's requirement...