【E59】使用STC单片机自制波形发生器

2021-08-13 19:33:16      索炜达电子      502     

项目编号:E59

文件大小:1.55M

源码说明:带中文注释

开发环境:C编译器

简要概述:

使用STC单片机自制波形发生器

【E59】使用STC单片机自制波形发生器

Specification

  • Output: Single Channel

  • Square Waveform Frequency: 1Hz~2MHz

  • Sine Waveform Frequency: 1Hz~10kHz

  • Amplitude: VCC, about 5V

  • Load ability: Not available

  • MCU: STC15W4K32S4 @24MHz

  • Display: LCD1602

  • Controller: EC11 Encoder

Parts List

【E59】使用STC单片机自制波形发生器

  • MCU: STC15W4K32S4 x 1

  • Display: LCD1602 x 1

  • Row Pin Female:

    • 16-Pin x 1

    • 2-Pin x 1

  • Potentiometer:

    • 10kΩ x 1

    • 200kΩ x 1

    • 500Ω x 1

  • IC Socket 40-Pin x 1

  • Inductor 1mH x 1

  • Capacitor:

    • 220nF x 1

    • 10nF x 1

    • 47uF x 1

  • EC11 Encoder x 1

  • Lithium Polymer Battery x 1

  • 5V booster x 1

  • Terminal 2-Pin x 2

  • Push Switch x 1

  • Capacitor 1uF(optional) x 1

Circuit

【E59】使用STC单片机自制波形发生器

Interface:

Bottom left shows the type of waveform(Square/Sine) and output status(ON/OFF)

  • F: Frequency

  • D: Duty of Square Waveform

  • CD: Clock Division Coefficient (For information only)

  • P: PWM frequency for generating Sine Waveform (For information only)

  • Pt: Number of points for generating Sine Waveform (For information only)

Operations:

  • Single Click Encoder: Switch Frequency and Duty in Square Waveform Interface

  • Double Click Encoder: Start/Stop Signal Output

  • Long Press Encoder: Switch between Square Waveform/Sine Waveform/Voltage Information

  • Rotate Encoder: Adjust Parameters

文件列表:

目录│文件列表:

 └ Function_Generator_STC

    ├ img

    │  │ circuit_V0.3.jpg

    │  │ IMG_6187.JPG

    │  └ IMG_6223.JPG

    └ V0.3

       │ circuit_V0.3.LM4

       │ circuit_V0.3.pdf

       │ Scheme_V0.3.pdf

       │ Scheme_V0.3.pdsprj

       ├ Code V0.3

       │  │ adc_stc15.c

       │  │ adc_stc15.h

       │  │ config_stc.h

       │  │ delay.c

       │  │ delay.h

       │  │ Function_Generator.hex

       │  │ Function_Generator.uvproj

       │  │ global.h

       │  │ lcd1602.c

       │  │ lcd1602.h

       │  │ main.c

       │  │ main.c.bak

       │  │ settings.c

       │  │ settings.h

       │  │ STARTUP.A51

       │  │ T_SineTable.h

       │  │ wave.c

       │  └ wave.h

       ├ Code_V0.3.1

       │  │ adc_stc15.c

       │  │ adc_stc15.h

       │  │ config_stc.h

       │  │ delay.c

       │  │ delay.h

       │  │ Function_Generator.hex

       │  │ Function_Generator.uvproj

       │  │ global.h

       │  │ lcd1602.c

       │  │ lcd1602.h

       │  │ main.c

       │  │ settings.c

       │  │ settings.h

       │  │ STARTUP.A51

       │  │ T_SineTable.h

       │  │ wave.c

       │  └ wave.h

       └ Code_V0.3.2

          │ adc_stc15.c

          │ adc_stc15.h

          │ config_stc.h

          │ delay.c

          │ delay.h

          │ Function_Generator.hex

          │ Function_Generator.uvproj

          │ global.h

          │ lcd1602.c

          │ lcd1602.h

          │ main.c

          │ settings.c

          │ settings.h

          │ STARTUP.A51

          │ T_SineTable.h

          │ wave.c

          └ wave.h

TAG波形发生器
  • 13 次
  • 1 分