资源简介
在PSoc4平台上运用串口(UART)的例子,串口波特率设置为115200,使用中断接收的模式,将接收到的数据在中断函数快速返回发送方。

代码片段和文件信息
/*******************************************************************************
* File Name: UART_SCB_IRQ.c
* Version 1.70
*
* Description:
* API for controlling the state of an interrupt.
*
*
* Note:
*
********************************************************************************
* Copyright 2008-2012 Cypress Semiconductor Corporation. All rights reserved.
* You may use this file only in accordance with the license terms conditions
* disclaimers and limitations in the end user license agreement accompanying
* the software package with which this file was provided.
*******************************************************************************/
#include
#include
#include
#include “project.h“
#if !defined(UART_SCB_IRQ__REMOVED) /* Check for removal by optimization */
/*******************************************************************************
* Place your includes defines and code here
********************************************************************************/
/* ‘#START UART_SCB_IRQ_intc‘ */
/* ‘#END‘ */
extern cyisraddress CyRamVectors[CYINT_IRQ_base + CY_NUM_INTERRUPTS];
/* Declared in startup used to set unused interrupts to. */
CY_ISR_PROTO(IntDefaultHandler);
/*******************************************************************************
* Function Name: UART_SCB_IRQ_Start
********************************************************************************
*
* Summary:
* Set up the interrupt and enable it.
*
* Parameters:
* None
*
* Return:
* None
*
*******************************************************************************/
void UART_SCB_IRQ_Start(void)
{
/* For all we know the interrupt is active. */
UART_SCB_IRQ_Disable();
/* Set the ISR to point to the UART_SCB_IRQ Interrupt. */
UART_SCB_IRQ_SetVector(&UART_SCB_IRQ_Interrupt);
/* Set the priority. */
UART_SCB_IRQ_SetPriority((uint8)UART_SCB_IRQ_INTC_PRIOR_NUMBER);
/* Enable it. */
UART_SCB_IRQ_Enable();
}
/*******************************************************************************
* Function Name: UART_SCB_IRQ_StartEx
********************************************************************************
*
* Summary:
* Set up the interrupt and enable it.
*
* Parameters:
* address: Address of the ISR to set in the interrupt vector table.
*
* Return:
* None
*
*******************************************************************************/
void UART_SCB_IRQ_StartEx(cyisraddress address)
{
/* For all we know the interrupt is active. */
UART_SCB_IRQ_Disable();
/* Set the ISR to point to the UART_SCB_IRQ Interrupt. */
UART_SCB_IRQ_SetVector(address);
/* Set the priority. */
UART_SCB_IRQ_SetPriority((uint8)UART_SCB_IRQ_INTC_PRIOR_NUMBER);
/* Enable it. */
UART_SCB_IRQ_Enable();
}
/***************************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 26116 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\bitstream.txt
文件 7809 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cm0gcc.ld
文件 4808 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\Cm0Iar.icf
文件 3892 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\Cm0RealView.scat
文件 13534 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\Cm0Start.c
文件 33042 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\core_cm0.h
文件 2027 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\core_cm0_psoc4.h
文件 17146 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\core_cmFunc.h
文件 20512 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\core_cmInstr.h
文件 4301 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyBootAsmGnu.s
文件 3415 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyBootAsmIar.s
文件 3934 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyBootAsmRv.s
文件 106082 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cydevicegnu_trm.inc
文件 111199 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cydeviceiar_trm.inc
文件 237525 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cydevicerv_trm.inc
文件 114041 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cydevice_trm.h
文件 120 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cydisabledsheets.h
文件 10202 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfitter.h
文件 9639 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfittergnu.inc
文件 9235 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfitteriar.inc
文件 9187 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfitterrv.inc
文件 10869 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfitter_cfg.c
文件 874 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyfitter_cfg.h
文件 7211 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyFlash.c
文件 4006 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyFlash.h
文件 67778 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyLib.c
文件 24862 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\CyLib.h
文件 1905 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyme
文件 7371 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cypins.h
文件 15673 2014-01-17 17:49 PSoc4_UART.cydsn\codegentemp\cyPm.c
............此处省略197个文件信息
- 上一篇:LTC6811 Driver
- 下一篇:一个多用户聊天程序
相关资源
- Modbus协议官方文档中、英文全
- 易语言OTG串口通信
- delphi 串口通讯
- STM32蓝牙和串口程序
- Quartus II 15.0中仿真Altera三速以太网I
- Quartus II 15.0中仿真Altera三速以太网I
- LCD显示温度+串口接收温度.rar
- WPF USB 网络 串口 通信软件
- DELPHI与西门子200PLC的串口通信实例
- 3人表决器 QuartusII
- Verilog FPGA UART串口控制器
- USB转串口驱动,FT232R驱动程序,最新
- PC -- 单片机的串口数据传输系统设计
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- PC 串口调试软件
- 51单片机读取温度数据存储到SD卡中并
- 单片机与PC机串口通讯仿真
- 硬件课程设计—流水灯(quartus软件
- UART转CAN或LIN的工具(Uart2any)和文档
- 曼彻斯特编解码_同步QuartusII工程
- 串口调试助手V5.0
- 双串口调试助手 V4.0 _ 可同时调试两个
- 读取串口数据并画实时曲线的VC 程序
- 网络(UDP)转串口程序
- 串口绘制曲线 将收到的数据进行曲线
- 基于ARM蓝牙传输源程序
- JS操作本地网页串口源码
- CPLD Verilog数字密码锁 源码
- 用quartus 2编的全加器(原理图输入)
评论
共有 条评论