Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamGibon007er napisał:Co do zasilania innych pinów , z tego co się dowiedziałem podpinamy zasilanie do AVCC tylko przy używaniu portuC
Cytat:AVCC is the supply voltage pin for the A/D Converter, Port C (3..0), and ADC (7..6). It should be
externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be con-
nected to VCC through a low-pass filter. Note that Port C (5..4) use digital supply voltage, VCC.
$regfile = "m8def.dat"
$crystal = 1000000
if Pinb.0 = 0 Then Portb.2 = 0 End Ifphoszek napisał:Instrukcję warunkową popraw jeszcze, bo zabrakło ci jednego end if'a. Czyli powinno być:if Pinb.0 = 0 Then Portb.2 = 0 End If
If Warunek Then [...] Else [...]If Pinb.0 = 0 Then
Portb.2 = 0
End If
$regfile = "m8def.dat"
$crystal = 1000000
Config Portb = &B11111100
Portb = &B11111111
Do
if Pinb.0 = 0 Then Portb.2 = 0
if Pinb.1 = 0 Then Portb.2 = 1
loop
end
1. Klikamy w bascomie : "Options" -> "Programmer"
2. Potem w polu "programmer" wybieramy "extrenal programmer"
3. Potem w czesci "other" w polu program wybieramy scieżkę do "avrdude"
4. Potem w czesci "other" w polu "parameter" wpisujemy : "avrdude" -p t2313 -c usbasp -P lpt1 -U flash:w:"{FILE}":a -U flash:v:"{FILE}":a –e
! ! ! Oczywiście zamiast t2313 wpisujemy nazwe procesora ktory chcemy programowac ! ! !