Shift Register Gone Bonkers

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

cross mob
lock attach
Attachments are accessible only for community members.
dog-one
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted
        Shift Register v2.30 component seems to have some issues.   
0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, an unsynced clock will not work for sure.

   

The shift-register is made using a datapath object which is clocked by the master-clock. Async clocks for shifting will probably fail. I think there should be a hint in the shiftreg datasheet or a warning.

   

 

   

Bob

View solution in original post

0 Likes
7 Replies
dog-one
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted
        I load the first register with 0x07 and after a while, the bits in both registers are 1. If I load the first register with 0x03, after a while both registers are 0. Second register is always set to 0 initially. This is with my new CY8CKIT-059 and all dev software updated to lastest version.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Matt,

   

Can you post your complete project or at least a reduced version that shows the error, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.



Bob
 

0 Likes
lock attach
Attachments are accessible only for community members.
dog-one
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted
        Okay, I stripped the project down to the bare minimum and the issue does still exist. I'm hoping it is something simple I overlooked. I do have another brand new 059 kit I can test on, but I'd like to leave it pristine if possible. The project has a console connection so you can see the results via software as well as observe the LED.   
0 Likes
lock attach
Attachments are accessible only for community members.
dog-one
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted
        Well Bob, having seen this anomaly before, I tried purifying the clock and now it works fine. So I'm curious as to why a warning wasn't issued during compilation.   
0 Likes
lock attach
Attachments are accessible only for community members.
dog-one
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted
        This may be the best workaround method.   
0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I did not read your last post yet, will check later.

   

Correwcted the clock within your system to 2 Hz synced to sysclock, now the led shows corrwect signal.

   

Check in clock view the frequency, I needed a prescaler.

   

 

   

Bob

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

Yes, an unsynced clock will not work for sure.

   

The shift-register is made using a datapath object which is clocked by the master-clock. Async clocks for shifting will probably fail. I think there should be a hint in the shiftreg datasheet or a warning.

   

 

   

Bob

0 Likes