cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

Anonymous
Not applicable

 This is the way primitive components should be made.  This documents and distributes the SC/CT block super primitive.  This component is designed to be imported into your workspace and provide you with a template component that you can start to use and modify immediately.  The component brings out all connections for the hardware and makes them available for connections on the top level schematic.  The component includes pre-made header and C files that include all definitions for all registers needed to configure the SC/CT block in any way possible.  The header file also includes bit masks, modes, and shifts for all associated registers, making writing code for the super primitive incredibly easy.  The C file comes with pre made stub init, enable and start APIs with critical clock and pump configuration already taken care of.  The C file also includes a commented out example init function for enabling the DeltaSigma modulator mode of the SC/CT block as reference for creating your own init function. 

   

    

          

   

Sounds good you say?  I’m not done!  The component also comes packaged with a complete component debug file, allowing you to see, and reconfigure your super primitive component in the debugger with insane ease.  This is by far one of the most useful features of the super primitive.

   

    

          

   

But wait!  There’s more!  The super primitive also comes pre-packed with a DMA capability file, giving you easy access to all registers associated with the SC/CT block in the DMA wizard tool.  Why would you want that? I DON’T KNOW, BUT I GAVE IT TO YOU ANYWAY!

   

    

          

   

The super primitive eliminates 99% of the mundane work when creating a component, leaving you to design, create, and explore the limitless capabilities of PSoC.  Feel free to use the super primitive as the base for any new component you wish to build on the SC/CT blocks.  If you find any mistakes, please let me know so I can update the super primitive.

0 Likes
5 Replies
Anonymous
Not applicable

 attempt # 2 at attaching the file

0 Likes
Anonymous
Not applicable

Very usefull component - thanks 

   

 

   

Is possible make example this component configure like Opamp ?

   

 

   

Many thanks

   

 

   

Kamil

0 Likes
Anonymous
Not applicable

 Yup!  thats exactly what this component is for (to expose the other nify feautres of the SC/CT block)

   

 

   

the naked opamp is mode '000' in the SCx_CR0 register.  check out the TRM for the other config options you need to set for using that mode.

0 Likes
Anonymous
Not applicable

 Hi Kees

   

 

   

Is possible help me with this ? Im begginer and not understand how to make opamp from your componets.

   

 

   

Many thanks help

   

 

   

Kamil

0 Likes
Anonymous
Not applicable

 Hey Kamil,

   

 

   

I will help you under one condition.  Do you know and understand the limitations of using an SC/CT block opamp?

0 Likes