ATmega8 (961722), страница 8

Файл №961722 ATmega8 (Скамко) 8 страницаATmega8 (961722) страница 82013-09-29СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 8)

If the reference is kept on in sleep mode, the output can beused immediately. Refer to “Internal Voltage Reference” on page 40 for details on thestart-up time.Watchdog TimerIf the Watchdog Timer is not needed in the application, this module should be turned off.If the Watchdog Timer is enabled, it will be enabled in all sleep modes, and hence,always consume power. In the deeper sleep modes, this will contribute significantly tothe total current consumption.

Refer to “Watchdog Timer” on page 41 for details on howto configure the Watchdog Timer.Port PinsWhen entering a sleep mode, all port pins should be configured to use minimum power.The most important thing is then to ensure that no pins drive resistive loads. In sleepmodes where the both the I/O clock (clkI/O) and the ADC clock (clkADC) are stopped, theinput buffers of the device will be disabled. This ensures that no power is consumed bythe input logic when not needed.

In some cases, the input logic is needed for detectingwake-up conditions, and it will then be enabled. Refer to the section “Digital InputEnable and Sleep Modes” on page 53 for details on which pins are enabled. If the inputbuffer is enabled and the input signal is left floating or have an analog signal level closeto VCC/2, the input buffer will use excessive power.34ATmega8(L)2486O–AVR–10/04ATmega8(L)System Control andResetResetting the AVRDuring Reset, all I/O Registers are set to their initial values, and the program starts execution from the Reset Vector.

If the program never enables an interrupt source, theInterrupt Vectors are not used, and regular program code can be placed at these locations. This is also the case if the Reset Vector is in the Application section while theInterrupt Vectors are in the boot section or vice versa. The circuit diagram in Figure 14shows the Reset Logic. Table 15 defines the electrical parameters of the reset circuitry.The I/O ports of the AVR are immediately reset to their initial state when a reset sourcegoes active.

This does not require any clock source to be running.After all reset sources have gone inactive, a delay counter is invoked, stretching theinternal reset. This allows the power to reach a stable level before normal operationstarts. The time-out period of the delay counter is defined by the user through theCKSEL Fuses. The different selections for the delay period are presented in “ClockSources” on page 24.Reset SourcesThe ATmega8 has four sources of Reset:•Power-on Reset.

The MCU is reset when the supply voltage is below the Power-onReset threshold (VPOT).•External Reset. The MCU is reset when a low level is present on the RESET pin forlonger than the minimum pulse length.•Watchdog Reset. The MCU is reset when the Watchdog Timer period expires andthe Watchdog is enabled.•Brown-out Reset.

The MCU is reset when the supply voltage VCC is below theBrown-out Reset threshold (VBOT) and the Brown-out Detector is enabled.352486O–AVR–10/04Figure 14. Reset LogicDATA BUSPORFBORFEXTRFWDRFMCU Control and StatusRegister (MCUCSR)Brown-OutReset CircuitBODENBODLEVELPull-up ResistorSPIKEFILTERWatchdogOscillatorClockGeneratorCKDelay CountersTIMEOUTCKSEL[3:0]SUT[1:0]Table 15. Reset CharacteristicsSymbolVPOTConditionMinTypMaxUnitsPower-on Reset ThresholdVoltage (rising)(1)1.42.3VPower-on Reset ThresholdVoltage (falling)1.32.3V0.9VCC1.5µsVRSTRESET Pin Threshold VoltagetRSTMinimum pulse width onRESET PinBrown-out Reset ThresholdVoltage(2)BODLEVEL = 12.42.62.9VBOTBODLEVEL = 03.74.04.5Minimum low voltage period forBrown-out DetectionBODLEVEL = 12µstBODBODLEVEL = 02µsVHYSTBrown-out Detector hysteresis130mVNotes:36Parameter0.2V1.

The Power-on Reset will not work unless the supply voltage has been below VPOT(falling).2. VBOT may be below nominal minimum operating voltage for some devices. Fordevices where this is the case, the device is tested down to VCC = VBOT during theproduction test. This guarantees that a Brown-out Reset will occur before VCC dropsto a voltage where correct operation of the microcontroller is no longer guaranteed.The test is performed using BODLEVEL = 1 for ATmega8L and BODLEVEL = 0 forATmega8.

BODLEVEL = 1 is not applicable for ATmega8.ATmega8(L)2486O–AVR–10/04ATmega8(L)Power-on ResetA Power-on Reset (POR) pulse is generated by an On-chip detection circuit. The detection level is defined in Table 15. The POR is activated whenever VCC is below thedetection level. The POR circuit can be used to trigger the Start-up Reset, as well as todetect a failure in supply voltage.A Power-on Reset (POR) circuit ensures that the device is reset from Power-on. Reaching the Power-on Reset threshold voltage invokes the delay counter, which determineshow long the device is kept in RESET after VCC rise.

