- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Attached is the code which demonstrate how to measure average voltage of an AC signal using PSoC1. Following is the code flow:
Analog to Digital Conversion->Rectify and accumulate the samples->check if integral number of full cycle sample is acquired->divide the sum with the total number of sample->Print the average on the LCD.
Some samples may be missed due to processing delay . In order to avoid that ADC output is collected inside the interrupt and filled into a buffer.Hope this will help.
Thanks and Regards,
Keerthy
Solved! Go to Solution.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No attachment present, use IE or Firefox.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Keerthy, a couple of observations -
1) I had to update project, translate you should be using latest version of
Designer when you post projects.
2) Looking at main.c I see a sparsity of comments relating to goal and reason of
project, methods, and code comments. Forum is a diverse group of skill sets,
generally you should target the beginners when you post a "how to" project.
3) The part you choose is not ( I am going out on a limb here) mainstream part
like the 29466 (PSOCEval1 kit or -001 kit), or 24xxx, 27xxx series. Just a thought.
Regards, Dana.