Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ADC Serial CD RTS DTR Basics for TLC549IP and Atmega8

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
ericclapp

Bascom Member



Joined: 20 Feb 2013
Posts: 3

PostPosted: Sun Apr 12, 2015 6:33 pm    Post subject: ADC Serial CD RTS DTR Basics for TLC549IP and Atmega8 Reply with quote

Hi,

I have a ADC TLC549IP 8-bit i want to read the data from the device using the RTS DTR and CD pins but have no idea where to start.

Is there a help file somewhere that might explain?

I eventually want to read the values, 0 - 255 and then translate to a string and display on a LCD.

I have a idea about the translating and displaying, but no clue on how to retrieve the data from the ADC to start with.

Thanks in advance.

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1801

blank.gif
PostPosted: Sun Apr 12, 2015 6:51 pm    Post subject: Reply with quote

Never did a search?
Looking up TLC549 Bascom retrieves: http://www.mcselec.com/index.php?option=com_content&task=view&id=183&Itemid=57
Back to top
View user's profile
ericclapp

Bascom Member



Joined: 20 Feb 2013
Posts: 3

PostPosted: Sun Apr 12, 2015 6:57 pm    Post subject: Reply with quote

great thanks, yes i did on this forum (do a search). Where did you search to get the link you provided?
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1801

blank.gif
PostPosted: Sun Apr 12, 2015 7:49 pm    Post subject: Reply with quote

ericclapp wrote:
Where did you search to get the link you provided?

Google - 1st hit.
Back to top
View user's profile
ericclapp

Bascom Member



Joined: 20 Feb 2013
Posts: 3

PostPosted: Mon Apr 13, 2015 10:42 am    Post subject: Reply with quote

I cant get that code to work on my atmega8a.

I am using AVR and this code was designed on 8051 apart from the port assignment is there a any other differences?

The code checks and loads OK, just doesnt seem to be reading the ADC. Is the internal clock of the atmega8a good enough to work with the TLC549 ?
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1801

blank.gif
PostPosted: Mon Apr 13, 2015 11:46 am    Post subject: Reply with quote

The ATM8a runs at 1MHz out of the box, which still may be fast enough, and you have to use the pin-register of the port for DOUT.
Are you aware of that?
Else - show you're code, if you want more specific answers.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum