XBAR for several events handling

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

XBAR for several events handling

792 Views
alexeypanteleyc
Contributor II

Hello!

Could you please advise if that is possible to set XBAR to handle several events?

For example, if we use KM34, is it possible to set XBAR to handle these two events:

1. to capture timer1 data as we get positive comparator output

2. to capture timer2 data as we get sample available from AFE2

If such scenario is possible, could you please recommend a software examples for reference?

Thanks and regards,

Alexey

Labels (1)
0 Kudos
2 Replies

446 Views
MarMi
NXP Employee
NXP Employee

Hi Alex,

you can make simultaneous interconnections through XBAR module; your use-case aka events time stamping can be implemented. For more details, please refer to bare metal drivers (refman.chm, XBAR section) https://www.nxp.com/webapp/Download?colCode=KMSWDRVAPIRM_SW&location=null&Parent_nodeId=134851851102....

Here is print screen of the timer_event_capture example that implements time stamping of two phase shifted AFE conversions using Timer capture and XBAR:

pastedImage_0.png

The MKM34 platform doesn't support AOI module so performing logic functions on XBAR inputs is not possible as Rong explained but event time stamping as well as simultaneous signal interconnections can be realized.

Kind regards,

Martin M.

0 Kudos

446 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Alexey,

I do not think that the KM34 can implement that function that you OR two events. For the DSC for example MC56F84xxx or KV5x families, there is AOI module(AND/OR/INVERT (AOI) Module), which enable you OR two events, but the KM3x does not have the AOI module, so it can not implement to OR two events.

Hope it can help you

BR

Xiangjun Rong

0 Kudos