Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > creating own Filter component - implement with software APIs

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



creating own Filter component - implement with software APIs
Moderator:
RKRM

Post Reply
Follow this topic



creating own Filter component - implement with software APIs

sandeep katti posted on 11 Feb 2013 7:38 AM PST
Member
3 Forum Posts

 Hi,

I am having cy8ckit-001 board with PSoC3. I am trying to create my own Filter component using APIs (API implementation). The flow is like:

8bit digital data from ADC --> DMA1 --> myOwnFilter --> ISR --> write Filter data to VDAC on interrupt triggering.

To create myOwnFilter:

* selected "add component" in components tab of creator s/w and selected "Empty symbol"

* in .cysym, drew a rectangle and attached a digital output pin for connecting to ISR. Here I want to make sure that after input gets processed from filter, interrupt should get raised from myFilter. 

how to put/create Data enable signal.. (dma request/ Interrupt request/ Polled).

* created myFilter.h and myFilter.c under myFilter component .

 

, I am trying with an digital output pin to trigger interrupt, but during build/compilation I am getting error. For 8-bit input, I am not sure what to use.

Moreover, myOwnFilter should get listed during DMA configuration (Tools->DMA wizard) in both source end and destination end. but its not appearing.

standard Filter component has "Enable channel" option. Upon enabling it, Filter appears in Dma config wizard.

also, 

Please help me out.




Re: creating own Filter component - implement with software APIs

PSoC Rocks posted on 11 Feb 2013 09:43 AM PST
Top Contributor
128 Forum Posts

 For adding DMA capability to a component, import the Filter component and open the .cydmacap file. It is a XML file. You can find the explanation for the parameters used in that XML file in it.

 

For solving the pin trigger issue, can you attach your bundle?



Re: creating own Filter component - implement with software APIs

sandeep katti posted on 13 Feb 2013 10:38 AM PST
Member
3 Forum Posts

 Hi PsoC rocks,

I didn't get the way how to do this??

For adding DMA capability to a component, import the Filter component and open the .cydmacap file. It is a XML file. You can find the explanation for the parameters used in that XML file in it.

 

Regarding pin bundle issue, I am attaching my code.

* I have not created even blank schematic so that we can right click on .cysch and give "generate symbol" . 

* I have simply created "empty symbol" , then drew a shape for which I have connected a digital pin for ISR.

* In my firmware, myFilter.c, I am passing ADC_Result as input and trying to return back to main function, after which ISR is raised and data is passed to VDAC ISR.

 



Re: creating own Filter component - implement with software APIs

sandeep katti posted on 15 Feb 2013 04:19 AM PST
Member
3 Forum Posts

 Hi PSoCRocks

 

I understand that the cydmacap file will be located in the path :

C:\Program Files\Cypress\PSoC Creator\2.1\PSoC Creator\psoc\content\CyComponentLibrary\CyComponentLibrary.cylib\.(Should include my component)

Can I include my component in the *.cylib

If so, kindly let me know how it can be acheived.

Thanks and Regards,

Sandeep

 

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20