The RESET signal is activatedagain, without any delay, when VCC decreases below the detection level.Figure 15. MCU Start-up, RESET Tied to VCCVCCRESETVPOTVRSTtTOUTTIME-OUTINTERNALRESETFigure 16. MCU Start-up, RESET Extended ExternallyVCCRESETTIME-OUTVPOTVRSTtTOUTINTERNALRESET372486O–AVR–10/04External ResetAn External Reset is generated by a low level on the RESET pin. Reset pulses longerthan the minimum pulse width (see Table 15) will generate a reset, even if the clock isnot running. Shorter pulses are not guaranteed to generate a reset. When the appliedsignal reaches the Reset Threshold Voltage – VRST on its positive edge, the delaycounter starts the MCU after the time-out period tTOUT has expired.Figure 17.

External Reset During OperationCCBrown-out DetectionATmega8 has an On-chip Brown-out Detection (BOD) circuit for monitoring the VCClevel during operation by comparing it to a fixed trigger level. The trigger level for theBOD can be selected by the fuse BODLEVEL to be 2.7V (BODLEVEL unprogrammed),or 4.0V (BODLEVEL programmed). The trigger level has a hysteresis to ensure spikefree Brown-out Detection. The hysteresis on the detection level should be interpreted asVBOT+ = VBOT + VHYST/2 and VBOT- = VBOT - VHYST/2.The BOD circuit can be enabled/disabled by the fuse BODEN. When the BOD isenabled (BODEN programmed), and VCC decreases to a value below the trigger level(VBOT- in Figure 18), the Brown-out Reset is immediately activated.

When VCC increasesabove the trigger level (VBOT+ in Figure 18), the delay counter starts the MCU after thetime-out period tTOUT has expired.The BOD circuit will only detect a drop in VCC if the voltage stays below the trigger levelfor longer than tBOD given in Table 15.Figure 18. Brown-out Reset During OperationVCCVBOT-VBOT+RESETTIME-OUTtTOUTINTERNALRESET38ATmega8(L)2486O–AVR–10/04ATmega8(L)Watchdog ResetWhen the Watchdog times out, it will generate a short reset pulse of 1 CK cycle duration.

On the falling edge of this pulse, the delay timer starts counting the time-out periodtTOUT. Refer to page 41 for details on operation of the Watchdog Timer.Figure 19. Watchdog Reset During OperationCCCKMCU Control and StatusRegister – MCUCSRThe MCU Control and Status Register provides information on which reset sourcecaused an MCU Reset.Bit76543210––––WDRFBORFEXTRFPORFRead/WriteRRRRR/WR/WR/WR/WInitial Value0000MCUCSRSee Bit Description• Bit 7..4 – Res: Reserved BitsThese bits are reserved bits in the ATmega8 and always read as zero.• Bit 3 – WDRF: Watchdog Reset FlagThis bit is set if a Watchdog Reset occurs. The bit is reset by a Power-on Reset, or bywriting a logic zero to the flag.• Bit 2 – BORF: Brown-out Reset FlagThis bit is set if a Brown-out Reset occurs.

The bit is reset by a Power-on Reset, or bywriting a logic zero to the flag.• Bit 1 – EXTRF: External Reset FlagThis bit is set if an External Reset occurs. The bit is reset by a Power-on Reset, or bywriting a logic zero to the flag.• Bit 0 – PORF: Power-on Reset FlagThis bit is set if a Power-on Reset occurs. The bit is reset only by writing a logic zero tothe flag.To make use of the Reset Flags to identify a reset condition, the user should read andthen reset the MCUCSR as early as possible in the program. If the register is clearedbefore another reset occurs, the source of the reset can be found by examining theReset Flags.392486O–AVR–10/04Internal VoltageReferenceATmega8 features an internal bandgap reference.

This reference is used for Brown-outDetection, and it can be used as an input to the Analog Comparator or the ADC. The2.56V reference to the ADC is generated from the internal bandgap reference.Voltage Reference EnableSignals and Start-up TimeThe voltage reference has a start-up time that may influence the way it should be used.The start-up time is given in Table 16. To save power, the reference is not always turnedon. The reference is on during the following situations:1. When the BOD is enabled (by programming the BODEN Fuse).2.

Характеристики

Тип файла
PDF-файл
Размер
2,37 Mb
Материал
Тип материала
Высшее учебное заведение

Список файлов учебной работы

Свежие статьи
Популярно сейчас
Зачем заказывать выполнение своего задания, если оно уже было выполнено много много раз? Его можно просто купить или даже скачать бесплатно на СтудИзбе. Найдите нужный учебный материал у нас!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6353
Авторов
на СтудИзбе
311
Средний доход
с одного платного файла
Обучение Подробнее