working with serial shift registers.

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

cross mob
Anonymous
Not applicable
0 Likes
9 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Don't be shy, you may say what you want. Best is to use Firefox or ie.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

i am new to working with psoc can anyone provide me walkthrough of how to shift data by using shiftregister available in psoc.

   

 

   

if i missed out any data assume and provide me a method. (pls i am having review today)

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

You did read the data sheet already, did you? (http://www.cypress.com/?rID=48887 ). What questions to its functionality do you actually have?

0 Likes
Anonymous
Not applicable

i want to connect some 5 registers in series together. does for all of them the 'load ' input must be used. how to give input to 'shift_in' input and how to see the output at 'shift_out' output pin.

   

 

   

basically i need to know how to write the coding to get some input and to shift them through a series of shift registers(say 5)

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The SR has a FIFO that you write data into it, then use load to

   

place that data into the SR register that actually does the shifting.

   

 

   

ShiftReg_WriteData(uint8/16/32 shiftData)

   

 

   

So if you cascaded 5, you would have 5 writes to

   

load the data into the 5 SRs, then having tied the

   

loads (5) to a control register or LUT or whatever,

   

activate it to transfer the data into the SR. Then

   

clock it out.

   

 

   

To look at SR output simply tie a pin to it. If you

   

do not need to look at intermediate SR data out, just

   

use 1 SR, and load and shift it in 5 operations.

   

 

   

Even simpler, if you do not need high speed simply toggle a pin with

   

all the bytes of data, bit at a time, out to a pin.

   

 

   

Regards, Dana.

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

Better late than never: Welcome in the forum!

   

 

   

When you right-click on the Shift Register component in the component catalog you are offered to find an example project. Adapt it to your environment and play around with it. Do you have got an development kit? Which one??

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

There is no example project for the shift register.

   

 

   

Regards, Dana.

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

Sorry to contradict you, but there is an example: Open a PSoC5 project with Creator 3.1, right click on Shift Register (v2.30) component and select "Find Example Project".

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I did, 3.1, SP1, there was none. But I picked 5LP family. If I pick

   

no family there is an example, PSOC 3.

   

 

   

Dana.

0 Likes