How to actively set the ShiftReg_SR_SIZE of shift bit number in my main code?

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

cross mob
chwa_1570756
Level 4
Level 4
25 sign-ins 25 replies posted 10 replies posted

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
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes