Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/25/07 22:24
Modified:
  02/25/07 22:27

Read: times


 
#133673 - SPI Interface Is 16-Bit
Responding to: ???'s previous message
If you look at the data sheet for the MCP42010 at the Microchip web site:

http://ww1.microchip.com/downloads...11195c.pdf

...it can be seen that this part requires a 16-bit transaction to perform a single command. It is feasible to configure the standard 8052 type USART into the synchronous clocked mode to support sending the 16-bits as two consecutive bytes out the USART. If used this way you would still have to support the CS_N pin and the RS_N pins as connections to general I/O pins under software control. In particular the rising edge of the CS_N is what commits the previously shifted out data to the part.

It may end up being just as easy, if not easier, to just also connect the SCK and SI pins to GPIOs as well and then just use software to manipulate the pins and send the 16-bit command/data sequences to the MCP42010.

Note: This part is 'write only' and so if your software has to keep track of the current setting of the digital pot then it is necessary to keep that setting in an internal register or memory location within the microcontroller. It is not possible to read back the previous setting of the MCP42010.

- Michael Karas


List of 15 messages in thread
TopicAuthorDate
at89c4051/at89c52 SPI            01/01/70 00:00      
   Bit-bang I'll bet            01/01/70 00:00      
      mcp42010 datasheet            01/01/70 00:00      
         spi bit banging            01/01/70 00:00      
   SPI Interface Is 16-Bit            01/01/70 00:00      
    SPI Interface Is 16-Bit            01/01/70 00:00      
      Reverse the bit order            01/01/70 00:00      
         why not do it the easy way ?            01/01/70 00:00      
            I agree with you, Erik            01/01/70 00:00      
               Usually?            01/01/70 00:00      
                  Thanks Andy,            01/01/70 00:00      
   Reverse the bit order            01/01/70 00:00      
      bit banging            01/01/70 00:00      
         that is the easy part            01/01/70 00:00      
            project requirement            01/01/70 00:00      

Back to Subject List