Quote:
Originally Posted by moomoomoo309
How does one write (java) code to use this encoder? There is only one PWM port.
|
The am-2899 (US Digital part number MA3-A10) has analog output, not PWM, and must be wired to an analog input.
The MA3-P10 (and -P12) have PWM output.
The FPGA, sampling at 40MHz, certainly is fast enough to detect and accurately time-stamp the edges of a PWM signal, but the FRC FPGA code does not support PWM decoding.