View previous topic :: View next topic |
Author |
Message |
rudy
Joined: 27 Apr 2008 Posts: 167
|
NEED HELP FOR SERIAL |
Posted: Mon Dec 05, 2016 2:28 pm |
|
|
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
|
|
Posted: Mon Dec 05, 2016 2:59 pm |
|
|
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
|
|
Posted: Mon Dec 05, 2016 3:37 pm |
|
|
I mean getc() and putc()
regards. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 05, 2016 4:40 pm |
|
|
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
|
|
Posted: Mon Dec 05, 2016 5:09 pm |
|
|
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
|
|
Posted: Mon Dec 05, 2016 9:39 pm |
|
|
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 |
|
|
|