This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

question about PPI

hello, everyone. i am a new, i can't understand the meaning of "One event can trigger multiple tasks by using multiple channels and one task can be triggered by multiple events in the same way." in the document. can anybody help me ? (sorry,my english is poor.)

Parents
  • It means one event can trigger two or more tasks. And two or more events can trigger the same task. The way you do this is by using two or more channels.

    This will assign your "Event 1" to PPI channel 0 and 1 and trigger two different tasks:

    NRF_PPI->CH[0].EEP = "Event 1"
    NRF_PPI->CH[1].EEP = "Event 1"
    
    NRF_PPI->CH[0].TEP = "Task 1"
    NRF_PPI->CH[1].TEP = "Task 2"
    

    This will assign your "Event 1" and "Event 2" to PPI channel 0 and 1, and trigger the same task:

    NRF_PPI->CH[0].EEP = "Event 1"
    NRF_PPI->CH[1].EEP = "Event 2"
    
    NRF_PPI->CH[0].TEP = "Task 1"
    NRF_PPI->CH[1].TEP = "Task 1"
    
  • thank you very much,You gave me a lot of help!

Reply Children
No Data
Related