Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/10/03 20:11
Read: times


 
#60369 - Help!!! 8051+C+Data Logger
Responding to: ???'s previous message
Hi there I am doing an assignment a 2 channel data logger and I am struggling and I have to hand in the assignment next monday and I need all the help I can get. I would appreciate any help off any one. Thanks very much.

Ali

Problem Description

An 80C537 microcontroller is to be used as a two-channel data logger where
the input signal on channel 0 varies only very slowly with time and the signal on channel 0 varies only very slow with time and the signal on channel 1 varies at a frequency of up to 100 Hz. The signal on channel 1 is sampled regularly at 2ms intervals and the readings stored in a 100 byte buffer in RAM. The signal on channel 0 is sampled when an external interrupt request occurs on the INT2 pin and if the system is in the \"zoom mode\" the ADC resolution should be adjusted to obtain a second reading with the highest accuracy possible. This accurate value should be storedin a second 100 byte buffer. The status of a bit on port 4 indicates if the data logger on channel 1 is in \"zoom mode\". The system is started by a signal from the
PC and operates continuously until the \'stop\' signal is received from the PC. Following the
\'stop\' signal, the user selects one of the following to be displayed on
the PC screen, suitably formatted:

a) Average value of voltage on both channels
b) Maximum and minimum voltage on both channels
c) The whole set of values in the buffer for channel 1
d) The valid set of values in the buffer for channel 0

The PC is being used to simulate a simple keypad/display system and so all the data processing must be performed by the microcontroller software.

Inputs and Outputs

Select switches and LEDs as appropriate, including :-

Inputs
a) DC signal in range 0-5V from a PSU to cahnnel 0 of ADC
b) A waveform (eg sawtooth) ranging from 0 to 5V at frequency of up to 100Hz on channel 7 of the ADC
c) Port 4, bit 0 to select \"zoom mode\" on/off (1 = off)
d) Interrupt request on INT2 line to indicate when the signal on channel 0 should be sampled
e) Command inputs from the PC will be via the keyboard with the PC in Hyperterminal mode (NT) or Terminal (Windows) communicating with the 80C537 using serial COM2 port at each end Outputs
a) LED on port 5 bit 0 should show the \"zoom status\" of channel 0 (LED lit for \"zoom mode on\").
b) The summarised data should be sent to the PC using serial port COM2 as in (e) above. The PC display does not require detailed formatting.(Note,the microcontroller does not need to display any data locally).


List of 7 messages in thread
TopicAuthorDate
Compact Flash for Data logger            01/01/70 00:00      
   RE: Compact Flash for Data logger            01/01/70 00:00      
      RE: Compact Flash for Data logger            01/01/70 00:00      
         RE: Compact Flash for Data logger            01/01/70 00:00      
   Help!!! 8051+C+Data Logger            01/01/70 00:00      
      RE: Help!!! 8051+C+Data Logger            01/01/70 00:00      
         RE: Help!!! 8051+C+Data Logger            01/01/70 00:00      

Back to Subject List