Skip to content

Lathe spindle hardware quadrature encoder ? #4

Description

@tuxcnc

The STM32F103C8T6 has 3 counters capable for hardware quadrature encoders.
I found all are used.

extern TIM_HandleTypeDef htim1; // spindle PWM
extern TIM_HandleTypeDef htim2; // timer compare used to reset step pins after step, all 4 channels
extern TIM_HandleTypeDef htim3; // servo thread 1kHz
extern TIM_HandleTypeDef htim4; // base thread 50kHz

But... The servo_thread is 50*base_thread, so it can be service by one timer, I suppose.

Is it possible to free one timer and use it for hardware quadrature encoder ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions