Design of digital FM radio using single chip microcomputer + CXA1019S + phase-locked loop BU2614

Publisher:中华古风Latest update time:2019-11-21 Source: 51heiKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

4.3 Power-off data storage procedure

     This part mainly includes: (1) Read the data stored in 93C46 to the corresponding position every time the machine is turned on. (2) After each cycle scan and function query in the main program, write the current value and stored data into the 93C46 chip. The two parts of the program are as follows:

(1) Program to read data from 93C46

LCALL INSB ; Read the value before the last shutdown

          MOV A,#80H

          ORL A,#80H

          LCALL WRI ;Call write instruction

          NOP

          NOP

          LCALL RDI ; read and write data in 31H

          MOV 31H,A

          LCALL RDI

          MOV 2FH,A ; read and write data in 2FH

          SETB P3.2

          NOP

          MOV R0,#0AH

          MOV R1,#4AH

          MOV R2,#82H

QUSHU: LCALL CUNTAI ; Restore the data stored in the ten keys 0-9

          INC R2

          INC R2

          DJNZ R0,QUSHU


   (2) Write data into 93C46

       LCALL INSB ; write enable

        MOV A,#30H

        LCALL WRI

        LCALL INSB ; write operation

        MOV A,#40H

        ORL A,#40H

        LCALL WRI ; call the erase and write instruction

        MOV A,31H

        LCALL WRI ;Write data into 31H

        MOV A,2FH

        LCALL WRI ;Write data into 2FH

        SETB P3.2

        NOP

        NOP

        CLR P3.2  

  WAIT1:JNB P2.7,WAIT1

        MOV R0,#0AH

        MOV R1,#4AH

        MOV R2,#42H

  XIERU:LCALL BAOHU ;Write the data of radio stations 0-9 into the corresponding storage units

        INC R2

        INC R2

        DJNZ R0,XIERU

        LCALL INSB

        MOV A,#00H ; write disabled

        LCALL WRI

        SETB P3.2        


4.4 Program operation monitoring part

The watchdog circuit mainly requires the MCU P3.6 to output a pulse every once in a while (less than 10 pulse intervals) to reset the counter CD4017, so that the QA terminal of CD4017 cannot become a high level, indicating that the MCU is working normally. The program is as follows:

WATCHDOG:CLR P3.6        ;复位WATCHDOG

       LCALL DELAY10 ;Call delay

       SETB P3.6 ; Allow WATCHDOG to start working

       LCALL DELAY10

       JNB P3.6, WATCHDOG ; Waiting for query

       RIGHT

Chapter 5 Test Methods and Data

5.1 Test instruments

Panasonic FM/AM V-P8177A10 signal generator HP54520A, 500M digital storage oscilloscope DF93094-Y2 digital multimeter, DF1647 signal generator.

5.2 Machine performance test

A Maximum undistorted power test, the test block diagram is shown in the figure. The output carrier frequencies of the FM signal source are 88, 96, 102, and 108MHz respectively, and the modulation frequencies are 100Hz, 1KHz, and 1.5KHz. The input level is 2mV. The FM signal is added to the BPF bandpass filter. The receiver is tuned at 88MHz, 96MHz, 102MHz, and 108MHz respectively. Change the volume potentiometer to minimize the voltage waveform distortion at both ends of the load (8 ohms). Note the voltage U0 at both ends of R2, press P=U2/R, and calculate the maximum undistorted power. The data is shown in the following table


F/MHz


Faudio /Hz

Maximum undistorted output voltage (V)

Maximum undistorted output power (mW)


88MHz

100Hz

1000Hz

1500Hz

0.91

1.12

1.38

     103.5

156.8

238.1


96MHz

100Hz

1000Hz

15000Hz

1.10

1.29

1.42

151.3

208.0

252.1


102MHZ

100Hz

1000Hz

15000Hz

1.18

1.34

1.50

174.1

224.5

281.0


108MHZ

100Hz

1000Hz

15000Hz

1.21

1.37

1.52

183.0

234.6

288.8


B. Sensitivity test: The method is similar to the maximum undistorted power test. Adjust the volume potentiometer to make the receiver output power 100mW, reduce the signal source output amplitude, and make the output waveform just undistorted. At this time, the output voltage of the FM signal source is the sensitivity, and the data is shown in the table below:


