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

NEED HELP FOR SERIAL

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



Joined: 27 Apr 2008
Posts: 167

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

NEED HELP FOR SERIAL
PostPosted: Mon Dec 05, 2016 2:28 pm     Reply with quote

Hi there,

I am developing one routine for communicating with a LV 23200 tuner. Never use a serial communication first, but made some good routines for i2c.
Can somebody help me; just saying if serial is the better approach for this tuner with LV23200 PLL tuner?

[img]http://www.datasheetlib.com/datasheet/388738/lv23200t_sanyo-semiconductor.html[/img]

I don't know, and the datasheet don't specify the baud rate, so i am thinking to start with 9600.

Also, as it seems to be a very easy communication, how do I write to the PLL? with put() and Get() instructions?

Any help will be appreciated!

Regards.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Dec 05, 2016 2:59 pm     Reply with quote

CCS doesn't use put and get. This is not a general electronics forum.
It's for the CCS C compiler.
rudy



Joined: 27 Apr 2008
Posts: 167

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

PostPosted: Mon Dec 05, 2016 3:37 pm     Reply with quote

I mean getc() and putc()

regards.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Dec 05, 2016 4:40 pm     Reply with quote

It uses an SPI-like protocol, similar to SPI Mode 0, so you would use
#use spi() and spi_xfer() for this. The CE pin is not a "chip enable" pin,
it's actually an address/data selection signal. This is stated in
the "Description of Pin Functions" section for pin 15, CE.

The data output pin (DO) is open-drain and requires a pull-up resistor
to Vdd. The sample schematic in the data sheet shows 51K. I think
that's way to large and probably a typo. 5.1K would be more suitable,
based on the open-drain current limit of 1 ma.

This is a dual-voltage chip, and requires 3.0v for Vdd and 5.0v for Vcc.
rudy



Joined: 27 Apr 2008
Posts: 167

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

PostPosted: Mon Dec 05, 2016 5:09 pm     Reply with quote

OK.

SPI, never use before. For sure, it will be a great opportunity to grow my knowledge!
Thank you!
Regards.
drolleman



Joined: 03 Feb 2011
Posts: 116

View user's profile Send private message

PostPosted: Mon Dec 05, 2016 9:39 pm     Reply with quote

Well it's time to learn. Go to the examples that is what they are for. Then when you get stuck, post your code and there are super coders on the forum that can help you. Tthey won't code for you.

dave
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