STM8S clock setting

Publisher:DelightfulSmileLatest update time:2017-09-19 Source: eefocusKeywords:STM8S Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In measuring some CATV system indicators, spectrum analyzers are often used. In order to make the measurement results accurate, the use of spectrum analyzers often involves the problem of setting the resolution bandwidth. To understand this problem, you need to know some basic principles of spectrum analyzers. Figure 1 is a basic principle block diagram of a spectrum analyzer. The intermediate frequency in the figure (the input signal is generated by the sum frequency or difference frequency with the local oscillator signal) and the local oscillator are controlled by the ramp generator. Under the control of the ramp generator, the local oscillator frequency will change linearly from low to high. In this way, when displaying, the ramp voltage generated by the ramp generator is added to the X-axis of the display, and the detector output is connected to the Y-axis after passing through a low-pass filter. When the ramp generator scans the local oscillator frequency, the spectrum of the input signal will be automatically drawn on the display. The low-pass filter at the output of the detector is called a video filter, which is used to smooth the response during analysis scanning.

1. Resolution bandwidth

In spectrum analyzers, frequency resolution is a very important concept. It is determined by the bandwidth of the intermediate frequency filter, which determines the resolution bandwidth of the instrument. For example, the bandwidth of the filter is 100KHZ. Then the frequency of the spectrum line has an uncertainty of 100KHZ, that is, if two spectrum lines appear within the bandwidth frequency range of a filter, the instrument cannot detect these two spectrum lines, but only displays one spectrum line. At this time, the spectrum line level (power) reflected by the instrument is the superposition of the level power of these two spectrum lines. Therefore, measurement errors will occur. Therefore, for two closely related spectrum lines, their resolution depends on the bandwidth of the filter.

We take the measurement of carrier level as an example to compare the resolution bandwidth settings of the instrument. Figure 2 shows the spectrum curves of resolution bandwidths of 30KHZ, 300KHZ, and 3MHZ (from bottom to top) (the input is a single carrier signal). When setting the resolution bandwidth, we consider whether the instrument has enough bandwidth to fully respond to the input signal. The correct method is to widen the bandwidth of the filter. When the signal carrier amplitude is no longer increased on the screen, it means that the intermediate frequency filter has enough bandwidth to respond to the input signal. In the figure, we can see that when the resolution bandwidth changes from 300KHZ to 3MHZ, the displayed signal amplitude does not change, which means that the 300KHZ bandwidth is sufficient. In addition, when the resolution bandwidth is set between 300KHZ and 3MHZ, the signal amplitude does not change for a single carrier. However, when actually measuring the image carrier level of the CATV system, the resolution bandwidth cannot be set to 3MHZ. This is because in reality there are sound carriers of adjacent channels near the image carrier (1.5MHZ apart), and the 3MHZ bandwidth cannot filter out the energy of the adjacent sound carrier. In this way, the energy of the adjacent sound carrier will be added to the image carrier being measured, making the measured level higher than the actual value.

2. Video Filters

The filter after the detector in Figure 1 is called a detector filter or video filter. It is a low-pass filter that reduces noise variations in the detector output, reveals some signals that have been masked and are close to the background noise, and helps stabilize the measurement if the noise power is being measured.

There are often DC and AC components at the output of the detector. The DC component represents the energy within the intermediate frequency bandwidth, so the DC component can be extracted through the video filter to remove some AC components, which can provide a more stable noise-free output. Figure 3 is a signal diagram of the detector output under different video bandwidths. Figure 3a uses a broadband video filter, and Figure 3b uses a narrowband video filter. It can be seen from the figure that the noise fluctuation is large when the broadband filter is used, and the fluctuation is significantly reduced when the narrowband filter is used. The average noise value of the two is the same, that is, the filter will not reduce the average noise level, but can reduce the peak level of the noise. Therefore, it can expose low-level signals that cannot be seen with a wider video filter. However, in some cases, such as analyzing some special noise signals, we need a wider video filter bandwidth for observation and analysis, so we can set the bandwidth of the video filter according to different situations.

The relationship between the bandwidth of the video filter and the resolution bandwidth is: the noise before detection can be reduced by a narrower resolution bandwidth, thereby reducing the noise output level of the detector; the noise after detection is smoothed and reduced by a narrowband video filter to reduce noise fluctuations, but the average power level of the noise cannot be reduced.


Keywords:STM8S Reference address:STM8S clock setting

Previous article:STM8S learning GPIO operation
Next article:Basic ideas and writing methods of single chip microcomputer programs

Recommended ReadingLatest update time:2024-11-16 21:47

STM8S library GPIO_ReadInputPin function problem
The ST official website has launched library function operations, which greatly facilitates users, but the library functions have some problems, such as   1. Library function GPIO_ReadInputPin problem   The following is the prototype of the ST file to read the specified IO port level BitStatus GPIO_ReadInputPin(GPIO_T
[Microcontroller]
STM8S Learning 05——EEPROM read and write operation C language program
/* During the project development in the past two days, the EEPROM function of STM8 was used. Several data needed to be saved after power failure. I also checked the EEPROM operation on the Internet and found that there were two main problems on the Internet: 1. EEPROM reading and writing were unsuccessful; 2. The EEP
[Microcontroller]
STM8S timer 1 accurate delay
1. Introduction This article describes how to use Timer 1 in the STM8S series to perform precise timing of 1S. 2. Experimental Platform Compiler software: IAR for STM8 1.42.2 Hardware platform: stm8s003f3p6 development board Emulator: ST-LINK Library version: STM8Sx_AN3298_FW_V4.0.0 3. Copyright St
[Microcontroller]
STM8S interrupt wake-up, timer wake-up, window watchdog
1. STM8S external interrupt wake-up First understand the interrupt resources of STM8S Let's look at the interrupt management of STM8S. STM8S uses software priority and hardware priority to control the response of an interrupt. The software priority is compared first, and the hardware priority is compared only when
[Microcontroller]
STM8S interrupt wake-up, timer wake-up, window watchdog
stm8s clock source switching
The STM8 microcontroller has a rich clock source. The chip has both a 16MHZ high-speed RC oscillator and a 128KHZ low-speed RC oscillator. It can also connect a high-speed crystal oscillator externally. During system operation, it can be switched freely as needed. After the microcontroller is reset, the internal high-s
[Microcontroller]
stm8s timer output compare mode
The output comparison of stm8s timer is generally used for pwm output. Therefore, the output comparison is explained through pwm output. The manual says that "the pulse width modulation (PWM) mode can generate a signal with a frequency determined by the TIMx_ARR register and a duty cycle determined by the TIMx_CCRi re
[Microcontroller]
Use STM8S microcontroller to drive CT1642
/*Define the number of bits of the LED digital tube. This driver only implements 3-bit and 4-bit operations, so the value of LED_BIT_COUNT can only be 3 or 4*/ #define LED_BIT_COUNT 4    /************************************************************************************************************** *****************
[Microcontroller]
STM8S heap and stack description
The STM8 data sheet gives the location and size of the stack. The stack is allocated from high to low, and the heap is allocated from low to high. The stack is a continuous storage area in the memory, which is used to store some temporary data. The stack is divided into the stack area (stack) and the heap area (Heap
[Microcontroller]
STM8S heap and stack description
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号