Frequency (MHz)

88

96

102

108

Output power (mW)


100


100


100


100

Signal source output voltage (mV)


0.41


0.39


0.36


0.21


C. Image rejection ratio test block diagram is shown as follows:

                                                                     




First measure the signal source output recording sensitivity level, the intermediate frequency output voltage when there is no modulation signal, change the frequency to the mirror frequency corresponding to each frequency point, adjust the output level of the signal generator to increase the intermediate frequency output voltage to the original standard measurement. The ratio of the two FM signal source output voltages before and after is expressed in DB, which is the image suppression ratio.

The data is shown in the following table:

Carrier frequency (MHz)


88


96


102


108

Image rejection ratio DB


35


39


42


43

5.3 Functional Testing

① It can realize full frequency range search and select stored radio stations.

②It can realize the search and selection of stored radio stations in a specific range.

③It is possible to call any stored radio station.

④With carrier display function.

Chapter 6 Circuit Fabrication

This design makes the system on three printed boards: key display board, single chip system board and radio board. Each functional board contains the components of each functional block and the corresponding auxiliary devices. The production requirements and rules are based on the following:


    •   Principles of component layout on printed circuit boards

The quality of the layout of components on the printed circuit board directly affects the performance of the entire machine. The basic principles to consider are:

    • In general, all components should be placed on the side that is basically not welded to facilitate installation, welding, debugging and maintenance.

    • The components on the radio board should be arranged in circuit order as much as possible, and the circuit should be arranged compactly and densely to shorten the leads. This is especially important for high-frequency circuits.

    • When arranging the spacing of components, the potential gradient between them should be considered to prevent arcing and sparking. While ensuring performance, the layout of components should be parallel or vertical to achieve neatness and beauty.

    • A complete circuit should be installed on one circuit board as much as possible. If the circuit is complex or requires shielding, and needs to be divided into several printed circuit boards for installation, each complete circuit with independent functions should be placed on the same board.

    •   Technical requirements for component installation

        The distribution of components on the printed board should be as uniform as possible, with consistent density. Oblique, three-dimensional cross and overlapping arrangements are not allowed. The component housing and leads should ensure a safe gap of about 1mm. There should be a reasonable gap of 0.2~0.4mm between the pin diameter of the component and the solder hole diameter of the printed circuit board, which should not be too large.


    •   Principles of printed circuit board wiring

      • The common ground wire is arranged at the edge of the printed circuit board, and an appropriate distance is left from the ground wire to the edge. Except for one side of the lead wire, the other sides are usually laid with ground wires. The power line and the corresponding filter circuit are arranged close to the ground wire, which can reduce the interference caused by the coupling of the power line and is conducive to grounding. The ground wire of each unit should generally form a loop, but have a common grounding point, so as to avoid inter-level interference caused by ground current. In addition, the ground wire is generally not made into a closed loop, so as not to form a coil that generates electromagnetic interference under the action of the magnetic field.

      • The main circuits are usually arranged on the printed circuit board in units. Each functional part is as independent as possible, the leads are as short and straight as possible, and the input and output leads are separated and as far away as possible. The control lines of the microcontroller are generally arranged in parallel groups, and are as straight, neat and beautiful as possible.

      • In places where frequent testing is required, some separate test points should be set up to facilitate debugging and maintenance.


Chapter VII Test Results Analysis and Improvement Measures

    Due to limited conditions (lack of instruments such as field strength meters), the test method we used is not very perfect, but the test results reflect the function of the FM radio we designed to a certain extent. The sensitivity of each frequency point is different. We analyzed that it may be due to the different sensitivity of the input bandpass filter to the attenuation of signals of different frequencies. The receiver has a high image suppression ratio. We believe that the bandpass filter at the input end of the antenna plays a big role.

Judging from the functions realized by the devices used in this FM radio, there are still areas that can be improved and perfected, such as the use of LCD display to provide Chinese character information, adding time display, and the use of composite keys for function keys to reduce the number of keys. From the perspective of power supply for the entire machine and ease of carrying, the entire machine should use a lower power supply.

