Skip to content

Problem sampling on channel1 when CAPDAC is set, solution included #13

@Benicz

Description

@Benicz

Hi!

I think I found an issue when I wanted to sample on channel1 using capdac.
I hope I'm using it right...

The compensation value is being added in line #174, but the capdac itself seems to not get set correctly.
Searching the code, I found that in line #234, always FDC1004_CONF_MEAS_CHB_DISABLED is used, turning CHB completely, instead of switching it to the capdac.

So I implemented
#define FDC1004_CONF_MEAS_CHB_CAPDAC (0x4)
and since I use it, it works as expected.

So, FDC1004_CONF_MEAS_CHB_DISABLED should only be used if capdac == 0.

Hope my assumption (and solution) is correct?
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions