SAM4E16E Quadrature (QDEC) example

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

Posts: 1
Joined: Wed Mar 12, 2014 10:11 am

SAM4E16E Quadrature (QDEC) example

Wed Sep 10, 2014 9:47 am

Hi guys,

I have been confused about the QDEC decoders in the SAM4E series.
Atmels documentation is faulty (acknowledged).
Contacted Atmel support and finally solved this issue.
Wanted to share 3 QDEC example code with you.
(Works on the SAM4E-EK)

The 100 Pins package has 1 QDEC
The 144 Pins package has 3 QDEC's

Please leave a message when you used this example.
Sam4E16E 144 pins 3 QDEC
SAM4E16E 144 pins, 3 QDEC example code
(4.55 KiB) Downloaded 234 times
Posts: 3
Joined: Tue Sep 09, 2014 2:12 pm

Re: SAM4E16E Quadrature (QDEC) example

Tue Sep 16, 2014 10:54 pm

You are my hero!  It works, we spent weeks with 2 people trying to get this figured out.  Yes the documentation is bad, and atmel support hadn't been helpful yet.  Thanks for posting something that works!

We were very close, the only difference I can see is that we had 
sysclk_enable_peripheral_clock after tc_init.  

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 4 guests