Технический форум

Технический форум (http://www.tehnari.ru/)
-   Электроника для начинающих (http://www.tehnari.ru/f117/)
-   -   Четырёхчасовой таймер (http://www.tehnari.ru/f117/t33647/)

Weles 27.03.2010 21:46

Нету таких, есть только avrdude.conf и avrdude.exe и всё.

Long Cat 27.03.2010 21:48

Установите программу SpeedFan

Weles 27.03.2010 21:55

Поставил, что дальше?

Long Cat 27.03.2010 21:56

Еще раз то же самое.

Weles 27.03.2010 21:59

Вот что пишет теперь:
Цитата:

Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.

C:\Documents and Settings\weles>c:

C:\Documents and Settings\weles>cd \avrdude-5.4-win

C:\avrdude-5.4-win>avrdude -cabcmini -pm8 -v

avrdude: Version 5.4, compiled on Jul 15 2007 at 12:37:51
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\avrdude-5.4-win\avrdude.conf"

Using Port : lpt1
Using Programmer : abcmini
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 4 20 128 0 no 512 0 0 9000 90
00 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 45
00 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00

Programmer Type : PPI
Description : ABCmini Board, aka Dick Smith HOTCHIP
VCC = (not used)
BUFF = (not used)
RESET = 4
SCK = 3
MOSI = 2
MISO = 10
ERR LED = 0
RDY LED = 0
PGM LED = 0
VFY LED = 0

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9307
avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as D9

avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\avrdude-5.4-win>

Long Cat 27.03.2010 22:01

Прекрасно.
Поместите в эту же папку файл с прошивкой.

avrdude -cabcmini -pm8 -Uflash:w:FourHoursTimer.elf.hex:i

Weles 27.03.2010 22:07

Готово, пишет:
Цитата:

Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.

C:\Documents and Settings\weles>avrdude -cabcmini -pm8 -Uflash:w:FourHoursTimer.
elf.hex:i
"avrdude" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Documents and Settings\weles>c:

C:\Documents and Settings\weles>cd \avrdude-5.4-win

C:\avrdude-5.4-win>avrdude -cabcmini -pm8 -v

avrdude: Version 5.4, compiled on Jul 15 2007 at 12:37:51
Copyright (c) 2000-2005 Brian Dean, BDMICRO MAVRIC ATmega128 Mega128 Dev Board AVR Microcontroller

System wide configuration file is "C:\avrdude-5.4-win\avrdude.conf"

Using Port : lpt1
Using Programmer : abcmini
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 4 20 128 0 no 512 0 0 9000 90
00 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 45
00 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00

Programmer Type : PPI
Description : ABCmini Board, aka Dick Smith HOTCHIP
VCC = (not used)
BUFF = (not used)
RESET = 4
SCK = 3
MOSI = 2
MISO = 10
ERR LED = 0
RDY LED = 0
PGM LED = 0
VFY LED = 0

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9307
avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as D9

avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\avrdude-5.4-win>avrdude -cabcmini -pm8 -Uflash:w:FourHoursTimer.elf.hex:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "FourHoursTimer.elf.hex"
avrdude: writing flash (224 bytes):

Writing | ################################################## | 100% 0.14s

avrdude: 224 bytes of flash written
avrdude: verifying flash memory against FourHoursTimer.elf.hex:
avrdude: load data flash data from input file FourHoursTimer.elf.hex:
avrdude: input file FourHoursTimer.elf.hex contains 224 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.09s

avrdude: verifying ...
avrdude: 224 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\avrdude-5.4-win>
Контроллер прошился?

Long Cat 27.03.2010 22:13

Да, все прошло успешно. Монтируйте на плату.

Weles 27.03.2010 22:57

Вставил, включаются 1,2 и 6 светодиоды, 1 медленно моргает, чего теперь делать:D? И что должно случиться через 20 минут? И 220в прямо на схему подавать или придётся ещё что нибудь подключать?
P.S.
Как я понял эксперементально, через заданное время загорается 4 светодиод:D

Long Cat 28.03.2010 05:36

1 мигает каждую секунду.
Через 5 минут включается третий.
Еще через 5 - четвертый
Еще через 5 - пятый.
Еще через 5 минут гаснет 6 (транзистор закрывается, отключая нагрузку), остальные начинают мигать.
Телефон у вас на 5 вольт?
Если да, его нужно подключать к левому разъему ("-" сверху, "+" снизу), а зарядное устройство - к правому.


Часовой пояс GMT +4, время: 04:43.

Powered by vBulletin® Version 4.5.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.