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 Reply
    1. You need a transistor - this is in the datasheet somewhere - look for paragraphs about high and low drive strength and the max number of pins you can use with high enabled. It's a lot less than 60mA

    2. If you are doing PWM then instead of trying to do it with interrupts, which isn't going to work very well, how about using the PWM module on the chip.

Children
No Data
Related