- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please help me with the following theoretical situation: I have a PSoC4 MCU running HID profile, mostly sleeping. From time to time, an external interrupt occur (GPIO line) and the time interval in which the MCU must handle this interrupt is 150us, when running the handle code only takes 50us.
Is it possible to configure the interrupt priorities in such way that the MCU will handle the interrupt EVERY time in that specific interval ? i.e. is there a way to define a critical section in the code that overcome the BLE low level routines?
Thanks
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please read / search the "System Reference Guide", I an not natively English speaking and my explanations will not be as precise as those from Cypress.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The "System Reference Guide" (from Creator -> Help) tells about the "Critical Section" APIs.
The time needed for getting the system out of sleep depends on the sleep mode you use. Deep sleep usually takes 25µs to wakeup.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your replay.
Could you be more specific? is there a way to define a critical section in which the BLE will not interrupt important routines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please read / search the "System Reference Guide", I an not natively English speaking and my explanations will not be as precise as those from Cypress.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can specify interrupt priorities. Lower priority number means higher priority. Interrupts can be nested, so a level 1 interrupt interruots a level 2 ISR. See the BLE TRM, chapter 'Exception priority'.