亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hw_pwm.h

?? MCS-51的一個Free小型操作系統(tǒng),在KeilC中下編譯工作
?? H
字號:
//*****************************************************************************
//
// hw_pwm.h - Defines and Macros for Pulse Width Modulation (PWM) ports
//
// Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's Stellaris Family of microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 816 of the Stellaris Driver Library.
//
//*****************************************************************************

#ifndef __HW_PWM_H__
#define __HW_PWM_H__

//*****************************************************************************
//
// PWM Module Register Offsets.
//
//*****************************************************************************
#define PWM_O_CTL               0x00000000  // PWM Master Control register
#define PWM_O_SYNC              0x00000004  // PWM Time Base Sync register
#define PWM_O_ENABLE            0x00000008  // PWM Output Enable register
#define PWM_O_INVERT            0x0000000C  // PWM Output Inversion register
#define PWM_O_FAULT             0x00000010  // PWM Output Fault register
#define PWM_O_INTEN             0x00000014  // PWM Interrupt Enable register
#define PWM_O_RIS               0x00000018  // PWM Interrupt Raw Status reg.
#define PWM_O_ISC               0x0000001C  // PWM Interrupt Status register
#define PWM_O_STATUS            0x00000020  // PWM Status register

//*****************************************************************************
//
// The following define the bit fields in the PWM Master Control register.
//
//*****************************************************************************
#define PWM_CTL_GLOBAL_SYNC2    0x00000004  // Global sync generator 2
#define PWM_CTL_GLOBAL_SYNC1    0x00000002  // Global sync generator 1
#define PWM_CTL_GLOBAL_SYNC0    0x00000001  // Global sync generator 0

//*****************************************************************************
//
// The following define the bit fields in the PWM Time Base Sync register.
//
//*****************************************************************************
#define PWM_SYNC_SYNC2          0x00000004  // Reset generator 2 counter
#define PWM_SYNC_SYNC1          0x00000002  // Reset generator 1 counter
#define PWM_SYNC_SYNC0          0x00000001  // Reset generator 0 counter

//*****************************************************************************
//
// The following define the bit fields in the PWM Output Enable register.
//
//*****************************************************************************
#define PWM_ENABLE_PWM5EN       0x00000020  // PWM5 pin enable
#define PWM_ENABLE_PWM4EN       0x00000010  // PWM4 pin enable
#define PWM_ENABLE_PWM3EN       0x00000008  // PWM3 pin enable
#define PWM_ENABLE_PWM2EN       0x00000004  // PWM2 pin enable
#define PWM_ENABLE_PWM1EN       0x00000002  // PWM1 pin enable
#define PWM_ENABLE_PWM0EN       0x00000001  // PWM0 pin enable

//*****************************************************************************
//
// The following define the bit fields in the PWM Inversion register.
//
//*****************************************************************************
#define PWM_INVERT_PWM5INV      0x00000020  // PWM5 pin invert
#define PWM_INVERT_PWM4INV      0x00000010  // PWM4 pin invert
#define PWM_INVERT_PWM3INV      0x00000008  // PWM3 pin invert
#define PWM_INVERT_PWM2INV      0x00000004  // PWM2 pin invert
#define PWM_INVERT_PWM1INV      0x00000002  // PWM1 pin invert
#define PWM_INVERT_PWM0INV      0x00000001  // PWM0 pin invert

//*****************************************************************************
//
// The following define the bit fields in the PWM Fault register.
//
//*****************************************************************************
#define PWM_FAULT_FAULT5        0x00000020  // PWM5 pin fault
#define PWM_FAULT_FAULT4        0x00000010  // PWM5 pin fault
#define PWM_FAULT_FAULT3        0x00000008  // PWM5 pin fault
#define PWM_FAULT_FAULT2        0x00000004  // PWM5 pin fault
#define PWM_FAULT_FAULT1        0x00000002  // PWM5 pin fault
#define PWM_FAULT_FAULT0        0x00000001  // PWM5 pin fault

//*****************************************************************************
//
// PWM Interrupt Register bit definitions.
//
//*****************************************************************************
#define PWM_INT_INTFAULT        0x00010000  // Fault interrupt pending

