This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

low power PWM library channel control

Hi,

So I am using nRF51822 chip to develop our products. We have two motors attacked to our PCB and we want to control the pulse with low power PWM. We want to control one motor at a time AND both motors at the same time. Is that possible? How do I need to take in the parameters to the functions? 

Thanks!

  • I asked in another post, and the engineer told me to use segger embedded studio to debug. But since we are using our own PCB instead of development kit, is it still possible to use that debugger? 

  • I saw your other post. If you have a debugger, you can probably use it. What sort of debugger do you use? And to answer the question in your other ticket:

    No, the PWM doesn't interfere with the BLE part. But all examples in the SDK uses the error handler. You can see all the APP_ERROR_CHECK(err_code) calls in almost every function. When these receive an err_code != 0 the application will restart. So if this happens before you start advertising, you will probably think it disrupts/interferes with the BLE, but it is actually only because you try to do something that will not work. You must debug to find these err_codes that are not 0, look for what function that returned them, and what that means. You can figure out what it means by stepping through the function to find the check where it returns something other than 0, or for some functions, you can look in the .h file, in the declaration for that function to see the description of the return values.

    so... What debugger do you use?

Related