Jhjhjh
Microcontrôleur facile pour électronicien amateur PARTIE 2
Noxyben 2008 www.noxyben.fr
-1-
Introduction ................................................................................................................................ 3 Le schéma de base...................................................................................................................... 4 Principe de fonctionnement des ports I/O .................................................................................. 7 Utilisation des ports d’entrée/sortie (I/O)................................................................................... 8 Utilisation d’un PORT en sortie : un chenillard 8 leds .......................................................... 8 Le matériel : ....................................................................................................................... 8 Le programme : ................................................................................................................ 10 Analyse du programme : .................................................................................................. 12 Compilation du programme et injection dans le PIC : ..................................................... 16 Tests ................................................................................................................................. 17 Conclusion :...................................................................................................................... 17 Utilisation d’un PORT en entrée : un chenillard 8 leds contrôlé par 2 boutons poussoirs. . 18 Le matériel : ..................................................................................................................... 18 Le programme : ................................................................................................................ 19 Analyse du programme :