//*****************************************************************************
//
// The following define the bit fields in the PWM Status register.
//
//*****************************************************************************
#define PWM_STATUS_FAULT        0x00000001  // Fault status

//*****************************************************************************
//
// PWM Generator standard offsets.
//
//*****************************************************************************
#define PWM_GEN_0_OFFSET        0x00000040  // PWM0 base
#define PWM_GEN_1_OFFSET        0x00000080  // PWM1 base
#define PWM_GEN_2_OFFSET        0x000000C0  // PWM2 base

#define PWM_O_X_CTL             0x00000000  // Gen Control Reg
#define PWM_O_X_INTEN           0x00000004  // Gen Int/Trig Enable Reg
#define PWM_O_X_RIS             0x00000008  // Gen Raw Int Status Reg
#define PWM_O_X_ISC             0x0000000C  // Gen Int Status Reg
#define PWM_O_X_LOAD            0x00000010  // Gen Load Reg
#define PWM_O_X_COUNT           0x00000014  // Gen Counter Reg
#define PWM_O_X_CMPA            0x00000018  // Gen Compare A Reg
#define PWM_O_X_CMPB            0x0000001C  // Gen Compare B Reg
#define PWM_O_X_GENA            0x00000020  // Gen Generator A Ctrl Reg
#define PWM_O_X_GENB            0x00000024  // Gen Generator B Ctrl Reg
#define PWM_O_X_DBCTL           0x00000028  // Gen Dead Band Ctrl Reg
#define PWM_O_X_DBRISE          0x0000002C  // Gen DB Rising Edge Delay Reg
#define PWM_O_X_DBFALL          0x00000030  // Gen DB Falling Edge Delay Reg

//*****************************************************************************
//
// PWM_X Control Register bit definitions.
//
//*****************************************************************************
#define PWM_X_CTL_ENABLE        0x00000001  // Master enable for gen block
#define PWM_X_CTL_MODE          0x00000002  // Counter mode, down or up/down
#define PWM_X_CTL_DEBUG         0x00000004  // Debug mode
#define PWM_X_CTL_LOADUPD       0x00000008  // Update mode for the load reg
#define PWM_X_CTL_CMPAUPD       0x00000010  // Update mode for comp A reg
#define PWM_X_CTL_CMPBUPD       0x00000020  // Update mode for comp B reg

//*****************************************************************************
//
// PWM_X Interrupt/Trigger Enable Register bit definitions.
//
//*****************************************************************************
#define PWM_X_INTEN_INTCNTZERO  0x00000001  // Int if COUNT = 0
#define PWM_X_INTEN_INTCNTLOAD  0x00000002  // Int if COUNT = LOAD
#define PWM_X_INTEN_INTCMPAU    0x00000004  // Int if COUNT = CMPA U
#define PWM_X_INTEN_INTCMPAD    0x00000008  // Int if COUNT = CMPA D
#define PWM_X_INTEN_INTCMPBU    0x00000010  // Int if COUNT = CMPA U
#define PWM_X_INTEN_INTCMPBD    0x00000020  // Int if COUNT = CMPA D
#define PWM_X_INTEN_TRCNTZERO   0x00000100  // Trig if COUNT = 0
#define PWM_X_INTEN_TRCNTLOAD   0x00000200  // Trig if COUNT = LOAD
#define PWM_X_INTEN_TRCMPAU     0x00000400  // Trig if COUNT = CMPA U
#define PWM_X_INTEN_TRCMPAD     0x00000800  // Trig if COUNT = CMPA D
#define PWM_X_INTEN_TRCMPBU     0x00001000  // Trig if COUNT = CMPA U
#define PWM_X_INTEN_TRCMPBD     0x00002000  // Trig if COUNT = CMPA D

