Skip to content

Encoder Input Capture extension #1

@sjauhri

Description

@sjauhri

Hi,
I'm using the CORE2 Board to control my wheels and have encoders that provide 3 phase signals i.e. each encoder has three signals.

Hence, I need to extend the encoder software to capture three inputs (as opposed to two ICs in the current software)

My queries are:

  1. Are Input Capture filters and prescalers currently used? If so, what is their role? (I see IC1Filter = set to 0x0F and IC1Prescaler set to TIM_ICPSC_DIV4)
  2. Is it sufficient to update the encoder class and the corresponding structs (TIM_Encoder_InitTypeDef) such that they use three input captures i.e. adding IC3 everywhere?

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