problem with adc-filter-dac

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        Hello, First, I am not so good at English I'm a beginner on PSOC, and i'm trying to make adc-filter-dac using CY8CKIT-030. Input signal is sin signal(1.5Vp-p,offset 1V,1kHz~20kHz). But there is no output signal. Please tell me what is mistake.   
0 Likes
18 Replies
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

First of all, welcome to join the world of PSoC.

   

I guess what you want is to sample a external signal with PSoC, and filter it inside PSoC, and then output it throug a DAC. If I am right, then it is easy to implement this design.

   

1. Drag a analog pin and connect it to the ADC, and configure the ADC in the way you want.

   

2. Drag another pin and connect it to a DAC.

   

3. Write some simple code to operate the ADC to get samples, and do digital filter in any way you want, and then drive the DAC with the filtered result.

0 Likes
Anonymous
Not applicable
        I can't upload zip file. Plese download from google drive. https://drive.google.com/file/d/0B85X5D2TyfIJOWdEX3lDOE1MUzQ/edit?usp=sharing   
0 Likes
Anonymous
Not applicable
        Hello,Leo_W. Yes,that's right. Is anything mistake in my program? It doesn't work.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

To upload a complete project, use Creator 3.0 -> File -Y Create Workspace Bundle(minimal) and then upload the resulting archive here, but DO NOT use google chrome, that will not work. Use ie or firefox instead.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable
        Thanks,Bob Marlowe. I can upload zip file.   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

On the opening page of Creator there are two example projects you can start with,

   

clcik "Example Projects" link and scroll down to -

   

 

   

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Attached

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

There is an example project doing just that: CE58352. I could not find the code for that at the Cypress website, but only at Element14. Note that the project is for the -001 kit, so it might need some adjustments for the -030 kit (e.g. ports). Also, since its quite old (for Creator Beta5, from 2011), some components might have been changed inbetween).

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Hello,danaaknight . I am already cheked the example file. But it dosen't work. I can build ,but there's some error? Plese look at attach file.   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I built the project under Creator 3.0 and it did so w/o error or any warnings.

   

 

   

The only outcome I had were some note reminders from build.

   

 

   

Regards, Dana.

   

 

   

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Actually I just gott same error indication shown on line 40, but build reports

   

as succeeding. Looks like a bug. Try and run example. I am at a remote site,

   

so have no board/scope to verify.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Thanks,hli. I'll try it. Thanks,danaaknight. The example file is worked. But I have another problem. I want to make bandpass filter(center 40kHz,Bandwidth 1khz),but I change input sin signal 4kHz~40kHz output from vdac is not sin signal(too noisy). 1kHz~3kHz are sin signal. Is it impossible to make bandpass filter?   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Post a project archive and forum can take a look at it.

   

 

   

"File"

   

"Create Workspace Bundle"

   

 

   

Use IE or Firefox to post.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        This is the file.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The indicated error is a (already known) bug within a software part new to Creator 3. Code completion and other facilities are using an online code analyzer named CLANG which seems to be interfaced by Creator not quite correctly.

   

Build the project and check the results for outstanding warnings or errors.

   

 

   

Bob

0 Likes