//*****************************************************************************
//
// PWM_X Raw Interrupt Status Register bit definitions.
//
//*****************************************************************************
#define PWM_X_RIS_INTCNTZERO    0x00000001  // PWM_X_COUNT = 0 int
#define PWM_X_RIS_INTCNTLOAD    0x00000002  // PWM_X_COUNT = PWM_X_LOAD int
#define PWM_X_RIS_INTCMPAU      0x00000004  // PWM_X_COUNT = PWM_X_CMPA U int
#define PWM_X_RIS_INTCMPAD      0x00000008  // PWM_X_COUNT = PWM_X_CMPA D int
#define PWM_X_RIS_INTCMPBU      0x00000010  // PWM_X_COUNT = PWM_X_CMPB U int
#define PWM_X_RIS_INTCMPBD      0x00000020  // PWM_X_COUNT = PWM_X_CMPB D int

//*****************************************************************************
//
// PWM_X Interrupt Status Register bit definitions.
//
//*****************************************************************************
#define PWM_X_INT_INTCNTZERO    0x00000001  // PWM_X_COUNT = 0 received
#define PWM_X_INT_INTCNTLOAD    0x00000002  // PWM_X_COUNT = PWM_X_LOAD rcvd
#define PWM_X_INT_INTCMPAU      0x00000004  // PWM_X_COUNT = PWM_X_CMPA U rcvd
#define PWM_X_INT_INTCMPAD      0x00000008  // PWM_X_COUNT = PWM_X_CMPA D rcvd
#define PWM_X_INT_INTCMPBU      0x00000010  // PWM_X_COUNT = PWM_X_CMPB U rcvd
#define PWM_X_INT_INTCMPBD      0x00000020  // PWM_X_COUNT = PWM_X_CMPB D rcvd

//*****************************************************************************
//
// PWM_X Generator A/B Control Register bit definitions.
//
//*****************************************************************************
#define PWM_X_GEN_Y_ACTZERO     0x00000003  // Act PWM_X_COUNT = 0
#define PWM_X_GEN_Y_ACTLOAD     0x0000000C  // Act PWM_X_COUNT = PWM_X_LOAD
#define PWM_X_GEN_Y_ACTCMPAU    0x00000030  // Act PWM_X_COUNT = PWM_X_CMPA U
#define PWM_X_GEN_Y_ACTCMPAD    0x000000C0  // Act PWM_X_COUNT = PWM_X_CMPA D
#define PWM_X_GEN_Y_ACTCMPBU    0x00000300  // Act PWM_X_COUNT = PWM_X_CMPB U
#define PWM_X_GEN_Y_ACTCMPBD    0x00000C00  // Act PWM_X_COUNT = PWM_X_CMPB D

//*****************************************************************************
//
// PWM_X Generator A/B Control Register action definitions.
//
//*****************************************************************************
#define PWM_GEN_ACT_NONE        0x0         // Do nothing
#define PWM_GEN_ACT_INV         0x1         // Invert the output signal
#define PWM_GEN_ACT_ZERO        0x2         // Set the output signal to zero
#define PWM_GEN_ACT_ONE         0x3         // Set the output signal to one
#define PWM_GEN_ACT_ZERO_SHIFT  0           // Shift amount for the zero action
#define PWM_GEN_ACT_LOAD_SHIFT  2           // Shift amount for the load action
#define PWM_GEN_ACT_A_UP_SHIFT  4           // Shift amount for the A up action
#define PWM_GEN_ACT_A_DN_SHIFT  6           // Shift amount for the A dn action
#define PWM_GEN_ACT_B_UP_SHIFT  8           // Shift amount for the B up action
#define PWM_GEN_ACT_B_DN_SHIFT  10          // Shift amount for the B dn action

//*****************************************************************************
//
// PWM_X Dead Band Control Register bit definitions.
//
//*****************************************************************************
#define PWM_DBCTL_ENABLE        0x00000001  // Enable dead band insertion

//*****************************************************************************
//
// PWM Register reset values.
//
//*****************************************************************************
#define PWM_RV_CTL              0x00000000  // Master control of the PWM module
#define PWM_RV_SYNC             0x00000000  // Counter synch for PWM generators
#define PWM_RV_ENABLE           0x00000000  // Master enable for the PWM
                                            // output pins
#define PWM_RV_INVERT           0x00000000  // Inversion control for
                                            // PWM output pins
