Need Example Code for Simultanously 2 filter output with one output filter changable to LPF/BPF/HPF

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

cross mob
seku_495601
Level 2
Level 2
5 replies posted 5 sign-ins First solution authored

Need Example Code for Simultanously 2 filter output with one output filter changable to LPF/BPF/HPF  in PSOC 5LP

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Please find one example attached where filter cut-off is changed dynamically. By default, Filter is configured to LPF, 50KHz cut-off. If you press the switch , the filter will change to LPF, 10KHz cut-off. If you press the switch again, it will toggle the Filter back to LPF, 50KHz cut-off.

Best Regards,
Vasanth

View solution in original post

4 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Please find one example attached where filter cut-off is changed dynamically. By default, Filter is configured to LPF, 50KHz cut-off. If you press the switch , the filter will change to LPF, 10KHz cut-off. If you press the switch again, it will toggle the Filter back to LPF, 50KHz cut-off.

Best Regards,
Vasanth

Can not find V1.71 components  cy_isr

 

How can get that one one ?

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Could you please right click on the project and select update component option?

Best Regards,
Vasanth

0 Likes

Hi,

      Thanks For Reply Now Components Updates Ok   Our Filter Coeff as Follows

Final coefficients for Biquad filter :
Coefficients are in the order A0, A1, A2, B1 and B2

1
-2
1
-1.9898898601532
0.989932298660278

1
-2
1
-1.98847961425781
0.988522052764893

1
-2
1
-1.98750925064087
0.987551689147949

1
-2
1
-1.98701500892639
0.987057447433472

1
-2
1
-1.9916877746582
0.991730213165283

1
-2
1
-1.99380564689636
0.993848562240601

1
-2
1
-1.99616479873657
0.996207475662231

1
-2
1
-1.99867510795593
0.998717784881592

0.000113010406494141
0.000226020812988281
0.000113010406494141
-1.97501468658447
0.975395441055298

8.24928283691406E-05
0.000164985656738281
8.24928283691406E-05
-1.98127722740173
0.981659173965454

0.000104904174804688
0.000209808349609375
0.000104904174804688
-1.96971988677979
0.970099687576294

0.000108480453491211
0.00021672248840332
0.000108480453491211
-1.96557974815369
0.965958833694458

7.77244567871094E-05
0.000155210494995117
7.77244567871094E-05
-1.9882824420929
0.988665819168091

0.000114679336547852
0.000229120254516602
0.000114679336547852
-1.96273803710938
0.963116407394409

0.000115871429443359
0.00023198127746582
0.000115871429443359
-1.96129250526428
0.961670637130737

0.000298500061035156
0.000597000122070313
0.000298500061035156
-1.99577355384827
0.996158599853516

ie   Stage1 and Stage2  Biquad  BPF Butterworth filter

 

How can i load this type of Co-eff on the Pgm ?

0 Likes