Skip to content

microchip-pic-avr-examples/attiny1617-quadrature-decoding-mplab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCHP

ATtiny1617 Quadrature Decoding using CCL with TCA and TCB

diagram

Incremental quadrature encoders are used in a great number of applications across many disciplines as they provide a low-cost way of measuring motion in systems with moving parts. Some typical examples include measuring the position of a physical control wheel or measuring the rotor angle and velocity in an electrical motor.

The example is explained in more details in the application note AN2434.

Night Light

Related Documentation

Software Used

Hardware Used

Setup

Circuit

Setup the connections as described in the diagram above

Operation

  1. Download the zip file or clone the example to get the source code.
  2. Open attiny1617-quadrature-decoding-mplab.X in MPLAB.
  3. Connect the ATtiny1617 with your programmer of choice, we used a Atmel ICE.
  4. Make sure the kit is selected as the tool to be programmed under project settings.
  5. Press the make and program button to program the device.
  6. Interact with the encoder and see the effect on count PA7 direction PA4.

Conclusion

We have shown how you can use a attiny1617 to do quadrature decoding. Refer to the application note AN2434 for more details about the implementation.

About

Quadrature Decoding using CCL with TCA and TCB with attiny1617

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages