Where Are Binary Weightings Assigned in Shift Registers?

  • Thread starter Thread starter Jag1972
  • Start date Start date
  • Tags Tags
    Shift
Click For Summary
SUMMARY

The discussion centers on the assignment of binary weightings in shift registers using JK flip flops, specifically in the context of the PIC18F4520 microcontroller. Participants clarify that the binary weightings are determined by the circuit design and the arrangement of flip flops, rather than being assigned by the microcontroller itself. The example provided illustrates how shifting operations can effectively divide or multiply binary values based on the configuration of the flip flops. Ultimately, designers have control over how these weightings are interpreted in their circuits.

PREREQUISITES
  • Understanding of JK flip flops and their operation
  • Knowledge of shift register functionality
  • Familiarity with binary number representation
  • Basic concepts of microcontroller architecture, specifically PIC18F4520
NEXT STEPS
  • Research the operation and applications of JK flip flops in digital circuits
  • Learn about shift register design and its impact on binary data manipulation
  • Explore the configuration and programming of the PIC18F4520 microcontroller
  • Study binary weighting and its significance in digital logic design
USEFUL FOR

Electronics engineers, digital circuit designers, and students studying microcontroller applications will benefit from this discussion, particularly those interested in shift register design and binary data processing.

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.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
3K
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
18K
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K