English
Language : 

AN91184 Datasheet, PDF (15/36 Pages) Ramtron International Corporation – Designing BLE Applications
PSoC® 4 BLE – Designing BLE Applications
Figure 14. Pin Interrupt Configuration
Note: The drive mode for the user switch is selected as Resistive pull up to keep the default state of the signal
as logic HIGH. When the switch is pressed, the pin is pulled to ground, driving the signal on the pin from logic
HIGH to logic LOW. Thus, the interrupt is set for Falling edge.
11. Place an Interrupt Component and connect it to the irq pin of the SW Component and rename it as
“Wakeup_ISR” as shown in Figure 15. The interrupt Component will be used to record the interrupt signal and
trigger the respective function.
Figure 15. SW Pin
12. To measure temperature, follow steps 13 to 19.
13. Drag and drop the Sequencing SAR ADC Component and configure it per Table 4.
Table 4. SAR ADC Component Configuration
Tab
General
General
General
General
Channels
Channels
Name
Name
Check Box Value
N/A
ADC
Clock frequency
(kHz)
N/A
Vref Select
N/A
Samples Averaged N/A
Sequenced
channels
AVG
N/A
Checked
6000
VDDA
16
1
N/A
Remarks
This name will be used as the prefix to the APIs for the
Component.
This application does not require a high accuracy. A faster
sample rate helps conserve power by reducing the active
time.
Input voltage range from 0 to VDDA.
Sample averaging of 16 helps averaging out any high-
frequency noise.
Number of channels to be scanned
Enable averaging for the corresponding ADC channel
Figure
Figure 16
Figure 16
Figure 16
Figure 16
Figure 17
Figure 17
www.cypress.com
Document No. 001-91184 Rev. *B
15