Je possède une interruption qui tourne à 8192 hz mais je voudrais la transformer avec un algorithme à 5000 hz. Comment je doit faire?
Pour être plus général comment diminuer la vitesse d'une interruption en étant continue?

geogeo a écrit :
Je possède une interruption qui tourne à 8192 hz mais je voudrais la transformer avec un algorithme à 5000 hz. Comment je doit faire?
Pour être plus général comment diminuer la vitesse d'une interruption en étant continue?


geogeo
a écrit : Mon si j'écrit ça, est-ce que ça risque de fonctionner?
pea.l (a0) lea.l counter(PC),a0 addi.w #20000,(a0) cmpi.w #22768,(a0) bls.s skip subi.w #32768,(a0) movem.l d0-d2/a1,-(a7) movea.l timer_5000Hz(PC),a0 jsr (a0) movem.l (a7)+,d0-d2/a1 skip: movea.l (a7)+,a0
