• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Data Converters » High Speed Data Converters » High Speed Data Converters Forum » TLC5540 with PIC18F4550
Share
High Speed Data Converters
  • Forum
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    This amplifier doesn't exist...now what!?

    Posted 21 hours ago
    by Xavier Ramus
    Sometimes it’s impossible to find an amplifier with the...
  • $core_v2_blog.Current.Name

    Cable equalization 101 – Automating your design

    Posted 3 days ago
    by Hooman Hashemi
    Judging by the number of views on a post related to numerical...
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 7 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...

Forums

TLC5540 with PIC18F4550

This question is answered
Janaranjana Sampath
Posted by Janaranjana Sampath
on Feb 21 2012 02:34 AM
Prodigy90 points

Hi all,

I'm going to use TLC5540 with PIC18F4550 microcontroller.

Do I need 74AC573 IC when interfacing microcontroller and ADC .

(I'm referring the application note "Interfacing the TLC5540 Analog to Digital Converter to the TMS320C203-80 DSP (APPLICATION REPORT: SLAA032)".)

for my design ???

My microcontroller can handle 5v signals. Im hope ur kind quick response.

regards 

sampath

ADC data converter pic18f4550 tlc5540 74AC573
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Matt Guibord
    Posted by Matt Guibord
    on Feb 29 2012 14:11 PM
    Verified Answer
    Verified by Janaranjana Sampath
    Genius9015 points

    Sampath,

    It looks like the TLC5540 digital outputs have a typical high of 4.5V and a typical low of 0.4V. If you have a 5-V I/O uC, this should work fine. I'm not sure why they use the buffer here.

    Regards,
    Matt Guibord

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Mar 01 2012 01:10 AM
    Prodigy90 points

    Matt

    At first i need to thank for your reply.

    i have another problem regarding the TLC5540 .

    that is;  can i give a signal to the input (analog in of TLC5540 ) straightway without any ic in between TLC5540 and analog in.

    some configurations were used as below.. do i need to use below methods?... or do u have any suggestion..


    thank you

    regards

    sampath

    ADC data converter pic18f4550 tlc5540 74AC573
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Mar 01 2012 01:20 AM
    Prodigy90 points

    I couldnt mention this in my earlier post. my analog in range is 0v to 2.28v.

    i have a problem with the clock signal. Here im going to use 5MHz(i have 5MHz crystal) . for the clock circuit  how can i use this crystal??

    thanks in advance

    regards

    sampath

    ADC data converter pic18f4550 tlc5540
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Guibord
    Posted by Matt Guibord
    on Mar 02 2012 13:00 PM
    Verified Answer
    Verified by Janaranjana Sampath
    Genius9015 points

    Sampath,

    If you look at page 14 of the datasheet, figure 15 shows you exactly that. The references are set to 0V and 2.28V respectively, matching your input signal. You'll need to setup your device to match the connections shown in the figure to acheive this.

    Second, instead of using a 5 MHz crystal you could simply use a crystal oscillator. Its basically the same thing, but the oscillator include all the circuitry needed to make it oscillate. They also come in different output voltage values, such as 3.3V LVCMOS output. You'll likely need a 5V CMOS crystal oscillator.

    Regards,
    Matt Guibrd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Mar 02 2012 22:40 PM
    Prodigy90 points

    Matt,

    at first i should thank u for the valuable thoughts.

    i fount out that the input circuitry  in the ADC input stage for Ac and DC coupling purposes.

    as you mentioned i ll try to buy a crystal oscillator for the implementation. (before i thought to make the oscillator using 74ls04 ic. )

    although i use the 5MHz here i cant get the all the ADC o/p values to the my pic.(im going to send this o/p values 12Mbps rate from the pic. so i ll mis 28Mbps).

    Isn't it a problem when i have activated the  ADC all the time ???

    also i'm going to use two clocks for ADC (5MHz) and the pic (48MHz)...do u think there will be a problem ???

     

    regards

    sampath

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Guibord
    Posted by Matt Guibord
    on Mar 06 2012 21:50 PM
    Verified Answer
    Verified by Janaranjana Sampath
    Genius9015 points

    Sampath,

    I'm not familiar with how the software will be written for the uC. You will need to tell the uC when to sample the data coming out of the ADC. I would suspect you could use the 5 MHz oscillator to do this. You cannot allow the uC and the ADC to run without some kind of synchronizing signal (like the 5 MHz reference) because there will be skew between the two which will drift over time and eventually cause errors.

    I don't see a problem with running the ADC all the time.

    Regards,
    Matt Guibord

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Mar 09 2012 22:04 PM
    Prodigy90 points

    Hi Matt,

    If I use a latch ,it ll be possible to get rid of the skew problem ?

    regards

    sampath

    ADC data converter pic18f4550 tlc5540 74AC573
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Guibord
    Posted by Matt Guibord
    on Mar 12 2012 08:27 AM
    Verified Answer
    Verified by Janaranjana Sampath
    Genius9015 points

    Hi Sampath,

    A latch will not get rid of the frequency skew problem. If you follow the method mentioned in my previous post where you use the 5-MHz clock as a trigger to the uC then you should be fine. The only concern then is making sure there is enough setup and hold time for your uC to make sure you're capturing valid data. In this case, the latch would add some delay to the data which would modify the setup and hold time, however it could also hurt you. You would need to know the initial setup and hold time to know if the latch would help. The programming of the uC could also effect the setup and hold times.

    Realistically, you're running the part slow enough that you'll probably be okay without having to do anything special. I just want you to be aware of the issue in case you encounter it later on. Programming wise, you can use a for loop, or even some simple single line additions, to add some delay. A single addition would probably be all you'd need, if at all.

    Regards,
    Matt Guibord

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Apr 03 2012 08:30 AM
    Prodigy90 points

    Hi Matt,

    I have encounted a problem when drive the circuit(in PCB). without analog input ,that pins shows a voltage about 1.7v . I don't know the reason for it. i guess if it is properly working there should be the value "0v". the Schematic of the ADC in PCB is below shown. can u help me regard this. do u think is there a problem with my circuit designing or what will be the reason for showing 1.7v at the ANALOG IN? .

    here

    J4- clock i/p

    J3- analog i/p

    i used 5MHz for the clk.

    the value at the adc o/p was (MSB)1000 0111(LSB).

    Regards, 

    Sampath

    ADC data converter pic18f4550 tlc5540
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Guibord
    Posted by Matt Guibord
    on Apr 03 2012 12:53 PM
    Verified Answer
    Verified by Janaranjana Sampath
    Genius9015 points

    Hi Sampath,

    If the analog input pin is left open, then it will float to some value. There are diodes on the input pin that could be biasing the input through their leakage current. Additionally, there are other circuits attached to this node that could provide the bias. Note that the node should still be high impedance and thus your driving circuit should easily overdrive this bias voltage. I'm not at all surprised that it floats at a voltage a little below VDDA/2, and it should not be a problem at all when you hook up your driving circuit.

    Regards,
    Matt Guibord

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Janaranjana Sampath
    Posted by Janaranjana Sampath
    on Apr 05 2012 04:53 AM
    Prodigy90 points

    Hi Matt,

    According to the my configuration my i/p (analog in ) voltage range in 0v -2.28v . But analog in pin shows 1.7v already. what will be the effect when if I give 2v to the in put.

    1.7 + 2 = 3.7 v >> 2.28v

    but my actual signal is not capable of giving 2.23 v because maximum 2.28 -1.7 ~ 0.58v

     I have noted in one application a schottky diode has used.  (figure1)

    in the data sheet another configuration has been used.. (figure2 ) 

    do u think what will avoid the problem ? (biasing 1.7v)

    figure 1

     figure 2

    how can i use the full range ? (0 ~ 2.28 v)

    what are the diodes do you recommend for the figure 2 diodes ?

    Thank you.

    Regards

    Sampath

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Guibord
    Posted by Matt Guibord
    on Apr 05 2012 09:35 AM
    Genius9015 points

    Sampath,

    Again, this bias is being created by a high impedance voltage divider. If you have a low impedance source, it will easily overcome the 1.7 V bias.

    Consider a voltage divider of two 1 Mohm resistors where the ends are tied to 5 V and 0 V. The divider will give us 2.5 V between the resistors. Now consider what happens when we use an input source with a low source impedance to drive this node. The low source impedance is much smaller than the impedance looking into the voltage divider. Thus we can approximate the source as an ideal voltage source. If an ideal voltage source is hooked up to a high impedance load, the node it is connected to will be equal to the voltage of the source. Thus, if the ideal source is 1 V, it will be able to drive the voltage divder to 1 V, despite the initial 2.5 V bias when no source is connected.

    Consider your input source as the "ideal" source in the above example and the input to the ADC as the high impedance voltage divider.

    Regards,
    Matt Guibord

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use