Function Generator using PIC16F870 microcontroller
Sine Triangle Square Saw Burst Sweep Noise – runs on a PIC16F870
After the recent demise of our multifunction signal generator, we decided to make one of our own. The circuit uses a PIC16F870 (about $3), an R/2R resistor ladder network (for a real fast and cheap D/A), and a few other parts.
You can check out the schematic and the current source file. Also the object (hex) file. All of the sine wave functions utilize a full 256 byte by 8 bit lookup table. Contrary to what you may have heard elsewhere, it is possible to use a full memory page in the PIC for a lookup table – check it out.
The only real elaboration was the design of the low-pass filter. With the present design running on a 20 mhz clock, you can get over 60 khz of very clean sine waves. The frequency is adjustable in 1, 25, and 500 hz steps. The unit produces accurate frequencies down to 1 hz.
For more detail: Function Generator using PIC16F870 microcontroller
For All Your PCB Need, One-stop PCB Solution Services Appear:
EasyEDA: free PCB design tool, 200,000+ engineers are using
PCBs: 10pcs 2-layer 10x10cm only $8.21, on-time global shipping
Components: save 50% on cost, save on freight if shipped with ordered PCBs
Current Project / Post can also be found using:
- function generator with pic
- pic function generator
- function generator using pic16f877a
- pic frequency generator