Les 2 v2 - Binair + Hexadecimaal rekenen

H1 Bits en bytes
Hexadecimalen
Binair rekenen
1 / 23
next
Slide 1: Slide
InformaticaMiddelbare schoolvwoLeerjaar 4

This lesson contains 23 slides, with interactive quizzes, text slides and 2 videos.

time-iconLesson duration is: 100 min

Items in this lesson

H1 Bits en bytes
Hexadecimalen
Binair rekenen

Slide 1 - Slide

This item has no instructions

Na de les kun je...


  • Hexadecimalen getallen omrekenen naar binaire of decimale getallen en vice versa
  • Binaire getallen optellen en vermenigvuldigen

    Slide 2 - Slide

    This item has no instructions

    Lesplanning
      1. Terugblik vorige les

      2. Uitleg omrekenen hexadecimale getallen
      3. Uitleg binair optellen en vermenigvuldigen
      4. Zelfstandig aan de slag met huiswerk
      5. Afsluiting

      Slide 3 - Slide

      This item has no instructions

      Decimaal (10)
      • Getallen opgebouwd uit combinaties van 10 symbolen (0 t/m 9) vermenigvuldigd met machten van 10;

      • 372 = 3 x 102 + 7 x 101 + 2 x 100

      Slide 4 - Slide

      This item has no instructions

      Binair (2)
      • Getallen opgebouwd uit combinaties van 2 symbolen (0  of 1) vermenigvuldigd met machten van 2;
      • Vaak vooraan aangevuld met nullen tot 8 bits
      • positie van 0 of 1 vanaf achteren geeft de macht aan
      • (dus van rechts naar links lezen...)

      • 2 = 1 x 21 + 0 x 20 = 10     (oftewel: 0000 0010)
      • 74 = 64 + 8 + 2 = 1 x 26 + 1 x 23 + 1 x 21 = 01001010

      Slide 5 - Slide

      This item has no instructions

      Hexadecimaal (16)
      • Getallen opgebouwd uit combinaties van 0 t/m 9 en/of A t/m F 
      • Het zijn nu machten van 16

      • voorbeeld:
      • 0x6B = 6 x 16^1 + 11 x 16^0= 107 (oftewel: 0b01101011)
      • de prefix 0x betekent: dit is een hexadecimaal getal

      Slide 6 - Slide

      This item has no instructions

      Hexadecimaal
      • binair -> 2 (bini)
      • decimaal -> 10 (decimus)
      • hexadecimaal -> 16 (hex)
      • 0b = binair getal
      • 0x = hexadecimaal getal
      • 255 = 0b11111111 = 0xFF 

      Slide 7 - Slide

      This item has no instructions

      Slide 8 - Slide

      This item has no instructions

      Waarom hexadecimaal?
      • Korter op te schrijven dan binair: 1 hexa cijfer=4 bits
      • Makkelijk om te zetten naar binair dus snel
      • b.v. bij kleuren #007dad (denk aan html/css)
      • in binair zou dat zijn:
      • 00000000 01111101 10101101

      Slide 9 - Slide

      This item has no instructions

      Hexadecimaal naar binair...
      ...en andersom
      1101
      1101
      1101

      Slide 10 - Slide

      This item has no instructions

      Wat betekent de letter A in hexadecimale getallen?
      A
      1
      B
      16
      C
      15
      D
      10

      Slide 11 - Quiz

      This item has no instructions

      Uit hoeveel bits bestaat een 'nibble'
      A
      8
      B
      4
      C
      16
      D
      32

      Slide 12 - Quiz

      This item has no instructions

      Wat is hexadecimaal 0x8A in binaire notatie?
      A
      0b1000 1010
      B
      0b1111 1111
      C
      0b0100 0110
      D
      0b0110 1000

      Slide 13 - Quiz

      This item has no instructions

      Wat is decimaal 24 in hexadecimale notatie?


      A
      0x9F
      B
      0xF8
      C
      0x18
      D
      0x24

      Slide 14 - Quiz

      This item has no instructions

      Binaire getallen optellen
      • Zet getallen onder elkaar!
      • 0 + 0 = 0
      • 1 + 0 = 1
      • 0 + 1 = 1
      • 1 + 1 = 0 en één onthouden
      • 1 + 0 + 0 = 1 
      • 1 + 1 + 0 = 0 en eentje onthouden
      • 1 + 1 + 1 = 1 en eentje onthouden



      3 + 10 = 13
      0011 + 1010 = 1101



      209 + 72 = 281
      1101001 + 100100 = 10001101

      Slide 15 - Slide

      This item has no instructions

      Binaire getallen aftrekken
      • Zet getallen onder elkaar!
      • 0 - 0 = 0
      • 1 - 0 = 1
      • 1 - 1 = 0
      • 0 - 1 = 1 en één lenen
      • (zie filmpje)


      6 - 5 = 1
      0110 - 0101= 0001



      117 - 90 = 27
      1110101 - 1011010 = 0011011

      Slide 16 - Slide

      This item has no instructions

      Binaire getallen vermenigvuldigen
      • Zet getallen onder elkaar!
      • Van rechts naar links
      • 0 x 0 = 0
      • 1 x 0 = 0
      • 0 x 1 = 0
      • 1 x 1 = 1
      • Daarna optellen
      • NB: 1 + 0 + 0 + 1 = 0 en 1 onthouden


      11 x 13 = 143
      1011 X 1101 = 10001111

      Slide 17 - Slide

      0 + 0 = 0 
      0 + 1 = 1 
      1 + 0 = 1 
      1 + 1 = 0 en eentje onthouden
      1 + 0 + 0 = 1 
      1 + 1 + 0 = 0 en eentje onthouden
      1 + 1 + 1 = 1 en eentje onthouden
      Binaire getallen delen
      • Maak een staartdeling
      • Van links naar rechts
      • En tussenstappen aftrekken
      • Past 101 in 1000? Ja = 1 (nee = 0)
      • 1000 - 101 = 11
      • 1 rechts toevoegen = 111
      • Past 101 in 111? Ja = 1 (nee = 0)
      • Zie ook wikihow




      35 / 5 = 7
      100011 : 101 = 111

      Slide 18 - Slide

      NB net zolang van links naar rechts getal ophogen totdat 101 erin 'past'

      Dus 101 past niet in 1 van 100011, ook niet in 100, maar wel in 1000

      Eigenlijk is het antwoord dus 00111

      In de volgende stap voeg je de 1 van de 1e positie na 1000 toe  en dus staat er 111. Van die 111 bekijk je opnieuw of 101 daarin past en begin je opnieuw. 

      Aan de slag
      Van module C4 H1 Bits en Bytes
      Bestudeer en maak de volgende vragen: 
      §1.5 – 1 en §1.6 – 1 t/m 3
      Klaar? werk verder volgens Planner
       

      Slide 19 - Slide

      This item has no instructions

      Wat vind je nog lastig?

      Slide 20 - Open question

      This item has no instructions

      Slide 21 - Video

      This item has no instructions

      Slide 22 - Video

      This item has no instructions

      Slide 23 - Link

      This item has no instructions