Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
introduction_to_digital_systems:number_systems [2023/05/08 16:27]
mexleadmin [related Links]
introduction_to_digital_systems:number_systems [2023/11/16 01:09] (aktuell)
mexleadmin
Zeile 1: Zeile 1:
-====== 2Number Systems ======+====== 2 Number Systems ======
  
 ===== 2.1 Types of Number Systems ===== ===== 2.1 Types of Number Systems =====
Zeile 301: Zeile 301:
                +672 \\                +672 \\
 \hline  \hline 
-1\overset{\color{red}{2}}{1}\overset{\color{red}{1}}{4}\overset{}{2}+1\overset{\color{red}{2}}{2}\overset{\color{red}{1}}{4}\overset{}{2}
 \end{align*} \end{align*}
  
Zeile 549: Zeile 549:
  
   * [[https://calculator.name/baseconvert/decimal/hexadecimal/|Conversion tool from decimal to hexadecimal]], this tool shows also the steps and can be used vice versa   * [[https://calculator.name/baseconvert/decimal/hexadecimal/|Conversion tool from decimal to hexadecimal]], this tool shows also the steps and can be used vice versa
-  * The [[https://www.omnicalculator.com/math/binary-fraction|OmniCalculator]] can also calculate binary fractions+  * The [[https://www.omnicalculator.com/math/binary-fraction|OmniCalculator]] can also calculate binary fractions and comes with another explaination of the manual process. 
   * A short video on the "[[https://www.youtube.com/watch?v=_s5RFgd59ao&ab_channel=Numberphile|Everything Formula]]" which prints all possible output and is directly related to binary encoding.   * A short video on the "[[https://www.youtube.com/watch?v=_s5RFgd59ao&ab_channel=Numberphile|Everything Formula]]" which prints all possible output and is directly related to binary encoding.
  
Zeile 664: Zeile 664:
 </WRAP></WRAP></panel> </WRAP></WRAP></panel>
  
-<panel type="info" title="Exercise 2.3.9. One's Complement"> <WRAP group><WRAP column 2%>{{fa>pencil?32}}</WRAP><WRAP column 92%>+<panel type="info" title="Exercise 2.3.9. Two's Complement"> <WRAP group><WRAP column 2%>{{fa>pencil?32}}</WRAP><WRAP column 92%>
  
-In the simulation in <imgref pic70> the one's complement of a 4bit value is shown. \\ +In the simulation in <imgref pic70> the two's complement of a 4bit value is shown. \\ 
-On initialization the value is the following:  +On initializationthe value is the following: 
-  * The value for $A$ is $1010_2 = 10_{10}$. The decimal value ''10'' is also shown in the first display from the left in the circuit.  +  * The value for variable $A$ is $1010_2 = 10_{10}$. The decimal value ''10'' is also shown in the first display from the left in the circuit.  
-  * The value for $B$ is $1110_2 = 14_{10}$. The decimal value ''14'' is also shown in the second display from the left in the circuit.  +  * The value for variable $B$ is $1110_2 = 14_{10}$. The decimal value ''14'' is also shown in the second display from the left in the circuit.  
-  * The addition $A+B$ leads to $S = 1000_2 = 8_{10}$. The decimal value ''10'' is also shown in the rightmost display in the circuit.  +  * The addition $A+B$ leads to $S = 1000_2 = 8_{10}$. The decimal value ''10'' is also shown on the rightmost display in the circuit.  
-  * There is another value in the second display from the right. This is called $B'$ and it is equal to $0010_2 = 2_{10}$.+  * There is another value in the second display from the right. This is called $B'$and it is equal to $0010_2 = 2_{10}$.
    
 <WRAP><well> <WRAP><well>
-<imgcaption pic70|One's Complement></imgcaption> \\ +<imgcaption pic70|Two's Complement></imgcaption> \\ 
-{{url>https://www.falstad.com/circuit/circuitjs.html?hideSidebar=true&ctz=CQAgzCAMB0l3BOJyWoSALNATAVmwIyQAc28kAbNgOzrbEi6OSMCmAtAQQFBnUjswYCiAIYMAsPlHSJAQUi9I-QcNH1J0gmUwg5PPpLVdsm09pbzsSlUJEIRgrZAnyw3AB4gEppkQkMEgQMAMqeAtgYDI7YauhBDABC4YIYLLYaRLrBeik05gQRuH6u4CwAOgAOedSmGOjseEyyZSBV3BgEDWCmDlDeIoUY3ADuAsQM2JHjk2lQ3ACyIBOMIitzptjQuIsgtat7dSyb27v+B+cbIFs7SxYXOlc33AAyESu4MevH-QBmAIYAGwAzqxGPM3oIXAcoa4fiwASCwUxFJC7DD0VdCojQeDUZIdJ8CZZ4SAccj5oZGnMxBJGkSCC1EooqZEWNoGPTBo8QIkD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vXYetd67jxLkPaehCF5r3QVnNeTdk593XvHLex5zytXYC9OqCCAGn2NOECgQxqyFH4AkNoCdFGFFUCo8M2QGCJxSBgSM2iwAqA0BIKMAgUhgEgiBHovIaD6NyF4RoGQDYRHiKIJIABycIT4ZxKk8c4sIaNmqBMeizVs0EDr0RbP2UwO1AllmrDTQJWtoL+WgrmGJBYwx8xyaYXqnAuruniYWY0Q5UmFj5iyTMU07ilNELiJErwliVP6C8U4SwImRjqK07pLomklM9CcHYrjcCuBUBgZoUorHsBSLQTATIKD3zUd4kAAAKQxXhsC4lMGAIYTB1EAEpwIfi0kEJ8YYGwegbEZJY9yJANhemM7gQA noborder}}
 </well></WRAP> </well></WRAP>
  
   - Why is ''10'' + ''14'' = ''8''? What happens to other values? \\ The input values ''A'' and ''B'' can be changed by clicking on the bit values.    - Why is ''10'' + ''14'' = ''8''? What happens to other values? \\ The input values ''A'' and ''B'' can be changed by clicking on the bit values. 
   - Try to analyze how ''B''' (shown in the brackets) is derived from ''B''   - Try to analyze how ''B''' (shown in the brackets) is derived from ''B''
-  - Have a look at the wiki page of the {{wp>Ones' complement}} to understand how negative numbers are represented in a microcontroller.+  - Have a look at the wiki page of the {{wp>Two'complement}} to understand how negative numbers are represented in a microcontroller. \\ What does the following representation show? \\ {{drawio>introduction_to_digital_systems:SignedIntCircle.svg}}
   - Imagine that you have to rescue data from an old storage device. The interesting bits are given by the boxed area in <imgref picex01>. The bytes are LSB 0 oriented.    - Imagine that you have to rescue data from an old storage device. The interesting bits are given by the boxed area in <imgref picex01>. The bytes are LSB 0 oriented. 
     - What are these values in an unsigned integer?     - What are these values in an unsigned integer?
-    - What are these values in signed integers based on the ones' complement? +    - What are these values in signed integers based on the Two'complement?