cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

chwa_1570756
New Contributor II

Hello,

I used ShiftReg component and want to set its ShiftReg_SR_SIZE actively in my main.h file like

#define ShiftReg_SR_SIZE (12u), but it seems not work.

anyone know how to set it by code?

thanks.

Chris

0 Likes
Reply
1 Solution
JoMe_264151
Expert II

The shift register size is determined at design-time and cannot be altered at run-time. The reason for that is: The shift register is made out of 1 to 4 UDBs which are programmed using hardware definition language.

Bob

View solution in original post

0 Likes
Reply
2 Replies
JoMe_264151
Expert II

The shift register size is determined at design-time and cannot be altered at run-time. The reason for that is: The shift register is made out of 1 to 4 UDBs which are programmed using hardware definition language.

Bob

View solution in original post

0 Likes
Reply