Connexion
S'inscrire
Actualités
Quoi de neuf
Activités générales
Auteurs
Forums
Nouveaux messages
Rechercher un forum
Quoi de neuf
Nouveaux messages
Nouveaux messages de profil
Activités générales
Membres
Membres inscrits
Visiteurs actuels
Nouveaux messages de profil
Rechercher dans les messages des profils
Teams
Créé ton équipe
Quoi de neuf ?
Nouveaux messages
Rechercher un forum
Menu
Connexion
S'inscrire
Install the app
Install
Forums
Forums généraux
Informatique
Développement
La base de l'informatique : le binaire
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Vous utilisez un navigateur non à jour ou ancien. Il ne peut pas afficher ce site ou d'autres sites correctement.
Vous devez le mettre à jour ou utiliser un
navigateur alternatif
.
Répondre à la discussion
Message
<blockquote data-quote="SamirMG" data-source="post: 6273833" data-attributes="member: 195350"><p style="text-align: center"><span style="font-size: 12px"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Information_binaire.png/220px-Information_binaire.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="font-family: 'Tahoma'"><span style="font-size: 12px"><span style="color: #4da6ff">Son Histoire :</span></span></span></p> <p style="text-align: center"><span style="font-family: 'Tahoma'"><span style="font-size: 12px"><span style="color: rgb(77, 166, 255)">Pendant les années 30 , un homme se nommant Claude Shannon montre que avec des interrupteur on pouvais faire des conditions ( fermer pour vrai et ouvert pour faux )</span></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="font-family: 'Tahoma'"><span style="font-size: 12px"><span style="color: rgb(77, 77, 255)">En informatique l'ordinateur ne comprend que des 1 et 0 donc le 1 vaut pour vrai et le 0 pour faux .Le binaire est utilisé par tous les ordinateurs . Quand vous utiliser un logiciel votre ordinateur ne voit que des 0 et des 1 .</span></span></span></p> <p style="text-align: center"><span style="font-family: 'Tahoma'"><span style="font-size: 12px"><span style="color: #4d4dff"><img src="/images/smiley-pack/oui.gif" class="smilie" loading="lazy" alt=":oui:" title="Oui :oui:" data-shortname=":oui:" /></span></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><img src="https://nomdunblogdotcom.files.wordpress.com/2014/08/ingc3a9nieur-expert-systc3a8me-informatique.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="color: rgb(255, 166, 77)"><span style="font-size: 12px">Un octet est une unités composée de 8 bit par exemple</span></span></p> <p style="text-align: center"><span style="color: rgb(255, 166, 77)"><span style="font-size: 12px">01011001 .</span></span></p> <p style="text-align: center"><span style="color: rgb(255, 166, 77)"><span style="font-size: 12px">Maintenant vous me dites comment passez d'un chiffre comme 2 a du binaire pour cela on as un tableau simple à comprendre <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite171" alt=":D" title="Awesome face :D" loading="lazy" data-shortname=":D" /></span></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="font-size: 12px"><img src="http://www.positron-libre.com/cours/electronique/logique-combinatoire/codage-information/images/code-bcd-decimal.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p> <p style="text-align: center"><span style="color: rgb(0, 128, 255)"><span style="font-size: 12px">Comme on le voit on dans la dernière colonne on as un 0 puis 1 puis un 0 et ça continue comme cela infiniment</span></span></p> <p style="text-align: center"><span style="color: rgb(0, 128, 255)"><span style="font-size: 12px">Pour la 3 colonne c'est deux 0 puis deux 1 et ainsi de suite après pour le reste vous avez compris .</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #0080ff"><span style="color: #4d4dff"><span style="font-size: 12px"><img src="http://www.levantdigital.com/images/services-service_icon-conversion_optimization.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></span></p> <p style="text-align: center"><span style="color: #0080ff"><span style="color: #4d4dff"><span style="font-size: 12px">A Savoir :</span></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><strong><u><span style="font-size: 12px">1) Convertir </span></u></strong></p> <p style="text-align: center"><span style="font-size: 12px">Maintenant on va convertir du binaire en Hexdécimal .Pour cela on commence par la droite du nombre écrit en binaire en allant vers la gauche en pensant que à chaque bit on associe la valeure 2^(numéro du bit), le premier bit étant le 0.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><ol> <li data-xf-list-type="ol"><span style="color: #4d4dff"><span style="font-size: 12px">2^0 = 1</span></span></li> <li data-xf-list-type="ol"><span style="color: #4d4dff"><span style="font-size: 12px">2^1 = 2</span></span></li> <li data-xf-list-type="ol"><span style="color: #4d4dff"><span style="font-size: 12px">2^2 = 4</span></span></li> <li data-xf-list-type="ol"><span style="color: #4d4dff"><span style="font-size: 12px">2^3 = 8</span></span></li> </ol><p><span style="color: #4d4dff"><span style="font-size: 12px">. </span></span></p><p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Exemple: 11001011</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Donc pour les convertir en décimale on fait</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">: 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">: 128 64 32 16 8 4 2 1</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Pour avoir le nombre en décimal on prend tous les résultats des puissances et on en fait la somme<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Pour l'exemple</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">= 1 x 1 + 1 x 2 + 0 x 4 + 1 x 8 + 0 x 16 + 0 x 32 + 1 x 64 + 1 x 128 = 203</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Donc 11001011 est 203 en décimal <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">La valeur minimum est que les bits sont égal a "0" ce qui donne "0" en décimal et la valeur max pour 8 bits est que la totalité des bits font 1 "1" ce qui donne "255" en décimal.</span></span></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Pour un nombre binaire de n bits, la valeur max est donc : (2^n)-1. Par exemple pour un un word ( 2 octet ) , le maximum qu'on peut avoir est 2^16-1=65535</span></span></p> <p style="text-align: center"><strong><u><span style="font-size: 12px"></span></u></strong></p> <p style="text-align: center"><strong><u><span style="font-size: 12px">2) Code Gray </span></u></strong></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: rgb(77, 77, 255)"><span style="font-size: 12px">Le code Gray est utilisé dans les capteurs angulaires et de positionnement</span></span></p> <p style="text-align: center"><span style="color: #4d4dff"><span style="font-size: 12px">mais il sert aussi dans les tableau de Karnaugh<a href="http://www.positron-libre.com/cours/electronique/logique-combinatoire/tableau-karnaugh/tableau-karnaugh.php" target="_blank"> utiliser pour la conception de circuit logiques et pour résoudre des équations logique <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></a></span></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="font-size: 12px">On va commencer par un simple exemple et construire son code gray <span style="color: rgb(77, 77, 255)">donc on as :</span></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="color: #4d4dff"><span style="font-size: 12px">Pour faire son code gray il faut déjà prendre la moitie étant donné qu'on as 4 chiffres on trace une ligne aprés le 1er 11 ce qui donne . <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></span></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="font-size: 12px"></span></p> <p style="text-align: center"><span style="color: #4d4dff"><span style="font-size: 12px">Voilà <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: rgb(0, 128, 255)"><span style="font-size: 12px">J’espère que vous avez bien compris <img src="/data/assets/smilies/joueur.gif" class="smilie" loading="lazy" alt=":p" title="Joueur :p" data-shortname=":p" /> . La suite arrive après avec le binaire réfléchis <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite355" alt=":)" title=":) :)" loading="lazy" data-shortname=":)" /></span></span></p></blockquote><p></p>
[QUOTE="SamirMG, post: 6273833, member: 195350"] [CENTER][SIZE=3][IMG]https://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Information_binaire.png/220px-Information_binaire.png[/IMG] [/SIZE] [FONT=Tahoma][SIZE=3][COLOR=#4da6ff]Son Histoire :[/COLOR] [COLOR=rgb(77, 166, 255)]Pendant les années 30 , un homme se nommant Claude Shannon montre que avec des interrupteur on pouvais faire des conditions ( fermer pour vrai et ouvert pour faux )[/COLOR][/SIZE][/FONT] [SIZE=3][/SIZE] [FONT=Tahoma][SIZE=3][COLOR=rgb(77, 77, 255)]En informatique l'ordinateur ne comprend que des 1 et 0 donc le 1 vaut pour vrai et le 0 pour faux .Le binaire est utilisé par tous les ordinateurs . Quand vous utiliser un logiciel votre ordinateur ne voit que des 0 et des 1 .[/COLOR] [COLOR=#4d4dff]:oui:[/COLOR][/SIZE][/FONT] [SIZE=3][IMG]https://nomdunblogdotcom.files.wordpress.com/2014/08/ingc3a9nieur-expert-systc3a8me-informatique.jpg[/IMG] [/SIZE] [COLOR=rgb(255, 166, 77)][SIZE=3]Un octet est une unités composée de 8 bit par exemple 01011001 . Maintenant vous me dites comment passez d'un chiffre comme 2 a du binaire pour cela on as un tableau simple à comprendre :D[/SIZE][/COLOR] [SIZE=3] [IMG]http://www.positron-libre.com/cours/electronique/logique-combinatoire/codage-information/images/code-bcd-decimal.gif[/IMG][/SIZE] [COLOR=rgb(0, 128, 255)][SIZE=3]Comme on le voit on dans la dernière colonne on as un 0 puis 1 puis un 0 et ça continue comme cela infiniment Pour la 3 colonne c'est deux 0 puis deux 1 et ainsi de suite après pour le reste vous avez compris .[/SIZE][/COLOR] [SIZE=3][/SIZE] [COLOR=#0080ff][COLOR=#4d4dff][SIZE=3][IMG]http://www.levantdigital.com/images/services-service_icon-conversion_optimization.png[/IMG][/SIZE][/COLOR][/COLOR] [COLOR=#0080ff][COLOR=#4d4dff][SIZE=3]A Savoir :[/SIZE][/COLOR][/COLOR] [SIZE=3][/SIZE] [B][U][SIZE=3]1) Convertir [/SIZE][/U][/B] [SIZE=3]Maintenant on va convertir du binaire en Hexdécimal .Pour cela on commence par la droite du nombre écrit en binaire en allant vers la gauche en pensant que à chaque bit on associe la valeure 2^(numéro du bit), le premier bit étant le 0.[/SIZE][/CENTER] [SIZE=3] [/SIZE] [LIST=1] [*][COLOR=#4d4dff][SIZE=3]2^0 = 1[/SIZE][/COLOR] [*][COLOR=#4d4dff][SIZE=3]2^1 = 2[/SIZE][/COLOR] [*][COLOR=#4d4dff][SIZE=3]2^2 = 4[/SIZE][/COLOR] [*][COLOR=#4d4dff][SIZE=3]2^3 = 8[/SIZE][/COLOR] [/LIST] [COLOR=#4d4dff][SIZE=3]. [/SIZE][/COLOR] [CENTER][COLOR=rgb(77, 77, 255)][SIZE=3]Exemple: 11001011 Donc pour les convertir en décimale on fait : 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0 : 128 64 32 16 8 4 2 1 Pour avoir le nombre en décimal on prend tous les résultats des puissances et on en fait la somme:) Pour l'exemple = 1 x 1 + 1 x 2 + 0 x 4 + 1 x 8 + 0 x 16 + 0 x 32 + 1 x 64 + 1 x 128 = 203 Donc 11001011 est 203 en décimal :) La valeur minimum est que les bits sont égal a "0" ce qui donne "0" en décimal et la valeur max pour 8 bits est que la totalité des bits font 1 "1" ce qui donne "255" en décimal. Pour un nombre binaire de n bits, la valeur max est donc : (2^n)-1. Par exemple pour un un word ( 2 octet ) , le maximum qu'on peut avoir est 2^16-1=65535[/SIZE][/COLOR] [B][U][SIZE=3] 2) Code Gray [/SIZE][/U][/B] [SIZE=3][/SIZE] [COLOR=rgb(77, 77, 255)][SIZE=3]Le code Gray est utilisé dans les capteurs angulaires et de positionnement[/SIZE][/COLOR] [COLOR=#4d4dff][SIZE=3]mais il sert aussi dans les tableau de Karnaugh[URL='http://www.positron-libre.com/cours/electronique/logique-combinatoire/tableau-karnaugh/tableau-karnaugh.php'] utiliser pour la conception de circuit logiques et pour résoudre des équations logique :)[/URL][/SIZE][/COLOR] [SIZE=3] On va commencer par un simple exemple et construire son code gray [COLOR=rgb(77, 77, 255)]donc on as :[/COLOR] [COLOR=#4d4dff][/COLOR][/SIZE][SIZE=3][/SIZE] [COLOR=#4d4dff][SIZE=3]Pour faire son code gray il faut déjà prendre la moitie étant donné qu'on as 4 chiffres on trace une ligne aprés le 1er 11 ce qui donne . :)[/SIZE][/COLOR] [SIZE=3] [COLOR=rgb(77, 77, 255)][/COLOR][/SIZE][SIZE=3][/SIZE] [COLOR=#4d4dff][SIZE=3]Voilà :)[/SIZE][/COLOR] [SIZE=3][/SIZE] [COLOR=rgb(0, 128, 255)][SIZE=3]J’espère que vous avez bien compris :p . La suite arrive après avec le binaire réfléchis :)[/SIZE][/COLOR][/CENTER] [/QUOTE]
Insérer les citations…
Vérification
Publier la réponse
Forums
Forums généraux
Informatique
Développement
La base de l'informatique : le binaire
Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies.
Acceptez
En savoir plus.…
Haut