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

Interrupt priority each 100us

Hi,

I have to make a interrupt each 100us. This interrupt should be priority on the BLE. In my interrupt I have only one condition (if/else) and I have to change PWM value.

Is this a problem ? Can I lose connection of BLE ?

My seconde question:

In the datasheet I don't find the total current on the uC ?

For one pin.... Which is true ?
On the page 151: it is writen : 14mA Max On the page 152 (Figure 25): it is writen: 25mA Max (for 3V3)

And how many pin I can apply this current ? (total current max)

Many thanks for your reply!

Milena

Parents
  • Ok, I put transitors! Thanks.

    For my application I have to make a driver motor brushless. I have three coil and each 100us I have to change the coil and the PWM.

    I will test with my EVM the precision of my interrupts of 100us. Do you know the critical tasks how long is it ?

  • the timings are all in the softdevice spec, although they seem harder to decipher than they used to be. Either way - people keep trying to do PWM with interrupts and it never works. Please use the search feature and read some of the hundreds of questions about PWM, PWM with interrupts, PWM with the softdevice and any other variation. You need to use the hardware PWM peripheral or another non-interrupt based solution.

Reply
  • the timings are all in the softdevice spec, although they seem harder to decipher than they used to be. Either way - people keep trying to do PWM with interrupts and it never works. Please use the search feature and read some of the hundreds of questions about PWM, PWM with interrupts, PWM with the softdevice and any other variation. You need to use the hardware PWM peripheral or another non-interrupt based solution.

Children
No Data
Related