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 support@ccsinfo.com

Sony Lanc source code

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



Joined: 22 Sep 2007
Posts: 3

View user's profile Send private message

Sony Lanc source code
PostPosted: Tue Mar 02, 2010 1:38 am     Reply with quote

Hi
I'm deep in the programming of the LANC protocol . And I wish I could have a CCS C source code as a reference (not ASM).

If anyone of you can halp in this topic please do.

Anyway, some questions about the protocol:

I am working with a scope and an external controller.
I also have a list of the LANC commands. I'm currently detecting the frame of each BYTE and know the timing of every BIT.

But I have run into three problems, I will be happy if you could help me with them:

1. The order of bits in every byte is a 0 first and last 7 or vice versa?
2. When I want to write a command to the camera, at what point of the bit timing am I supposed to modify the BIT logic state ? Mid-time or early the beginning of BIT? And for how long the BIT logic state must appear for the camera to recognize it as 1 or 0 ?
3. Is +5 volts is considered a 1 or 0?

thanks Amnon
Guest








PostPosted: Tue Mar 02, 2010 4:20 pm     Reply with quote

A lot of info here..

http://elmelectronics.com/thehome.html#ELM624

I have used this chip in the past - what a timesaver!

I have also hacked into the buttons from a working LANC control dongle - that saves time too.


HTH - Steve H.
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