MOD5234 ETPU -- IC and QD Functions

Discussion to talk about software related topics only.
Post Reply
joepasquariello
Posts: 85
Joined: Mon Apr 28, 2008 7:32 am

MOD5234 ETPU -- IC and QD Functions

Post 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
joepasquariello
Posts: 85
Joined: Mon Apr 28, 2008 7:32 am

Re: MOD5234 ETPU -- IC and QD Functions

Post 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
Post Reply