Hall Sensor XOR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hall Sensor XOR

1,271 Views
ewilliams
Contributor I

Hello,

In the KV31F sub-family reference manual, there's a handy note regarding using the two 2-CH FTM modules (FTM1 and FTM2) in input capture mode for hall sensor decoding. Apparently one of the SIM_SOPT4 register bits controls the input to FTM2 CH1. If the three hall sensors are connected to FTM1 CH0, FTM1 CH1, and FTM2 CH0 then setting this bit appropriately will result in the "Exclusive-OR" of the three hall sensor lines which could result in reduced complexity in calculation.

My question is regarding the interpretation of "Exclusive OR" for 3 signals, as there are typically two interpretations. Is this an "Only 1" (xor output is true only if only one input is true) or an "odd parity" (xor output is true if an odd number of inputs are true) interpretation?

Thanks,

Eric

Labels (1)
0 Kudos
1 Reply

1,143 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Eric,

I think it's an "odd parity" (xor output is true if an odd number of inputs are true). You can have a try to test it.

3-input Ex-OR Gate.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos