MCU lab questions

Source: Internet
Author: User

For more information about the Single-Chip Microcomputer Development, see the following.

 

Lab questions

Description:

(1) The question is divided into one, two, and three categories based on the difficulty. The question number starts with 1st Arabic numerals, which is the difficulty of the question. The question number is followed by the serial number after.

(2) If there is "*" on the question number, it means that it can be implemented using a PC or a single-chip microcomputer. After the question number, add the suffix "a" (implemented by a PC) or "B" (single-chip microcomputer) to show the difference. For example, the question "2-13 *" is difficulty level 2 and serial number is 13. It can be achieved through a PC (in this case, the question number is "2-13a") or a single-chip microcomputer (question number is "2-13b.

 

1-1 * design a microcomputer-controlled band-pass filter to control the channel center frequency of the filter.

1-2 design an ultrasonic range finder Based on 51 single-chip microcomputer. The display distance is required. An audible/visual alarm is triggered when the distance is less than 1 MB.

1-3 design an automatic voice reporting device based on single chip microcomputer, recording and playing using voice chip (ISD4004, etc.) or single chip microcomputer with voice function. The main function of the system is to pre-record and modify the content of the site report, which is stored in the voice chip or single chip microcomputer. During the vehicle driving process, the system can correctly report the site.

1-4 Design an infrared serial communication system based on single chip microcomputer. The Communication adopts the asynchronous half duplex mode, and the data sent or received is displayed by LED or LCD.

1-5 design a Data Collection System Based on USB interface. Data collection consists of a single-chip microcomputer circuit. The collected data is transmitted to the PC through a USB interface, stored and displayed in the PC.

1-6 the D/A conversion module based on the USB interface is designed to form a waveform generator.

1-7 * design an interface circuit that can realize both A/D conversion and D/A conversion by using the PLL circuit.

1-8 uses 8031 single-chip microcomputer to form a high-precision PWM 12-bit D/A converter.

1-9 * design a time-based billing intelligent power meter. Requirements:

(1) The accumulative power consumption, total power consumption, accumulative power consumption in each time period, and total power consumption can be displayed as needed;

(2) You can query the electricity usage and electricity usage for each period of the current day;

(3) A Clear button is provided to eliminate the above amount and start accumulating again;

(4) has the excess alarm function and the excess part double billing function.

Tip: You can use a small motor with a disc to simulate the dial rotation of the Power Meter.

1-10 Design of universal interface board to realize serial communication between PC and single chip microcomputer (8031) (Query Method for Single Chip Microcomputer to send to PC, and interrupt method for PC to send to single chip microcomputer ).

1-11 * design an infrared microcomputer thermometer. The silicon solar cell is used as the detection element to receive the radiation signal of the tested target surface, so as to obtain the temperature of the target surface.

1-12 * design a peak detection circuit to detect and display the peak value of input voltage within a certain period of time.

1-13 * design a valley detection circuit to detect and display the valley values of input voltage in a certain period of time.

1-14 parallel communication based on the FIFO chip. The FIFO chip idt7203 is used as the data storage to implement parallel communication between two single-chip computers.

1-15 controlled heat meters based on spceo61 single-chip microcomputer. The 16-bit lingyang MCU SPCE061 is used as the core to form a heat meter. A heat meter can control five rooms. The temperature of each room can be set separately. The thermal value and cost of 8-bit LCD are displayed; the temperature of each room is broadcasted by voice; Serial Communication enables centralized meter reading for convenient management.

1-16 Power Supply Controller Design Based on Real-time clock chip x1228. The power supply controller receives device-level commands, controls the power supply of the device, and sends an alarm five minutes before the scheduled power-off.

1-17 adopts sht15 temperature and humidity detection circuit. The Digital Temperature and Humidity Sensor sht15 is used to form a temperature and humidity detection circuit, and the result is displayed on the LED or LCD.

1-18 the design of a 4-channel output programmable current source based on max525. The single-chip microcomputer and the Serial D/A converter max525 are used to form a four-channel output programmable current source.

1-19 A ds1616-based timing data collection system. The ds1616 integrated data collection Record Device with real-time clock is used to collect and record multi-channel data in real time, and the system is turned on or off using the interrupt signal at the time of reporting.

1-20 small signal Data Acquisition Circuit Based on ad7715. The ad7715 is used to form a small signal data acquisition circuit, which can collect and display analog voltage as low as 5 music.

1-21 * design the intelligent electric cooker control circuit.

(1) features such as cooking, fast cooking, porridge cooking, heat preservation, and timed opening;

(2) The power-down protection function is provided to ensure that the rice is cooked as usual in case of power failure for a short period of time.

1-22 * design the computer controller of the air conditioner. Make the air conditioner have:

(1) cooling and moisture extraction functions;

(2) The wind speed can be set to low speed, medium speed or high speed;

(3) The indoor temperature can be between 16 and 16 ~ Any setting within the range of 31 °C;

(4) Real-time display of indoor temperature using digital tubes;

(5) can be in 1 ~ Automatically switches the air conditioner within four hours.

1-23 * multi-function microcomputer electronic scale is designed. It has the following functions:

(1) display the weight and amount;

(2) resetting;

(3) overload display;

1-24 use a single-chip microcomputer to design an electronic clock. Requirements:

(1) display time, minute, and second;

(2) preset time, minute, and second;

(3) use voice reports.

 

2-1 * use a programmable timer/counter to form the interface circuit of the measurement signal cycle. Requirements:

(1) the input signal is generated by a standard signal generator (such as a sawtooth wave, triangular wave, and sine wave), with a frequency of 15 ~ 25 kHz;

(2) display the Tested signal frequency on the CRT or digital monitor, verify the measurement accuracy, and analyze the causes of errors.

2-2 * design a key circuit. Requirements:

(1) 8 buttons are used. Each key value corresponds to an 8-bit binary code;

(2) Use CRT or led to display the value of the pressed key;

(3) Use the query input method (ProgramSoftware anti-jitter measures ).

2-3 * The mc14499 chip is used to form a serial port hardware decoding interface circuit for the keyboard and display. Requirements:

(1) The display part adopts mc14499 decoding and driving;

(2) digital display is adopted.

2-4 * the dual daco832 is used to form a two-way asynchronous D/A conversion bipolar voltage output interface circuit. Requirements:

(1) generate three kinds of waveforms, namely, sawtooth wave, triangular wave, and sine wave;

(2) Two-way Waveform Inversion with an amplitude ratio.

2-5 * use adco809 to Form A/D conversion interface circuit. Requirements:

(1) Compile the program, sample A/D conversion data in the interrupted mode, and take h of sampling points, and display the results;

(2) the analog signal range of the/D converter is 0 ~ + 5 V. Use either of the following methods:

① The analog quantity is output by three potentiometer;

② To ensure the stability and reliability of the input analog signal during the operation of the/D converter, a sampling and holding circuit unit is required before the input of the/D converter.

2-6 * design an event statistics and display circuit. Requirements:

When an event occurs, a negative pulse is sent. The display is composed of two 7-segment led monitors. The initial status shows "0". After each negative pulse is sent, the display content is increased by 1. When "99" is displayed, if a negative pulse is sent, "00" is displayed again. At the same time, the buzzer will ring for 10 seconds at a frequency of Hz.

2-7 * design a traffic light management circuit. Requirements:

Green, yellow, and red indicators are installed in both the north and south directions of the traffic exit. The traffic time between North and South is 15 s, and the traffic time between East and West is 10 s. when the traffic is changed from the green light to the 3 s before the red light, green light and yellow light. Each traffic time is indicated by two 7-segment led monitors, and is indicated by a reverse time (that is, 1 is subtracted from 15 or 10, and the display is disabled when traffic is prohibited ). When a red light is displayed in a certain direction, manual intervention is allowed to forcibly change the color of the two directions to allow ambulances and other vehicles to pass through, however, after issuing the traffic change command, there will be 3 seconds to change the direction of the green light to display the yellow light, and the frequency will flash 10 times per second to show a warning.

2-8 * design the fan control circuit so that the fan has:

(1) Strong, medium, and weak;

(2) imitating natural wind (plateau wind, forest wind, and mountain wind );

(3) Timing function.

Tip: Use thyristor to change the voltage and current at the motor end to control the speed.

2-9 use 8255a and adco809 to design an ibm pc a/D conversion interface card. Requirements:

The system board's 8253 timer 0 controls the 8 analog inputs of adco809 sampling every 5 seconds, and displays the number of collected digits on the CRT screen (the number of digits is 00h, FFH indicates 5 V). When 8 analog input changes, the relationship curves between input and output are dynamically described on the CRT.

2-10 converts analog to analog using 8255a, adco809, and daco832. Requirements:

(1) adco809 converts the analog quantity of iNO to a digital volume at the fastest possible speed. Adco809 is started only once, and later conversion is started by itself;

(2) daco832 continuously converts the number to analog. When ino <1 V, DAC outputs 1 V <ino <2.25v, 1 V-based variation (INO-1) multiplied by 4 and output from DAC; when ino is greater than or equal to 2.25, the DAC outputs 5 V and dynamically describes the relationship between input and output on the CRT;

(3) Qualitative display of iNO size with three LEDs of different colors. When ino is less than 1 V, it is displayed in yellow led; When 1v is less than or equal to iNO <2.25v, it is displayed in green; When ino is greater than or equal to 2.25, it is displayed in red.

2-11 * design a PC interface card for temperature control equipment. The 8255a chip must be used and ADC0809 and dac0832 must be connected to the temperature control equipment. Design the hardware circuit and compile the software to perform the f (x) operation on the Data X after A/D conversion. The calculation result is output from the D/A converter, data is input and output in the interrupt mode, and irq2 interrupt is used. If the f (x) operation subprogram already exists, its entry parameters and exit parameters are all in Al.

2-12 * use a PC to control the time sequence of the injection molding machine. The process flow for the injection molding machine to produce an workpiece is: clamping (1 S) → injection (2 S) → delay (3 S) → opening (1 S) → production and Extension (1 S) → return to production (1 S ). If the 8255a B port is used, pb0 ~ Each line of pb5 controls an execution mechanism action, and uses pa7 and IPv6 as the input for power-down and low-temperature warning monitoring. If the switchover is normal, the implementing agencies will switch back and forth according to the process sequence. If an exception occurs, a red LED will be controlled through pc0 as a fault alarm and a 6 s fault handling time will be set, the time is up. If the fault has been ruled out, the system continues to run; otherwise, production will stop.

2-13 design a parallel interface circuit with two pieces of 8255a, and connect the two PC's PC bus systems (one master and one slave) to achieve one-way communication between the host and the slave. Transmission synchronization is implemented by means of interruption.

2-14 * design a bus ticket vending machine interface, which includes data input registers, data output latches, status registers, and control registers, the port addresses are 0510 H, 0512 H, 0514 H, and 0516 h respectively. It is designed to accept three types of coins: 1, 2, and 5. Each coin is input, the Status Register is 0th position 1, and the data input register is saved to the coinCode(And 05 respectively ). When the content of the data input register is read, The 0th-bit Status Register is clear, and the total amount of money that has been invested in coins is output from the data output latches (which control the display. When the ticket receiving button is canceled, the Status Register bit 1 is set to 1. If the total number of coins invested is 5, the register bit 0 is set to 1, and the ticket sending institution is started, and take the coin; if the total amount is not 5, set the control register bit to 7 to 1, and control all coins invested by the exit. Regardless of the total number of coins invested, once the bit 0 or the bit 7 of the control register is set to "1", the display is cleared to 0. Design the hardware and software for this interface.

A multi-wave generator is designed with a single-chip microcomputer in 2-15. It periodically outputs an approximate sine wave of 100 kHz, 50 kHz, 20 kHz, 10 kHz, 5 kHz, 2 kHz, and 1 kHz, the signal duration of each frequency is 2 s.

2-16 * a sampling rate programmable A/D conversion system is designed, and its speed is controlled by a programmable timer. Set the reference clock frequency to 2 kHz. the/D converter quantifies the input at the F/X sample rate per second in xz/F seconds. X, Y, and Z can be set by the program, all of which are less than 256.

2-17 * a digital recorder is designed to store the language into memory at a rate of 5000 times per second. A total of 60000 data records (12 seconds) are collected and then speakers are played at the same rate.

2-18 * A Simple keyboard is designed to enable 1, 2, 3, 4, 5, 6, and 7 scales when the corresponding keys are pressed, and the duration of pronunciation is adjustable.

Tip: (1) the frequency of each scale is as follows:

Scale

1

2

3

4

5

6

7

Frequency (HZ)

261.1

293.7

329.6

349.2

392.0

440.0

493.9

(2) The difference between different frequencies can be obtained by adjusting the time interval for outputting data to the D/A converter.

2-19 design an electronic clock using a single-chip microcomputer. The electronic clock display format is as follows:

××. ××

Minutes and seconds

The control functions of the keypad are as follows:

C key-clear, display 00.00.00;

G key-start timing;

D key-stop timing;

P key-set the time, minute, and second values. If the input is incorrect, e-.---.-is displayed. In this case, you can enter P keys to re-enter the preset values.

2-20 * design a general control system, which consists of a microcomputer, an I/O channel, a keyboard/display circuit, a parallel I/O interface, and a front-end control circuit.

2-21 * design a multi-function led clock. Requirements:

(1) display year, month, day, hour, minute, second (usually display hour, minute, second );

(2) preset year, month, day, hour, minute, and second;

(3) It has the timer function to report time to sound and light.

2-22 design an intelligent meter. Shows the mileage, total mileage, and billing (unit price, total price ).

2-23 single-chip microcomputer temperature detection system. Design a temperature detection system based on single chip microcomputer, and display the detection results with LED or LCD display.

2-24 single-chip microcomputer temperature detection system based on serial port. Design a single-chip Temperature Detection System. The A/D Conversion Result is sent to the single-chip microcomputer through the serial port and displayed on the LED or LCD display.

2-25 microcontroller humidity detection system. Design a humidity detection system based on single chip microcomputer, and display the detection results with LED or LCD display.

2-26 humidity detection system based on single-chip microcomputer based on serial port. Design a single-chip microcomputer humidity detection system. The A/D Conversion Result is sent to the single-chip microcomputer through the serial port and displayed on the LED or LCD display.

2-27 single-chip microcomputer alcohol concentration detection system. A single-chip microcomputer-based alcohol concentration detection system is designed to display the detection results with LED or LCD display.

2-28 serial port-based Single-Chip Microcomputer alcohol concentration detection system. A single-chip microcomputer alcohol concentration detection system is designed. The A/D Conversion Result is sent to the single-chip microcomputer through the serial port and displayed on the LED or LCD display.

2-29 single-chip microcomputer gas concentration detection system. Design a gas concentration detection system based on single chip microcomputer, and display the detection results with LED or LCD display.

2-30 single-chip microcomputer gas concentration detection system based on serial port. Design a single-chip gas concentration detection system. The A/D Conversion Result is sent to the single-chip microcomputer through the serial port and displayed on the LED or LCD display.

 

3-1 using two PC RS-232C interface for serial communication. Requirements:

(1) The sender sends the characters entered from the keyboard to the receiver, which is displayed on the CRT after receiving the characters;

(2) query half-duplex channels;

(3) the display of the two machines from the middle is divided into two display areas, the upper display area shows the local sent to the other side of the characters, the lower display area shows the local machine received through the RS-232C interface characters.

3-2 using two PC RS-232C interface for serial communication. Requirements:

(1) half-duplex communication with interruptions;

(2) A and B are received from the keyboard and typed characters, and passed to the other party through the RS-232C;

(3) the display of the two machines from the center is divided into two display areas, the left display area shows the local sent to the other side of the characters, the right display area shows the local received through the RS-232C interface characters.

3-3 use two single-chip microcomputer for serial communication, and the communication result can be displayed through the LED display.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.