Load different schematics at runtime

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

cross mob
jubec_3886661
Level 1
Level 1

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
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

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
2 Replies