cancel
Showing results for 
Search instead for 
Did you mean: 

How read the EMIOS counters?

SGeno.1
Associate

I need to read the EMIOS 0 channel 5 counter.

How can I solve it?

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Sorry for the late answer ,

i recommend to check the test application provided in SPC5Studio 6.0 and Help section

the counter is :in :

    union {
      vuint32_t R;
      struct {
        vuint32_t unused_0:16;
        vuint32_t C:16;
      } B;
    } CNT;

in serving the interrupt , it will possible to check the EMIO 0 Channel 5 Counter.

Best Regards

Erwan

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

Sorry for the late answer ,

i recommend to check the test application provided in SPC5Studio 6.0 and Help section

the counter is :in :

    union {
      vuint32_t R;
      struct {
        vuint32_t unused_0:16;
        vuint32_t C:16;
      } B;
    } CNT;

in serving the interrupt , it will possible to check the EMIO 0 Channel 5 Counter.

Best Regards

Erwan