SAMD21 XIAO comperator output to other pin

Hi,

I am using a XIAO with an SAMD21 for a project. I setup a AC (analog comperator) to have the positive input of COMP0 on a pin A1 (native PA04A) and the negative input connected to the DAC ouput.
The comperator ouput CMP0 I would like to set on an output pin. According to the documentation of the microcontroller, the CMP0 can be connected to the native pins PA12 and PA18. However, these pins of the micro controller are not accesable on the XIAO board. So far the only way to set this output to a pin was to call an "interrupt on comperator output toggle". However, since I want to switch this pin on a high frequency, I do not like to call the interrupt so often.
Therefore, I search for a possibility to map it to other pins which are accesable on the XIAO board. I thought may be the event system is an option. I am able to use the comperator output as an event system generator. However, I did not found a possibility to connect events to a pin.

Any hint to find a solution without using the CPU is highly apprechiated. Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.