Overview
========
This example shows how to use SDK drivers to use the Pin interrupt & pattern match peripheral.
Toolchain supported
===================
- IAR embedded Workbench 9.30.1
- Keil MDK 5.37
- GCC ARM Embedded 10.3.1
- MCUXpresso 11.6.0
Hardware requirements
=====================
- Micro USB cable
- LPCXpresso55s69 board
- Personal Computer
Board settings
==============
No special settings are required.
Prepare the Demo
================
Note: MCUXpresso IDE project default debug console is semihost
1. Connect a micro USB cable between the host PC and the LPC-Link USB port (P6) on the target board.
2. Open a serial terminal with the following settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
3. Download the program to the target board.
Running the demo
================
1. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
The following lines are printed to the serial terminal when the demo program is executed.
PINT Pin interrupt example
PINT Pin Interrupt events are configured
Press corresponding switches to generate events
2. This example configures "Pin Interrupt 0" to be invoked when SW1 switch is pressed by the user.
The interrupt callback prints "PINT Pin Interrupt 0 event detected". "Pin Interrupt 1" is
is configured to be invoked when SW2 is pressed. The interrupt callback prints "PINT Pin Interrupt
1 event detected". "Pin Interrupt 2" is configured to be invoked when SW3 is pressed. The interrupt
callback prints "PINT Pin Interrupt 2 event detected".
note:if need use secure pint,you just needs to modify base address.Find PINT baseaddr in source file,
you need change it to SECPINT. everything else stays the same.Because of SECURE PINT device only
support PORT0,so we only need to config secure pint interrupt 0.
For example, the following
PINT_Init(PINT);
PINT_PinInterruptConfig(PINT, kPINT_PinInt0, kPINT_PinIntEnableRiseEdge, pint_intr_callback);
PINT_EnableCallbackByIndex(PINT, kPINT_PinInt0);
Change the above three lines into the following:
PINT_Init(SECPINT);
PINT_PinInterruptConfig(SECPINT, kPINT_SecPinInt0, kPINT_PinIntEnableRiseEdge, pint_intr_callback);
PINT_EnableCallbackByIndex(SECPINT, kPINT_SecPinInt0);
After configuring secure pint device, you can see log output "The interrupt callback prints "PINT Pin Interrupt 0 event detected"
by press SW1 button.
没有合适的资源?快使用搜索试试~ 我知道了~
LPC55S69 外部中断 PINT例子
共145个文件
h:33个
su:22个
o:22个
需积分: 0 1 下载量 157 浏览量
2023-02-16
11:38:37
上传
评论
收藏 5.04MB ZIP 举报
温馨提示
LPC55S69通过上升沿触发ISP按键实现按一下亮蓝灯,按按一下灭灯操作
资源推荐
资源详情
资源评论
收起资源包目录
LPC55S69 外部中断 PINT例子 (145个子文件)
lpcxpresso55s69_pint_pin_interrupt.axf 1.15MB
fsl_power.c 77KB
fsl_clock.c 65KB
fsl_debug_console.c 64KB
fsl_usart.c 43KB
fsl_adapter_usart.c 33KB
fsl_pint.c 31KB
startup_lpc55s69_cm33_core0.c 27KB
clock_config.c 18KB
fsl_component_generic_list.c 14KB
system_LPC55S69_cm33_core0.c 13KB
fsl_flexcomm.c 13KB
pin_mux.c 10KB
fsl_gpio.c 9KB
fsl_common_arm.c 7KB
board.c 5KB
semihost_hardfault.c 4KB
fsl_inputmux.c 4KB
pint_pin_interrupt.c 3KB
fsl_reset.c 3KB
fsl_common.c 2KB
fsl_assert.c 2KB
boot_multicore_slave.c 2KB
.cproject 89KB
pint_pin_interrupt.d 4KB
board.d 3KB
fsl_adapter_usart.d 3KB
clock_config.d 3KB
fsl_debug_console.d 3KB
pin_mux.d 3KB
fsl_component_generic_list.d 3KB
fsl_assert.d 2KB
fsl_inputmux.d 2KB
fsl_usart.d 2KB
fsl_flexcomm.d 2KB
fsl_clock.d 2KB
fsl_power.d 2KB
fsl_gpio.d 2KB
fsl_pint.d 2KB
fsl_common_arm.d 2KB
fsl_common.d 2KB
fsl_reset.d 2KB
system_LPC55S69_cm33_core0.d 1KB
startup_lpc55s69_cm33_core0.d 127B
boot_multicore_slave.d 102B
semihost_hardfault.d 93B
crt_infolist.dtd 14KB
LPC55S69_cm33_core0.h 1.61MB
core_cm33.h 188KB
cmsis_gcc.h 64KB
fsl_clock.h 60KB
cmsis_armclang_ltm.h 57KB
cmsis_armclang.h 49KB
fsl_usart.h 36KB
fsl_inputmux_connections.h 34KB
fsl_power.h 33KB
fsl_adapter_uart.h 33KB
cmsis_iccarm.h 29KB
cmsis_armcc.h 28KB
fsl_common_arm.h 26KB
fsl_pint.h 19KB
fsl_common.h 17KB
LPC55S69_cm33_core0_features.h 17KB
fsl_reset.h 14KB
mpu_armv8.h 11KB
fsl_gpio.h 10KB
cmsis_compiler.h 10KB
board.h 9KB
fsl_debug_console.h 9KB
fsl_iocon.h 8KB
fsl_component_generic_list.h 7KB
clock_config.h 6KB
system_LPC55S69_cm33_core0.h 4KB
tz_context.h 3KB
pin_mux.h 2KB
fsl_inputmux.h 2KB
fsl_flexcomm.h 2KB
cmsis_version.h 2KB
fsl_device_registers.h 1KB
boot_multicore_slave.h 674B
lpcxpresso55s69_pint_pin_interrupt_Debug.ld 9KB
lpcxpresso55s69_pint_pin_interrupt_Debug_memory.ld 2KB
lpcxpresso55s69_pint_pin_interrupt_Debug_library.ld 476B
makefile 2KB
lpcxpresso55s69_pint_pin_interrupt.map 289KB
lpcxpresso55s69_pint_pin_interrupt.mex 31KB
subdir.mk 3KB
subdir.mk 2KB
subdir.mk 2KB
subdir.mk 2KB
subdir.mk 2KB
subdir.mk 2KB
subdir.mk 2KB
subdir.mk 2KB
sources.mk 506B
objects.mk 239B
fsl_clock.o 976KB
fsl_power.o 952KB
pint_pin_interrupt.o 948KB
fsl_pint.o 940KB
共 145 条
- 1
- 2
资源评论
sorry0619
- 粉丝: 14
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功