Comparing Sine Waves with PIC Microcontrollers

In summary, the person is asking if they can compare between two sine waves using PIC 16f877A or PIC 16f628A. They want to know if the PIC can read or generate the sine wave and are asking for ideas on how to do this. It is possible to use the PIC 16f877A to capture a signal of suitable frequency, but the limited RAM may require the signal comparison to be close to instantaneous. The success of this will depend on the requirements of the application.
  • #1
m.omara
1
0
hello

i need to now if i can compare between two sine wave by pic 16f877A or pic 16f628A?

that the input of pic become sine wave , can the pic read that wave or can generate it?

how i can do this ?

Any ideas?
 
Engineering news on Phys.org
  • #2
A spot check of the '877 datasheet shows that it has a 10 bit Analog->Digital converter, so yes you could use it to capture a signal of suitable frequency...probably around the audio range would work fine.

There's not much RAM on PICs -- 386 bytes on the '877 -- so your signal comparison might have to be close to instantaneous. It'll all depend on the requirements for your application.
 

Related to Comparing Sine Waves with PIC Microcontrollers

1. What is a sine wave and how is it used in PIC microcontrollers?

A sine wave is a type of waveform that represents a smooth, repetitive oscillation. In PIC microcontrollers, sine waves are often used to generate analog signals for various applications such as motor control, audio output, and power conversion.

2. How do you compare sine waves using PIC microcontrollers?

To compare sine waves using PIC microcontrollers, you can use the built-in analog-to-digital converter (ADC) to sample the input sine wave and then compare it to a reference sine wave using the microcontroller's digital-to-analog converter (DAC).

3. Can PIC microcontrollers accurately generate and manipulate sine waves?

Yes, PIC microcontrollers have the capability to accurately generate and manipulate sine waves. With the use of internal timers and specialized libraries, sine waves can be generated with high precision and manipulated for various applications.

4. Is it possible to control the frequency and amplitude of a sine wave with a PIC microcontroller?

Yes, it is possible to control the frequency and amplitude of a sine wave using a PIC microcontroller. This can be achieved by adjusting the values in the code that generate the sine wave or by using external components such as resistors and capacitors.

5. Are there any limitations to using PIC microcontrollers for comparing sine waves?

Like any technology, there are limitations to using PIC microcontrollers for comparing sine waves. These may include limited processing power or memory, which may affect the accuracy of the comparison. It is important to carefully consider the microcontroller's specifications and capabilities before using it for this purpose.

Similar threads

Replies
16
Views
2K
Replies
38
Views
3K
  • Electrical Engineering
Replies
15
Views
5K
Replies
15
Views
2K
Replies
18
Views
2K
  • Electrical Engineering
Replies
26
Views
2K
  • Electrical Engineering
Replies
8
Views
4K
Replies
47
Views
3K
  • Electrical Engineering
Replies
1
Views
1K
Replies
34
Views
1K
Back
Top