It is currently Fri Jun 05, 2020 5:05 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Code for ADC output
PostPosted: Mon Jun 18, 2012 10:49 am 

Joined: Tue May 01, 2012 2:10 pm
Posts: 8
Location: nkana
I have made progress on hardware interface now I'm asking for assistance on coding. The ADC has a busy output which goes low when conversion is done. I need code to process this signal that indicates to the 68000 that conversion is over. Second, I want to set the timer to schedule to the selection of voltages at the multiplexer at an interval of 5 minutes. I have 10 multiplexed inputs for the two ADCs. The ADC is ZN448E and the MUX is 4051.

 Post subject:
PostPosted: Wed Jun 20, 2012 2:05 pm 

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
You could wire the EOC to generate an interrupt, or buffer it so it may be read and tested.

move.b ADC_STATUS,d0
btst #0,d1
beq adceoc


btst.b #0,ADC_STATUS
beq adceoc

Set your timer to generate a periodic interrupt.

You'll need to own the project development. There are several books on interfacing to 68K, and micro's in general. Review code and design examples.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: Google Adsense [Bot] and 8 guests

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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group