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

Help for Serial communication with LED driver

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



Joined: 01 Jun 2011
Posts: 19
Location: INDIA

View user's profile Send private message MSN Messenger

Help for Serial communication with LED driver
PostPosted: Fri Dec 23, 2011 1:18 am     Reply with quote

I am using PIC 16F887 as master and MY9221 as slave. Communication with MY9221 is 16 bit communication and data is written in MY9221 on both edges of clock cycle. I had tried but get no proper communication with MY9221. Can anyone help me how to communicate with that IC ?
http://www.my-semi.com/content/products/product_mean.aspx?id=4
http://www.seeedstudio.com/wiki/images/9/98/MY9221_DS_1.0.pdf
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Dec 23, 2011 6:39 am     Reply with quote

I had a quick look into the datasheet and it is using a strange variation on the SPI protocol where data is clocked in on both edges but it is unclear to me how the data is clocked out.

Post your program for as far as you have it now. Make the program as small as possible by only having the setup code and code for communication to the driver. No other fancy stuff for light patterns, just one fixed gray value.
temtronic



Joined: 01 Jul 2010
Posts: 9245
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 23, 2011 6:48 am     Reply with quote

You should show us your code so that we can comment on it.
A quick look at the datasheet shows how to send the 208bits of data, it's a simple shift register chip.
If you want a 'driver' written for you, just send me 6 pieces of the chip mounted on DIP carriers and give me 1 week.
I don't give code that I cannot test 100% with real chips.
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