MICROCHIP AN616 handbook

This document describes the basic issues that need to be addressed in order to implement digital signal processing systems using the PIC16C74 and provides application code modules and examples for DTMF tone generation, a 60 Hz notch filter, and a simple PID compensator for control systems. These routines can also be used with other PIC16C6X and PIC16C7XXX processors with minor modifications and the addition of external analog I/O devices.


MICROCHIP AN616 handbook - cover page
Brand
MICROCHIP
Category
Other Electronics
Document type
Application Note
Language
English
Pages
34
File format
PDF
File size
354 KB
Published
10 April, 2012
Updated
29 September, 2023
MD5 checksum
8278B283D7AD58DBAD2FBD7EF0FC5A09

About this manual

The note introduces the use of the PIC16C74 microcontroller for low‑end digital signal processing, describing its on‑chip A/D converter, PWM module, and fast instruction speed. It outlines a typical DSP system architecture, including A/D conversion, processing, and D/A reconstruction.

Detailed sections cover development tools, number representation, A/D/D/A interfacing, tone generation, digital filter implementation, and PID control. Example programs demonstrate DTMF tone generation, a 60 Hz notch filter, and a PID compensator, with performance results and implementation notes.

What's inside

  • INTRODUCTION
  • CODE DEVELOPMENT TOOLS
  • Number Representation and Math Routines
  • A/D and D/A Conversion
  • Tone Generation
  • Digital Filters
  • Digital Control
  • RESULTS AND CONCLUSION

Specifications

A/D converter resolution8‑bit
PWM resolution8‑bit
Instruction execution speedas fast as 200 ns per instruction
Single‑tone generation cycles~125 instruction cycles per output sample
Sample rate used in DTMF example6.5 kHz

Frequently asked questions

Which microcontroller is the focus of this application note?

The document focuses on the PIC16C74 microcontroller.

How many instruction cycles does the tone generation routine need for a single tone?

It needs approximately 125 instruction cycles per output sample for a single tone.

What is the resolution of the PIC16C74's PWM module?

The PWM module has an 8‑bit resolution.

Download PDF (354 KB)

More MICROCHIP Manuals


View all MICROCHIP manuals →