In general, the receiving performance of this design has met the requirements, some have far exceeded the requirements of the topic, and the control function is basically complete.

                       Conclusion

Through the graduation project of this subject, I have basically mastered the working principle and application of phase-locked frequency synthesis technology, understood the working principle of radio and the measurement and debugging methods of high-frequency circuits, mastered the simple control of equipment using single-chip microcomputer system, and understood the ideas and methods of programming related single-chip microcomputer programs. Due to the time constraints and insufficient experimental conditions, this design needs to be further improved. Through this graduation project, I feel that I have exercised my abilities, learned knowledge, and benefited a lot.

Here, I would like to express my sincere gratitude to Teacher Li Jie for his careful guidance and thoughtful answers, which enabled me to successfully complete this design.

[1] [2] [3] [4] [5]
Keywords:MCU Reference address:Design of digital FM radio using single chip microcomputer + CXA1019S + phase-locked loop BU2614

Previous article:Design of ultrasonic distance measurement based on 51 single chip microcomputer (with temperature compensation)
Next article:★★51 MCU 8*8 dot matrix airplane shooting snake game★★

Recommended ReadingLatest update time:2024-11-15 19:31

AVR MCU driver NOKIA3310 sample program
#include          #include          #include           void main(void)         {             PORTB&=209;           DDRB|=46; //Set the MCU's 4 LCD pins to output 0            while(1)                 {                    lcd_init(); //LCD initialization                           lcd_cls(); //Clear the screen,
[Microcontroller]
Application Design of Single Chip Microcomputer in Digital Multimeter
1DS1629 structural characteristics and working principle     DS1629 is a chip designed for digital temperature measurement, and also has the function of real-time clock/calendar. The wide power supply range and extremely low power consumption of DS1629 are very suitable for battery-powered applications. Its clo
[Microcontroller]
Application Design of Single Chip Microcomputer in Digital Multimeter
MCU---HLK-W801 drives touch screen
Background I'm learning lvgl recently. This is an open source embedded image display framework that is sufficient to support some resource-poor microcontrollers to display some professional-looking interfaces, such as the following There is also this Isn't it cool? Let's put Lvgl aside for now. Because it is a u
[Microcontroller]
MCU---HLK-W801 drives touch screen
An introduction to the pin functions of the external structure of the microcontroller and an overview of the usage information
1. Teaching purpose: Master the pin functions of microcontroller 2. Teaching focus: The use and differences of the P0, P1, P2, and P3 ports of the microcontroller 3. Teaching steps: (1) Appearance of microcontroller (AT89S51) (2) Pin function diagram of microcontroller (AT89S51) (3) The 51 series microcontrollers
[Microcontroller]
An introduction to the pin functions of the external structure of the microcontroller and an overview of the usage information
51 MCU external interrupt counter C language programming
#include    #define uchar unsigned char #define uint unsigned int unsigned char code tab ={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0xFF,0xBF}; sbit P32=P3^2; sbit P25=P2^5; sbit P26=P2^6; sbit P27=P2^7;    uint cnt; void init(void)      {             EX0=1;      IT0=1;      EA=1; ET0 = 1; //Time
[Microcontroller]
How to implement a bipolar LED driver circuit using 8051 microcontroller?
In this article, we will introduce how to implement a bipolar LED driver circuit using 8051 microcontroller. Bipolar LEDs differ from regular bicolor LEDs in that bipolar LEDs only have two leads, while regular bicolor LEDs have three leads. Bicolor LEDs are a special type of LED that consists of two diodes connecte
[Microcontroller]
How to implement a bipolar LED driver circuit using 8051 microcontroller?
AVR MCU fuse configuration parameters
The following contents are translated from the English manual of mega8 . I hope it will be helpful to you. If you find any errors, please correct them. mega8 fuses: 1: Not programmed (not selected) 0: Programmed (selected) ******************************** Fuse Description Default Setting ******************************
[Microcontroller]
What are the characteristics of the microcontroller and single-board computer in terms of composition?
What are the characteristics of single-chip microcomputer and single-board computer in terms of composition? Answer: The biggest difference between a microcontroller and a single-board computer lies in the system composition. A single-chip microcomputer integrates a CPU, program memory, data memory, input/output i
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号