|
개요 |
Dialog사의 BLE칩 DA14580 이 ext sleep mode 로 작동중인 상태에서, 외부에서 DA14580의 핀으로 신호 인가하여 자는 상태인 경우 wakeup되게 하고 동시에 인터럽트 처리 시행되게 하는법.
참조정보. 1. UMB-006 Sleep Mode Configuration. pdf 보기 -> http://support.dialog-semiconductor.com/download/file/fid/797 2. AN-B-026 External Processor Wake-up Mechanism pdf 보기 -> http://support.dialog-semiconductor.com/download/file/fid/505
포럼글 중에서, 1. http://support.dialog-semiconductor.com/about-sleep-and-external-interrupt <- 외부 핀 인터럽트 처리방법 및 wkaeup 시키는 것도 같이 구현되어있음. 이 정보만으로도 충분히 구현가능. 아래 주요정보 복사해옴.
For a fully hosted soluition, you can see the code in the following project: C:\DA1458x_SDK_3.0.6\dk_apps\keil_projects\proximity\reporter_fh. void app_button_press_cb(void) is the callback routine when the interrupt occurs. This callback is registered within routine app_button_enable(): wkupct_register_callback(app_button_press_cb); Also, note that within app_button_enable routine we enable the interrupt for a given GPIO In this case it is : #define GPIO_BUTTON_PORT GPIO_PORT_1 When you use different GPIO pin as source of interrupt the arguments passed to wkupct_enable_irq need to change accordingly. See comments in routine wkupct_enable_irq on instructions for setting this value for different GPIO pins.
질. wkupct_enable_irq(uint32_t sel_pins, uint32_t pol_pins, uint16_t events_num, uint16_t deb_time). 답. the function counts the events (like a keypress for example) and wakes up the device after a certain programmed number of keypresses.
기타정보. DSPS에서 wakeup 방법. -> http://support.dialog-semiconductor.com/externalwakeup-dsps-project | |
|
///412.
'임베디드.일렉트로닉스' 카테고리의 다른 글
Dialog 사. DA1458x DSPS device 측 룹백구현. (0) | 2015.09.07 |
---|---|
Dialog 사. DA14580 외부SPI메모리로 부팅하는 법. (0) | 2015.09.07 |
Dialog 사. DA14580에서 I2C Master 구현방법. (0) | 2015.09.07 |
Dialog사. DA14580 Secondary Bootloader (dual image booting) (0) | 2015.09.07 |
XMODEM 128 byte CRC16 개념정리, 코드예. (0) | 2015.08.30 |
댓글