View Single Post
  #5   Spotlight this post!  
Unread 11-02-2016, 12:36
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,070
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: am-2899 Absolute Encoder

Quote:
Originally Posted by Ether View Post
...but the FRC FPGA code does not support PWM decoding.



<off-topic>

The FPGA does support this, though the documentation for the semi-period mode feature (at least in the Javadocs) is misleading.

There is more accurate documentation here:
https://wpilib.screenstepslive.com/s...using-counters

I verified last night that I was able to use a pair of counters (one in semi-period mode capturing the rising-to-falling period, and one in normal mode for capturing rising-to-rising period) to measure the duty cycle of the 12-bit PWM MA3.

</off-topic>
Reply With Quote