電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示
創(chuàng)作
電子發(fā)燒友網>電子資料下載>單片機>SH66系列編程指南

SH66系列編程指南

2017-09-09 | pdf | 64KB | 次下載 | 1積分

資料介紹

SH66 Series programming Notice

  I. Instructions for Interrupt Operation: 1. If “IE” instruction (interrupt enable) is set outside the interrupt processing program and there is “HALT” or “STOP” instruction, this two instructions should be followed “IE” instruction closely. 2. After CPU responding to an interrupt, IRQ should be cleared before resetting IE in order to avoid many responses to one interrupt. 3. Interrupt Enable instruction will be automatically cleared after entering interrupt-processing program. If setting IE too early, there is a possibility of re-entry the interrupt. So the Interrupt Enable instruction should be placed at the end and followed closely by two instructions include “RTNI”。 4. During the two successive instruction cycles next to Interrupt Enable instruction, CPU will not respond to any interrupts. 5. After CPU responding to interrupts, each bit of IE will be cleared by hardware while IRQ should be cleared by software.

  Examples: Users should pay attention to some problems when writing program according to the above points. Here are some examples for the software application: Case One: Description: CPU will be activated when running to “HALT” or “STOP” instruction. Program: Interrupt Enable instruction is set outside the interrupt processing program …… LDI IE, 0FH ; enable interrupt NOP NOP HALT Analysis: After two “NOP” instructions, if an interrupt pulse comes or IRQ is non-zero during the third instruction cycle, CPU will respond to the interrupt and IE will be cleared. Then when returning to main program, CPU begins to execute “HALT” or “STOP” and will not be activated, because IE is cleared to zero and all interrupts are disabled now. Solution: “HALT” or “STOP” are put closely behind “LDI IE, 0FH” (According to point 1)

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1PIC16F716 數(shù)據(jù)手冊免費下載
  2. 2.35 MB   |  18次下載  |  5 積分
  3. 2AN158 GD32VW553 Wi-Fi開發(fā)指南
  4. 1.51MB   |  2次下載  |  免費
  5. 3模擬電路仿真實現(xiàn)
  6. 2.94MB   |  2次下載  |  免費
  7. 4AN148 GD32VW553射頻硬件開發(fā)指南
  8. 2.07MB   |  1次下載  |  免費
  9. 5PZT驅動開關電路
  10. 0.09 MB   |  1次下載  |  免費
  11. 6PCB繪制基礎知識
  12. 2.44MB   |  1次下載  |  免費
  13. 7電子線路板及仿真實現(xiàn)
  14. 1.54MB   |  1次下載  |  免費
  15. 8AN4873-使用PIC單片機的集成運算放大器測量水中的總溶解固體
  16. 591.02KB   |  1次下載  |  免費

本月

  1. 1ADI高性能電源管理解決方案
  2. 2.43 MB   |  452次下載  |  免費
  3. 2免費開源CC3D飛控資料(電路圖&PCB源文件、BOM、
  4. 5.67 MB   |  139次下載  |  1 積分
  5. 3基于STM32單片機智能手環(huán)心率計步器體溫顯示設計
  6. 0.10 MB   |  133次下載  |  免費
  7. 4美的電磁爐維修手冊大全
  8. 1.56 MB   |  24次下載  |  5 積分
  9. 5如何正確測試電源的紋波
  10. 0.36 MB   |  19次下載  |  免費
  11. 6PIC16F716 數(shù)據(jù)手冊免費下載
  12. 2.35 MB   |  18次下載  |  5 積分
  13. 7萬用表UT58A原理圖
  14. 0.09 MB   |  9次下載  |  5 積分
  15. 8Q/SQR E8-4-2024乘用車電子電器零部件及子系統(tǒng)EMC試驗方法及要求
  16. 1.97 MB   |  8次下載  |  10 積分

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935121次下載  |  10 積分
  3. 2開源硬件-PMP21529.1-4 開關降壓/升壓雙向直流/直流轉換器 PCB layout 設計
  4. 1.48MB  |  420062次下載  |  10 積分
  5. 3Altium DXP2002下載入口
  6. 未知  |  233088次下載  |  10 積分
  7. 4電路仿真軟件multisim 10.0免費下載
  8. 340992  |  191367次下載  |  10 積分
  9. 5十天學會AVR單片機與C語言視頻教程 下載
  10. 158M  |  183335次下載  |  10 積分
  11. 6labview8.5下載
  12. 未知  |  81581次下載  |  10 積分
  13. 7Keil工具MDK-Arm免費下載
  14. 0.02 MB  |  73810次下載  |  10 積分
  15. 8LabVIEW 8.6下載
  16. 未知  |  65988次下載  |  10 積分