Académique Documents
Professionnel Documents
Culture Documents
; *
; GROUPE : 2 A / R ... *
; POSTE : (1 à 8) : ... *
; DATE DE REMISE DU RAPPORT : .../.../....... *
; *
;**********************************************************************
; *
; Auteur : *
; Titre : *
; Date : *
; *
;**********************************************************************
; *
; Hardware (quoi est câblé où ?) *
; *
; *
; *
; *
;**********************************************************************
;*********************************************************************
; ASSIGNATIONS *
;*********************************************************************
;*********************************************************************
; DEFINE *
;*********************************************************************
;Exemple :
;#DEFINE LED PORTB <3:0>
;*********************************************************************
; MACRO *
;*********************************************************************
BANQUE1 macro
bsf STATUS,RP0 ; sélectionner BANQUE 1
endm
BANQUE0 macro
bcf STATUS,RP0 ; sélectionner BANQUE 0
endm
;*********************************************************************
; DECLARATIONS DE VARIABLES *
;*********************************************************************
;*********************************************************************
; DECLARATIONS DE LA ZONE EEPROM *
;*********************************************************************
;**********************************************************************
; DEMARRAGE SUR RESET *
;**********************************************************************
;*********************************************************************
; INITIALISATIONS *
;*********************************************************************
init
;*********************************************************************
; PROGRAMME PRINCIPAL *
;*********************************************************************
start
blink
movlw d'5' ; initialisation de Cpt1 à 5
movwf Cpt1 ; pour 5 inversion de LED
encore2
xorwf PORTB,0 ; clignotement de la LED 0
xorwf PORTB,1 ; clignotement de la LED 1
xorwf PORTB,2 ; clignotement de la LED 2
xorwf PORTB,3 ; clignotement de la LED 3
call Tempo ; appelle de la tempo
decfsz Cpt1 ; décrémente et sc
goto encore2
goto start ; boucler
;;clignotement ;;
;*********************************************************************
; PROCEDURES *
;*********************************************************************