CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Interfacing MM5451

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








Interfacing MM5451
PostPosted: Wed Nov 01, 2006 9:04 pm     Reply with quote

I'm looking at the datasheet on how to use this and its only got DATA IN and CLOCK IN. Now it says it uses Serial data input, so what exactly does this mean? SPI?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Nov 01, 2006 9:18 pm     Reply with quote

It means that you clock the data into the chip. 1 start bit and 35 data bits. See the 74595 driver to see how to clock in data. However, there is no enable for the chip like the '595.
MGP



Joined: 11 Sep 2003
Posts: 57

View user's profile Send private message

PostPosted: Sat Nov 11, 2006 7:54 pm     Reply with quote

If you look on Page 4 of the datasheet you'll find a section called "Functional Description". It has several paragraphs that explain exactly the theory of operation of the chip and how it works. It also has a detailed timing diagram that shows the relationship between the clock and data signals to the device.

They put these sections in the datasheets to answer questions just like yours. ;-)

Once you read and understand how the device works you'll see that SPI can be used to clock data into the device or that you could also "bit bang" the data. The choice is yours. I've used this particular device (it's pretty ancient) in the past, although not with a PIC. I've driven it both ways and it works just as the datasheet describes.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group