#define PWM_RV_FAULT            0x00000000  // Fault handling for the PWM
                                            // output pins
#define PWM_RV_INTEN            0x00000000  // Interrupt enable
#define PWM_RV_RIS              0x00000000  // Raw interrupt status
#define PWM_RV_ISC              0x00000000  // Interrupt status and clearing
#define PWM_RV_STATUS           0x00000000  // Status
#define PWM_RV_X_CTL            0x00000000  // Master control of the PWM
                                            // generator block
#define PWM_RV_X_INTEN          0x00000000  // Interrupt and trigger enable
#define PWM_RV_X_RIS            0x00000000  // Raw interrupt status
#define PWM_RV_X_ISC            0x00000000  // Interrupt status and clearing
#define PWM_RV_X_LOAD           0x00000000  // The load value for the counter
#define PWM_RV_X_COUNT          0x00000000  // The current counter value
#define PWM_RV_X_CMPA           0x00000000  // The comparator A value
#define PWM_RV_X_CMPB           0x00000000  // The comparator B value
#define PWM_RV_X_GENA           0x00000000  // Controls PWM generator A
#define PWM_RV_X_GENB           0x00000000  // Controls PWM generator B
#define PWM_RV_X_DBCTL          0x00000000  // Control the dead band generator
#define PWM_RV_X_DBRISE         0x00000000  // The dead band rising edge delay
                                            // count
#define PWM_RV_X_DBFALL         0x00000000  // The dead band falling edge delay
                                            // count

