Главная » Просмотр файлов » Микроконтроллер Motorola 68HC11

Микроконтроллер Motorola 68HC11 (1086181), страница 14

Файл №1086181 Микроконтроллер Motorola 68HC11 (Микроконтроллер Motorola 68HC11) 14 страницаМикроконтроллер Motorola 68HC11 (1086181) страница 142018-01-12СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

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

Refer to SECTION 4 OPERATING MODESAND ON-CHIP MEMORY.5NOSEC — Security Mode DisableRefer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY.NOCOP — COP System Disable0 = COP enabled (forces reset on timeout)1 = COP disabled (does not force reset on timeout)ROMON — ROM (EPROM) EnableRefer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY.EEON — EEPROM EnableRefer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY.5.2 Effects of ResetWhen a reset condition is recognized, the internal registers and control bits are forcedto an initial state.

Depending on the cause of the reset and the operating mode, thereset vector can be fetched from any of six possible locations. Refer to Table 5-2.Table 5-2 Reset Cause, Reset Vector, and Operating ModeCause of ResetNormal Mode VectorSpecial Test or BootstrapPOR or RESET Pin$FFFE, FFFF$BFFE, $BFFFClock Monitor Failure$FFFC, FFFD$BFFC, $BFFDCOP Watchdog Timeout$FFFA, FFFB$BFFA, $BFFBThese initial states then control on-chip peripheral systems to force them to knownstartup states, as follows:5.2.1 Central Processing UnitAfter reset, the CPU fetches the restart vector from the appropriate address during thefirst three cycles, and begins executing instructions. The stack pointer and other CPUMOTOROLA5-4RESETS AND INTERRUPTSM68HC11 E SERIESTECHNICAL DATAregisters are indeterminate immediately after reset; however, the X and I interruptmask bits in the condition code register (CCR) are set to mask any interrupt requests.Also, the S bit in the CCR is set to inhibit the STOP mode.5.2.2 Memory MapAfter reset, the INIT register is initialized to $01, mapping the RAM at $00, and the control registers at $1000.

For the MC68HC811E2, the CONFIG register resets to $FF.EEPROM mapping bits (EE[3:0]) place the EEPROM at $F800. Refer to the memorymap diagram for MC68HC811E2 in SECTION 4 OPERATING MODES AND ONCHIP MEMORY.5.2.3 TimerDuring reset, the timer system is initialized to a count of $0000. The prescaler bits arecleared, and all output compare registers are initialized to $FFFF. All input capture registers are indeterminate after reset. The output compare 1 mask (OC1M) register iscleared so that successful OC1 compares do not affect any I/O pins. The other fouroutput compares are configured so that they do not affect any I/O pins on successfulcompares. All input capture edge-detector circuits are configured for capture disabledoperation.

The timer overflow interrupt flag and all eight timer function interrupt flagsare cleared. All nine timer interrupts are disabled because their mask bits have beencleared.The I4/O5 bit in the PACTL register is cleared to configure the I4/O5 function as OC5;however, the OM5:OL5 control bits in the TCTL1 register are clear so OC5 does notcontrol the PA3 pin.5.2.4 Real-Time Interrupt (RTI)The real-time interrupt flag (RTIF) is cleared and automatic hardware interrupts aremasked.

The rate control bits are cleared after reset and can be initialized by softwarebefore the real-time interrupt (RTI) system is used.5.2.5 Pulse AccumulatorThe pulse accumulator system is disabled at reset so that the pulse accumulator input(PAI) pin defaults to being a general-purpose input pin.5.2.6 Computer Operating Properly (COP)The COP watchdog system is enabled if the NOCOP control bit in the CONFIG register is cleared, and disabled if NOCOP is set. The COP rate is set for the shortest duration timeout.5.2.7 Serial Communications Interface (SCI)The reset condition of the SCI system is independent of the operating mode.

At reset,the SCI baud rate control register (BAUD) is initialized to $04. All transmit and receiveinterrupts are masked and both the transmitter and receiver are disabled so the portpins default to being general-purpose I/O lines. The SCI frame format is initialized toM68HC11 E SERIESTECHNICAL DATARESETS AND INTERRUPTSMOTOROLA5-55an 8-bit character size. The send break and receiver wakeup functions are disabled.The TDRE and TC status bits in the SCI status register (SCSR) are both ones, indicating that there is no transmit data in either the transmit data register or the transmitserial shift register. The RDRF, IDLE, OR, NF, FE, PF, and RAF receive-related statusbits in the SCI control register 2 (SCCR2) are cleared.5.2.8 Serial Peripheral Interface (SPI)The SPI system is disabled by reset.

The port pins associated with this function defaultto being general-purpose I/O lines.5.2.9 Analog-to-Digital ConverterThe A/D converter configuration is indeterminate after reset. The ADPU bit is clearedby reset, which disables the A/D system. The conversion complete flag is indeterminate.55.2.10 SystemThe EEPROM programming controls are disabled, so the memory system is configured for normal read operation. PSEL[3:0] are initialized with the value %0110, causing the external IRQ pin to have the highest I-bit interrupt priority.

