Where Are Binary Weightings Assigned in Shift Registers?

  • Thread starter Thread starter Jag1972
  • Start date Start date
  • Tags Tags
    Shift
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 5K views
Jag1972
Messages
40
Reaction score
0
I have got what may be a silly question. I hope not.
Using flip flops e.g. JK flip flops, counters can be constructed (modulus up and down counters). However when constructing shift registers data can be shifted left and right. When shifted right each the shift register could divide the initial values by 2 with every active clock pulse. When shifted left each the shift register could multiply the initial values by 2 with every active clock pulse. My question is where the binary weightings are assigned for each flip flop. Is this something done by a microcontroller for example registers in a PIC? ADCON0 and ADCON1 on PIC18F4520. I don’t know where or how these weightings are assigned. Thank you in advance.
 
Engineering news on Phys.org
What do you mean binary weighting?
 
The weighting is assigned by how you interpret the circuit.

You could hook up the ABCD lines of the binary input fom right to left, left to right, or even randomly if you wanted to have weird weightings.
 
Feldoh: Sorry for not being clear, I meant if the initial count was 8 set by four flip flops with the FF at the right being set to 1 and the other 3 at 0. Then if it is a shift right after 1 clock pulse the count would be 4. I wasnt sure how the binary weightings were assigned. However Jiggy has confirmed what I thought we as designers make it so. Thanks very much for reply.

Jiggy-Ninja: Thanks for confirming that, I thought that was the case.