Help req wih shift register

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

cross mob
Anonymous
Not applicable

 I was trying to use the shift register of PSOC creator 1.0 and I wanted to know what is the easiest possible way of knowing by hardware when the parallel value loaded in the shift register has been shifted out completely.

   

Thank You

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Hi antimatter,

   

I would suggest to count the number of bits with a counter :reset with Load shift, count up with shift-clock,compare with bit-count.

   

Have fun

   

Bob

0 Likes
Anonymous
Not applicable

You can use SPI if you only need to shift data out with a shift clock.

0 Likes
Anonymous
Not applicable

Hi antimatter,

   

 

   

You can use counter component to keep track of the number of clocks that has elapsed (which is equal to the number of bits shifted). Interrupt on terminal count can be used as a trigger to load a new value into the Shift Register.

0 Likes