日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

MSP430F5529 DriverLib 库函数学习笔记(十五)SFR 模块

發(fā)布時間:2023/12/9 编程问答 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MSP430F5529 DriverLib 库函数学习笔记(十五)SFR 模块 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

目錄

  • API (機翻)
    • SFR管理中斷的函數(shù)
    • SFR 管理RST/NMI引腳控制的函數(shù)
      • 參數(shù)

平臺:Code Composer Studio 10.3.1
MSP430F5529 LaunchPad? Development Kit
(MSP?EXP430F5529LP)


API (機翻)

???????特殊函數(shù)寄存器API提供了一組用于使用MSP430Ware SFR模塊的函數(shù)。提供了啟用和禁用中斷和控制~ RST/NMI引腳的功能。
???????SFR模塊可以使設(shè)備的其他外設(shè)產(chǎn)生中斷。

???????SFR APl被分成兩組:
???????SFR管理中斷的函數(shù)
???????SFR 管理RST/NMI引腳控制的函數(shù)

SFR管理中斷的函數(shù)

SFR_enableInterrupt(uint8_t interruptMask) //啟用選定的SFR中斷源 SFR_disableInterrupt(uint8_t interruptMask) //禁用選定的SFR中斷源 SFR_getInterruptStatus(uint8_t interruptFlagMask) //返回所選SFR中斷標志的狀態(tài) SFR_clearInterrupt(uint8_t interruptFlagMask) //清除選定的SFR中斷標志

SFR 管理RST/NMI引腳控制的函數(shù)

SFR_setResetPinPullResistor(uint16_t pullResistorSetup) //設(shè)置~RST/NMI引腳上的上/下拉電阻 SFR_setNMIEdge(uint16_t edgeDirection) //設(shè)置邊緣方向,如果NMI功能是激活的,將斷言一個NMI從~RST/NMI引腳上的信號。 SFR_setResetNMIPinFunction(uint8_t resetPinFunction) //設(shè)置~RST/NMI引腳的功能

參數(shù)

interruptMask

/*is the bit mask of interrupts that will be disabled. Mask value is the logical OR of any of the following:*/ SFR_JTAG_OUTBOX_INTERRUPT /*- JTAG outbox interrupt enable*/ SFR_JTAG_INBOX_INTERRUPT /*- JTAG inbox interrupt enable*/ SFR_NMI_PIN_INTERRUPT /*- NMI pin interrupt enable, if NMI function is chosen*/ SFR_VACANT_MEMORY_ACCESS_INTERRUPT /*- Vacant memory access interrupt enable*/ SFR_OSCILLATOR_FAULT_INTERRUPT /*- Oscillator fault interrupt enable*/ SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT /*- Watchdog interval timer interrupt enable*/ SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT /*- *Flash controller access violation interrupt enable*/

interruptFlagMask

/*is the bit mask of interrupt flags that should be cleared Mask value is the logical OR of any of the following:*/ SFR_JTAG_OUTBOX_INTERRUPT /*- JTAG outbox interrupt enable*/ SFR_JTAG_INBOX_INTERRUPT /*- JTAG inbox interrupt enable*/ SFR_NMI_PIN_INTERRUPT /*- NMI pin interrupt enable, if NMI function is chosen*/ SFR_VACANT_MEMORY_ACCESS_INTERRUPT /*- Vacant memory access interrupt enable*/ SFR_OSCILLATOR_FAULT_INTERRUPT /*- Oscillator fault interrupt enable*/ SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT /*- Watchdog interval timer interrupt enable*/ SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT /*- Flash controller access violation interrupt enable*/

pullResistorSetup

/*is the selection of how the pull-up/down resistor on the ~RST/NMI pin should be setup or disabled. Valid values are:*/ SFR_RESISTORDISABLE SFR_RESISTORENABLE_PULLUP /*[Default]*/ SFR_RESISTORENABLE_PULLDOWN /*Modified bits are SYSRSTUP of SFRRPCR register.*/

edgeDirection

/*is the direction that the signal on the ~RST/NMI pin should go to signal an interrupt, if enabled. Valid values are:*/ SFR_NMI_RISINGEDGE /*[Default]*/ SFR_NMI_FALLINGEDGE /*Modified bits are SYSNMIIES of SFRRPCR register.*/

resetPinFunction

/*is the function that the ~RST/NMI pin should take on. Valid values are:*/ SFR_RESETPINFUNC_RESET /*[Default]*/ SFR_RESETPINFUNC_NMI /*Modified bits are SYSNMI of SFRRPCR register.*/

總結(jié)

以上是生活随笔為你收集整理的MSP430F5529 DriverLib 库函数学习笔记(十五)SFR 模块的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。