The IRQ pin isconfigured for level-sensitive operation (for wired-OR systems). The RBOOT, SMOD,and MDA bits in the HPRIO register reflect the status of the MODB and MODA inputsat the rising edge of reset. MODA and MODB inputs select one of the four operatingmodes. After reset, writing SMOD and MDA in special modes causes the MCU tochange operating modes. Refer to the description of HPRIO register in SECTION 4OPERATING MODES AND ON-CHIP MEMORY for a detailed description of SMODand MDA. The DLY control bit is set to specify that an oscillator start-up delay is imposed upon recovery from STOP mode. The clock monitor system is disabled because CME is cleared.5.3 Reset and Interrupt PriorityResets and interrupts have a hardware priority that determines which reset or interruptis serviced first when simultaneous requests occur. Any maskable interrupt can be given priority over other maskable interrupts.The first six interrupt sources are not maskable.

The priority arrangement for thesesources is as follows:1.2.3.4.5.6.POR or RESET pinClock monitor resetCOP watchdog resetXIRQ interruptIllegal opcode interruptSoftware interrupt (SWI)MOTOROLA5-6RESETS AND INTERRUPTSM68HC11 E SERIESTECHNICAL DATAThe maskable interrupt sources have the following priority arrangement:1. IRQ2.

Real-time interrupt3. Timer input capture 14. Timer input capture 25. Timer input capture 36. Timer output compare 17. Timer output compare 28. Timer output compare 39. Timer output compare 410. Timer input capture 4/output compare 511. Timer overflow12. Pulse accumulator overflow13. Pulse accumulator input edge14. SPI transfer complete15. SCI system (Refer to Figure 5-3)Any one of these interrupts can be assigned the highest maskable interrupt priority bywriting the appropriate value to the PSEL bits in the HPRIO register.

Otherwise, thepriority arrangement remains the same. An interrupt that is assigned highest priority isstill subject to global masking by the I bit in the CCR, or by any associated local bits.Interrupt vectors are not affected by priority assignment. To avoid race conditions, HPRIO can only be written while I-bit interrupts are inhibited.5.3.1 Highest Priority Interrupt and Miscellaneous RegisterHPRIO — Highest Priority I-Bit Interrupt and MiscellaneousBit 7RBOOT165SMOD100100011$103CMDA14IRVNE3PSEL32PSEL21PSEL1Bit 0PSEL0010100010000111111110000RESET:Single ChipExpandedBootstrapSpecial TestNOTES:1.

The values of the RBOOT, SMOD, and MDA reset bits depend on the mode during power-up. Refer to Table 4-2.RBOOT — Read Bootstrap ROMHas meaning only when the SMOD bit is a one (bootstrap mode or special test mode).At all other times this bit is clear and cannot be written. Refer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY for more information.SMOD — Special Mode SelectThis bit reflects the inverse of the MODB input pin at the rising edge of reset. Refer toSECTION 4 OPERATING MODES AND ON-CHIP MEMORY for more information.MDA — Mode Select AThe mode select A bit reflects the status of the MODA input pin at the rising edge ofM68HC11 E SERIESTECHNICAL DATARESETS AND INTERRUPTSMOTOROLA5-75reset.

Refer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY for moreinformation.IRVNE — Internal Read Visibility/Not EThe IRVNE control bit allows internal read accesses to be available on the externaldata bus during operation in expanded modes. In single-chip and bootstrap modes,IRVNE determines whether the E clock is driven out an external pin. For theMC68HC811E2, this bit is IRV and only controls internal read visibility. Refer to SECTION 4 OPERATING MODES AND ON-CHIP MEMORY for more information.PSEL[3:0] — Priority Select BitsThese bits select one interrupt source to be elevated above all other I-bit-relatedsources and can be written only while the I bit in the CCR is set (interrupts disabled).Table 5-3 Highest Priority Interrupt SelectionPSEL[3:0]5Interrupt Source Promoted0000Timer Overflow0001Pulse Accumulator Overflow0010Pulse Accumulator Input Edge0011SPI Serial Transfer Complete0100SCI Serial System0101Reserved (Default to IRQ)0110IRQ (External Pin or Parallel I/O)0111Real-Time Interrupt1000Timer Input Capture 11001Timer Input Capture 21010Timer Input Capture 31011Timer Output Compare 11100Timer Output Compare 21101Timer Output Compare 31110Timer Output Compare 41111Timer Input Capture 4/Output Compare 55.4 InterruptsThe MCU has 18 interrupt vectors that support 22 interrupt sources.

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

Тип файла
PDF-файл
Размер
962,52 Kb
Тип материала
Высшее учебное заведение

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

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