Page 1 of 1

MOD5234 ETPU -- IC and QD Functions

Posted: Tue May 30, 2017 11:01 am
by joepasquariello
Hello,

Can anyone report success using the IC function with ETPU on MOD5234? I'm using NNDK 2.7.7, and having success with GPIO and PWM, but not with IC. I'm using PWM to generate a 50-Hz square wave, and simply looping that back to a channel running IC. I'm using continuous mode and trying to count transitions (both edges), and when I call fs_etpu_ic_trans_count(), I get values that can't possibly be a count of edges.

Thanks,

Joe

Re: MOD5234 ETPU -- IC and QD Functions

Posted: Tue May 30, 2017 1:07 pm
by joepasquariello
My problem was a bad connection. IC is working fine.

For anyone using IC to count edges. The value returned by fs_etpu_ic_trans_count() is type int32, but only the low 24 bits are valid. It effectively rolls over at 0x007FFFFF, and the upper 8 bits should be ignored.

Joe