Modifications

Aller à : navigation, rechercher

Programmation embarquée

1 314 octets ajoutés, 21 mars 2014 à 13:05
des histoires d'horloge
out CLKPR, temp
out CLKPR, temp1
</code>
 
le clignotement est apparent et dure à peu près la durée prévue. J'ai donc fait des erreurs de calcul?
 
====désynchronisation====
 
J'ai enfin réussi à faire clignoter la led, mais depuis, j'ai perdu mon tiny !
 
si j'essaye de le reprogrammer, j'ai :
 
<code lang=bash>
make -f hello.ftdi.44.blink.asm.make program-avrisp2
avrdude -p t44 -P usb -c avrisp2 -U flash:w:hello.ftdi.44.blink.hex
 
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
 
 
avrdude done. Thank you.
 
make: *** [program-avrisp2] Erreur 1
</code>
le clignotement est apparent et dure à peu près Sur les conseils de Neil, j'essaye d'utiliser l'option "-i" de avrdude , qui spécifie la durée prévuedélai en microsecondes entre chaque changement de bit. J'ai donc fait des erreurs de calcul?
<code>
-i delay
For bitbang-type programmers, delay for approximately delay
microseconds between each bit state change. If the host
system is very fast, or the target runs off a slow clock
(like a 32 kHz crystal, or the 128 kHz internal RC oscilla‐
tor), this can become necessary to satisfy the requirement
that the ISP clock frequency must not be higher than 1/4 of
the CPU clock frequency.
</code>
[[Catégorie:FabAcademy]]
0
6 691
modifications

Menu de navigation