#endif //  __HW_PWM_H__

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99热精品国产| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 日韩精品视频网| 中文字幕 久热精品 视频在线| 欧美日韩大陆一区二区| 成人开心网精品视频| 日本人妖一区二区| 亚洲免费观看视频| 国产精品久久久久婷婷二区次| 欧美一级日韩一级| 欧美视频一二三区| 99国产精品久久| 国产成人午夜99999| 九九在线精品视频| 日韩中文字幕一区二区三区| 悠悠色在线精品| 国产精品国产三级国产普通话99 | 水野朝阳av一区二区三区| 国产精品久久午夜| 亚洲精品一区二区三区蜜桃下载| 欧美自拍丝袜亚洲| 色婷婷久久一区二区三区麻豆| 高潮精品一区videoshd| 精品午夜一区二区三区在线观看 | 国产在线精品一区二区三区不卡| 首页国产欧美日韩丝袜| 亚洲精品视频观看| 国产精品国产自产拍高清av| 国产欧美一区二区三区鸳鸯浴| 欧美xxxx老人做受| 日韩精品一区二区三区蜜臀| 欧美精品在欧美一区二区少妇| 在线观看视频一区二区欧美日韩| 99精品偷自拍| av网站一区二区三区| bt7086福利一区国产| 成人污污视频在线观看| 国产精品亚洲午夜一区二区三区 | 国产精品99久久久久久有的能看 | 日本高清成人免费播放| 99久久精品99国产精品 | 成人美女视频在线观看18| 国产精品综合在线视频| 国产高清不卡一区二区| 风间由美中文字幕在线看视频国产欧美 | 国产激情精品久久久第一区二区 | 欧美日产国产精品| 欧美伦理视频网站| 欧美一级片在线观看| 日韩免费电影一区| 国产亚洲欧美一区在线观看| 欧美激情自拍偷拍| 天天综合日日夜夜精品| 午夜精品一区二区三区电影天堂 | 亚洲三级电影网站| 一区二区三区免费网站| 亚洲一区二区精品久久av| 亚洲国产美女搞黄色| 午夜视频久久久久久| 久久99久久99精品免视看婷婷| 国产福利不卡视频| 97se亚洲国产综合自在线观| 欧美影院午夜播放| 欧美zozo另类异族| 日本一区二区成人| 亚洲一区二区三区四区不卡| 奇米777欧美一区二区| 国产精品综合一区二区| 色8久久人人97超碰香蕉987| 91精品一区二区三区久久久久久| 精品国产乱码久久久久久浪潮| 中文字幕av资源一区| 亚洲成在线观看| 国产一区二区剧情av在线| 99re热这里只有精品免费视频| 欧美日韩一卡二卡| 国产亚洲自拍一区| 亚洲综合av网| 国产麻豆成人精品| 欧美亚一区二区| 久久人人97超碰com| 一区二区三区在线播放| 精品一区二区三区在线观看国产| 99精品视频免费在线观看| 制服丝袜日韩国产| 中文在线一区二区| 日韩精品免费视频人成| 成人网在线免费视频| 91精品国产综合久久久蜜臀图片| 久久久久久久久97黄色工厂| 亚洲第一福利一区| 成人免费看黄yyy456| 91精品国产综合久久香蕉麻豆 | 欧美三级三级三级| 国产亚洲1区2区3区| 亚洲一区二区三区小说| 国产成人av影院| 欧美精品第1页| ...中文天堂在线一区| 久久er精品视频| 欧美丝袜第三区| 国产精品麻豆网站| 精品综合免费视频观看| 欧美日本不卡视频| 亚洲六月丁香色婷婷综合久久| 韩国视频一区二区| 欧美日韩免费电影| 自拍偷自拍亚洲精品播放| 国产精品综合二区| 日韩免费观看高清完整版在线观看| 一区二区三区四区蜜桃| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日本韩国欧美一区| 国产精品入口麻豆原神| 久久久国际精品| 欧美三级视频在线播放| 国产精品美女久久久久久久| 精品系列免费在线观看| 91精品国产乱码| 亚洲自拍偷拍网站| 91小视频免费看| 国产精品免费观看视频| 国产精品综合视频| 久久蜜桃av一区精品变态类天堂 | 国产精品美女久久久久久久 | 国产一区二区三区不卡在线观看| 欧美色图12p| 亚洲午夜久久久久久久久电影网 | 亚洲大型综合色站| 91精彩视频在线| 亚洲精品中文在线观看| 91麻豆福利精品推荐| 国产精品第五页| 成人avav影音| 亚洲丝袜制服诱惑| 99re成人在线| |精品福利一区二区三区| 99综合影院在线| 1024成人网色www| 91福利国产精品| 亚洲不卡在线观看| 日韩一区二区三区免费看| 美脚の诱脚舐め脚责91| xnxx国产精品| 粉嫩久久99精品久久久久久夜| 久久久99免费| 91色乱码一区二区三区| 亚洲色欲色欲www在线观看| 99久久99久久精品国产片果冻 | 久久综合狠狠综合久久综合88 | 精品国产伦一区二区三区免费| 韩国一区二区在线观看| 国产调教视频一区| 91视频免费看| 丝袜亚洲另类欧美| 久久伊人蜜桃av一区二区| 成人av动漫在线| 亚洲国产成人精品视频| 欧美一区二区三区爱爱| 国产一区二区在线观看免费| 欧美精彩视频一区二区三区| 色综合久久中文综合久久97| 一区二区成人在线视频| 51精品国自产在线| 国产精品亚洲а∨天堂免在线| 国产精品五月天| 欧亚一区二区三区| 精品一区二区三区欧美| 国产精品伦理一区二区| 3atv一区二区三区| 欧美色偷偷大香| 美女www一区二区| 国产精品久久毛片av大全日韩| 欧美日韩精品电影| 国产在线精品一区二区三区不卡| 日韩理论电影院| 精品人伦一区二区色婷婷| 91在线精品秘密一区二区| 日韩高清不卡一区二区| 国产精品国产自产拍在线| 欧美嫩在线观看| 波多野结衣在线一区| 免费视频最近日韩| 亚洲欧美日韩一区| 日韩免费性生活视频播放| 91视频精品在这里| 国模一区二区三区白浆| 亚洲午夜在线电影| 欧美激情综合网| 日韩精品在线网站| 欧美在线制服丝袜| 大胆亚洲人体视频| 蜜桃视频一区二区三区| 国产精品久久久久久久久动漫 | 91精品婷婷国产综合久久性色| 国产精品77777| 免费一级欧美片在线观看| 亚洲精品午夜久久久| 国产亚洲欧洲一区高清在线观看| 91.麻豆视频|