Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reading MCP10XXX datasheet

Status
Not open for further replies.

boylesg

Advanced Member level 4
Advanced Member level 4
Joined
Jul 15, 2012
Messages
1,023
Helped
5
Reputation
10
Reaction score
6
Trophy points
1,318
Location
Epping, Victoria, Australia
Activity points
11,697
Reading the datasheet for MCP10XXX digital potentiometer.

Datasheet

Refer to page 18.

I sort of get the structure of the data you are supposed to transmit to the POT. 3 x 16 bit integers.

The first 16 bit integer contains a max of 10 bits corresponding to the resistance you want to set the POT at.

The second 16 bit integer contains the channel or channels you want to set at the former resistance value. But the second byte of that is ignored.

The third 16 bit integer contains the command to either shutdown the channel or set its resistance value. Again the second byte of that is ignored.

But what does "the first 16 bits shifted out will be 0s' mean?

That seems to be in conflict with the rest of the data structure you send to the device via SPI.


Either it means that the device expects 4 x 16 bit integers, in which case the first one you send is 0 and 'the first 16 bits shifted out will be 0s' makes sense.

Or it means that 3 x 16 bit integers are expected but the first 16 bit integer will be 0 only if the command byte contains the 'shut down command'. In which case a resistance value in the first 16 bit integer is irrelevant.

So which is it? The author of this datasheet is being ambiguous.
 

Hi,

are we reading the same datasheet?
(added: oh indeed you talk about MCP10xxx but the link is for MCP41xxx. Below text is for MCP41xxx)

See "Figure 5.1"
There is only one 16 bit transfer. Not two 16 bit.

The 16 bit are divided in
* 8 bit control byte
* 8 bit data byte

Don´t care about "SO" as long as you don´t use multiple MCP10xxx daisy chained.

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top