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

Trigger Timer Start with Port Event

Hello,

i want use the port event to trigger timer 1. I need only one interrupt source and i don't want to use the pin event because of the higher current consumption. Its possible to use the port event as source? I am using the NRF51422 with softdevice 310

Best regards

Parents
  • Yes, it is possible, and you should have no problems setting it up for one source. There are two things to consider when using PORT event:

    • The DETECT signal which is used to generate the PORT event is shared between all pins with the SENSE enabled. In your case this does not matter since you are only using one pin.
    • The DETECT signal will not reset before all pins with SENSE enabled are not detecting the correct level. For you this means that you can only detect either low-to-high transitions or high-to-low transitions (unless you change the configuration in the interrupt while the pin detects the correct level).
Reply
  • Yes, it is possible, and you should have no problems setting it up for one source. There are two things to consider when using PORT event:

    • The DETECT signal which is used to generate the PORT event is shared between all pins with the SENSE enabled. In your case this does not matter since you are only using one pin.
    • The DETECT signal will not reset before all pins with SENSE enabled are not detecting the correct level. For you this means that you can only detect either low-to-high transitions or high-to-low transitions (unless you change the configuration in the interrupt while the pin detects the correct level).
Children
No Data
Related