💯
University Notes
  • Introduction
  • High Level Math
    • Function, limitation, and continuity
      • What is function?
      • Two kinds of infinity
      • The limitation of a function
      • A model for getting limitation
    • Derivative and differential
      • Formulas of derivative
      • Use derivative formula
      • Goes deeper
      • Use derivative
        • Function analyzing in theory
          • First derivative
          • Second derivative
          • Domain and Extreme Value
          • Overall change
        • Derivative use in reality
    • Integration
      • Indefinite integral
        • Basic formulas
        • Use formula
        • Goes deeper
        • Integration by parts
      • Definite integral
        • Properties of definite integral
        • Second fundamental theorem of calculus
        • Multi-method for solving definite integral
    • Multivariable calculus
      • Limitation
      • Partial derivatives
      • Differential
      • Multiple integral
    • Series
    • Linear algebra
    • GaoKao
      • 1
      • The road for starting
      • Polar Coordinates
      • Tangent Line
  • Electrical Engineering
    • The Terminologys
    • DC
      • The circuit rule
      • KCL and KVL
      • Superposition
    • AC
      • Intuition
      • Resistor
      • Inductor
      • Capacitor
      • AC circuit
      • 三相电
        • 星形联结
        • 三角形联结
        • 实际电路
    • Voltage and Current Rule in Circuit
    • Response
      • Foundations
      • 零输入响应
      • 零状态响应
      • 一阶电路的全响应
  • Analog Electronics
    • Technical terms 1
    • DC stable source circuit 的分析与应用
      • 二极管的特性与应用
        • 半导体
        • PN junction
        • Diode
        • 测试二极管
      • 整流滤波电路的分析与应用
        • Rectifier circuit
      • 直流稳压电路的分析
        • Zener diode
        • Shunt voltage regulators
    • Thyristor
    • Technical terms 2
    • Amplifying circuit
      • Bipolar Junction Transistor
      • Common Emitter Configuration
      • Biasing
      • Analysis
      • Mess
      • Negative-feedback amplifier
      • Integrated Operational Amplifier
    • Algorithms
      • What's the ouput of a voltage rectifier circuit
      • PNP or NPN
      • Judging the state of a BJT
      • What's common in BJT
      • Does a amplifying circuit normal
      • What's the feedback type
      • What kind of distortion you are encounter
  • Digital Electronic Technology
    • Logic Gate
    • Logic expressions
    • Karnaugh map
    • Number system
    • Multiplexer
    • Flip-flop
  • Principles of Communications
    • Overviews
    • PCM
    • HDB3
    • Modulations
    • Cyclic code
  • Data Communications and Networking
    • Something about IPv4
  • Micro Control System 51 Series
    • The Delay function
    • The Interrupt function
  • Maintenance of Railway Optical Cable Lines
    • Questions
    • Pictures
  • Mobile Communications
    • Concepts
    • Coding and Modulation
    • Key Technologies
    • Mobile communication network structure
    • Radio wave Propagation and Interference
    • GSM
    • CDMA
    • GPRS
    • 3G
    • 4G
    • Base Station Maintenance
  • Multimedia Communication
    • Concept of Multimedia
    • Compression
    • Lossless Compression
    • Audio
    • Lossy Audio Coding
    • Graph Compression
    • All for the exam
  • Power system for Communication Devices
    • Overview
    • AC power Distribution Panel
    • UPS
    • HF Switched-mode Power Supply
    • Battery
    • Earthing or Use Lightning Arrester
    • Power Supply Monitoring System
    • All for the exam
  • Optical fiber Communication system
    • What is Optical fiber Communication system
      • Prepare
      • Something About Optical fiber
      • Passive Optical Devices
      • Active Optical Devices
      • Optical transmitter Test
      • Optical receiver Test
      • Compose an Optical Communication System
    • SDH (Synchronous Digital Hierarchy)
      • Frame Structure of SDH
      • SDH Equipments
      • Clock System
      • ZXONM E300 Practice
      • SDH protection
    • WDM (Wavelength-Division Multiplexing)
    • OTN (Optical Transport Network)
      • OverHead of OTN
      • OTN Alarms & Errors
      • Do it again, what's happened?
  • Communication Tech English
    • Fundamentals of Electricity
    • Digital Communications
    • Optical Communications
  • High-speed railway Communication Technology
    • Overview
    • Base Knowledge
    • FH98
    • MDS3400
    • Everything is for the exam
  • GSM for Railway
    • Overview
    • Wired Parts
    • Digital dispatch Communication System
    • Basic Knowledge of GSM-R
    • Key technologies for GSM-R
    • Structure of GSM-R
    • GSM-R Network Mode
    • Wireless Channels for GSM-R
    • Mobility Management
    • Connection Management
    • Security Management
    • GPRS
    • GSM-R/GPRS Wireless Access Platform
    • GSM-R Features
    • GSM-R Numbering Plan
    • ASCI
  • Network Configuration Training
    • Words I have learned
  • Broadband Access Technology
    • Using Copper Line
    • Using Optical Fiber
    • Wireless
    • All for the test
  • CIR
    • Basci Knowledge
    • Testing Equipment
    • The Structure of CIR
    • All for the exam
  • LTE
  • Script for ChaoXing
  • Transmission and access network
Powered by GitBook
On this page
  • 1. Sampling: get pots in every certain time (infinite to limited)
  • 2. Quantizing: put every uncertain value into certain value (standardization)
  • 3. Encoding: convert that value to binary value
  • 带通频率选取
  • 13折线法压缩编码

Was this helpful?

  1. Principles of Communications

PCM

PreviousOverviewsNextHDB3

Last updated 5 years ago

Was this helpful?

Pulse Code Modulation (PCM)

a pulse modulation technique in which the amplitude of an analog signal is converted to a binary value represented as a series of pulses.

1. Sampling: get pots in every certain time (infinite to limited)

2. Quantizing: put every uncertain value into certain value (standardization)

3. Encoding: convert that value to binary value

带通频率选取

def bandpass_sampling(f_low, f_high):
    bandwidth = f_high - f_low
    if bandwidth <= f_low:
        n = int(f_low / bandwidth)
        f_s_min = (2 * f_high) / (n + 1)
        f_s_max = (2 * f_low) / n

        result = 2 * (f_low + f_high) / (2 * n + 1)
        return f_s_min, f_s_max, result
    else:
        print("You should use lowpass-sampling")
        return None

# min, max, result = bandpass_sampling(312, 552)
# print(min, '<=', result, '<=', max)

13折线法压缩编码

def polyline_compress(max_voltage, target_voltage):
    def to_binary(num, how_many=4):
        r = bin(num)[2:]
        return r + '0' * (how_many - len(r))

    result = ''

    if target_voltage > 0:
        result = '1'
    else:
        result = '0'
    target_voltage = abs(target_voltage)

    parts = list(reversed(list(range(0, 8))))
    after = before = max_voltage
    for part in parts:
        after = after / 2
        if (after < target_voltage < before):
            print(part, ": ", before, '-', after)
            binary_part = to_binary(part, 3)
            delta = (before - after) / 16
            print(delta)
            binary_inner_part = to_binary(int((target_voltage - after) / delta), 4)
            print(int((target_voltage - after) / delta))
            result += binary_part
            result += binary_inner_part
            print(binary_part, binary_inner_part)
            return result
        before = after

# r = polyline_compress(2048, 260)
# print(r)

编码时 3位 减一,4位 不变

解码时 3位 加一,4位 不变