STM32 Encoder on Timer

General discussion on mikroC.
Post Reply
Author
Message
RehraGuenter
Posts: 2
Joined: 21 Jul 2008 10:22

STM32 Encoder on Timer

#1 Post by RehraGuenter » 08 Nov 2017 20:53

How can I use the Timer in STM32 to read an encoder on PC6/PC7 ?
How can I init the port as alternativ function ?

I use "C" as language

regards GRE

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: STM32 Encoder on Timer

#2 Post by dusan.poluga » 09 Nov 2017 15:00

Hi,

This link to the forum post contains information that will answer your first question.
viewtopic.php?f=185&t=58939&p=233881&hi ... er#p233881

This other post shows how to change the pin alternative function.
viewtopic.php?f=178&t=70538&p=284408&hi ... on#p284408

Best Regards,
Dusan Poluga.

Post Reply

Return to “mikroC General”