Préparation des TPs
Systèmes à Microcontrôleurs
1. Lien de téléchargement de THRSim11
http://www.hc11.demon.nl/thrsim11/thrsim11_5.30_max_setup.exe
2. Nouveau programme :
New 1
Fenêtre du programme
2
3. Ajout du matériel I/O box
View 1
I/O Box
I/O Box 2
4. Test du programme
Stop 4
Run 2
Visualisation 3
Programme 1
Le programme de test
portb EQU $1004
portc EQU $1003
portd EQU $1008
porte EQU $100A
DDRC EQU $1007
DDRD EQU $1009
ORG $C000
;;;;;;;;;;; configuration des ports;;;;;;;;;;;
LDAA #$FF
STAA DDRC
;;;;;;;;;;; Programme principal ;;;;;;;;;;
LDAA #$5F
STAA portb
loop BRA loop
END
Ajout et connexion du matériel (Traffic light)
Traffic light 2
1 Connect
Connect 4
Ok 5
3 Pin PB0