Page 6 of 6
Re: MCP3561/2/4 MCP3564 Click Board
Posted: Wed Nov 17, 2021 7:36 pm
by SpeedPIC32
Re: MCP3561/2/4 MCP3564 Click Board
Posted: Mon Nov 22, 2021 7:08 pm
by SpeedPIC32
Hello Ben,
That looks good now, thank you.
I still have open questions.
1. how does the SetOffsetCalibration work?
2. how does SetGainCallibration work?
Which values must be entered there?
3. how often do I have to call it?
4. where do I get the values
5. why are there so many queries? see picture
6. can you tell me how the initialization works.
Initialization
0x46
0xE0
0x0C
0x88
0x80
0x02
then a measurement
0x66 is the "Sendchar" ?
0x01
0x86
0xA0
0x5A
0x08
0x40 why does this happen so often?
0x40
0x40 etc to
0x41
0xFF is the "Transaction" ?
0xFF
0xFF

- SPi2.png (370.35 KiB) Viewed 4792 times
with kind regards
Re: MCP3561/2/4 MCP3564 Click Board
Posted: Mon Nov 29, 2021 1:24 pm
by SpeedPIC32
Hello Ben
I used to program conventionally.
This is how the software should run
the big difference is in oversampling
My version runs with 49152 OSR at 10SPS
Because of the polling of the SDO line it does not work at higher values.
The query mucks itself from 2048 to at 2SPS. see pictures
with kind regards

- Ben1.png (634.43 KiB) Viewed 4754 times

- SpeedPic32_1.png (453.38 KiB) Viewed 4754 times
Re: MCP3561/2/4 MCP3564 Click Board
Posted: Mon Nov 29, 2021 1:26 pm
by SpeedPIC32