cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor

We are designing a custom PCB that can accommodate different analog sensors.  The different sensors require different amplifier designs on the front end before the ADC.  We would like to have just one version of the code that can load a different schematic based on how the board is stuffed.  Is it possible to program the PSOC to have multiple schematic options and select the one to execute at runtime?

0 Likes
Reply
1 Solution
Moderator
Moderator

Hello Julie,

The schematics you are creating on creator will be converted to register writes of the related component register in code. So if you want to switch between different modes, you have to actually charnge the between these register writes in different modes. These register writes take care of the mode at which component works, the routing, and pin connections depending on the component. So if you want to dynamically change the configuration, you just have to remove the previous register configurations and write a new one. Register TRM of the document shows different register and what they stand for for each component. Now you can check the Cyfitter_cfg.c in generated source and understand how each component is configured.

Best Regards,
VRS

View solution in original post

0 Likes
Reply
2 Replies
Moderator
Moderator

Hello Julie,

The schematics you are creating on creator will be converted to register writes of the related component register in code. So if you want to switch between different modes, you have to actually charnge the between these register writes in different modes. These register writes take care of the mode at which component works, the routing, and pin connections depending on the component. So if you want to dynamically change the configuration, you just have to remove the previous register configurations and write a new one. Register TRM of the document shows different register and what they stand for for each component. Now you can check the Cyfitter_cfg.c in generated source and understand how each component is configured.

Best Regards,
VRS

View solution in original post

0 Likes
Reply
Honored Contributor II

jbart,

Check this discussion, which is somewhat close to your requirements

Re: Trying to configure the OpAmp for Mode:OpAmp and Mode:Follower at run-time

/odissey1

0 Likes
Reply