历史上的今天
今天是:2024年10月14日(星期一)
2019年10月14日 | S32K144_Uart串口源程序
2019-10-14 来源:eefocus
S32K144 自身NorFlash读写,在NXP官方编译器S32 Design Studio for ARM Version 2018.R1(需要打补丁跟新到 RTM2.0版SDK)直接编译。该串口代码与官方库不冲突,可继续使用官方提供的便利工具,IO和Uart模块的可视化配置,并且实现Uart方便的中断接受,不丢失。从FIFO中直接提取数据,改善官方SDK库效读取率低,操作不方便等问题。
单片机源程序如下:
/* ###################################################################
** Filename : main.c
** Processor : S32K14x
** Abstract :
** Main module.
** This module contains user's application code.
** Settings :
** Contents :
** No public methods
**
** ###################################################################*/
/* MODULE main */
/* Including necessary module. Cpu.h contains other modules needed for compiling.*/
#include "Cpu.h"
/* User includes (#include below this line is not maintained by Processor Expert) */
#include "common.h"
/*!
brief The main function for the project.
details The startup initialization sequence is the following:
*/
int main(void)
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
#ifdef PEX_RTOS_INIT
PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of Processor Expert internal initialization. ***/
BoardInit();
UART_Text();
while(1){
OSIF_TimeDelay(1000);
};
return 0;
}
/* END main */
史海拾趣
|
来源:http://www.ourdev.cn/bbs/bbs_content.jsp?bbs_sn=1398508&bbs_page_no=1&bbs_id=9999 前言 想了很久,要不要写这篇文章?最后觉得对操作系统感兴趣的人还是很多,写吧.我不一定能造出玉,但我可以抛出砖. 包括我在内的很多人都对51使用 ...… 查看全部问答> |
|
我把inline函数放到一个文件单独文件 有些函数比如说 FixPoint FixPoint::operator * ( const FixPoint& fp ) 这个函数在程序里面频繁调用 使用__asm{}加入arm汇编代码..不能编译通过.. nonstandard extension used : \'__asm\' keyword not s ...… 查看全部问答> |
|
遥控是TC9012,它采用的38kHz的载波(一个载波周期35us),载波占空比1/3,经过调制后发送波形是9ms的引导码(前4.5ms由载波构成,后4.5ms是载波关断)和33bit的数据构成。比特1是0.56ms的载波和1.69ms的载波关断构成,比特0是0.56ms的载波和0.565ms的 ...… 查看全部问答> |
|
继TI Stellaris Cortex-M3 的Sandstorm(沙暴)、Fury Class(狂暴)、Dustdevil Class(旋风)之后,Tempest Class(飓风)系列已开始全球批量供应。Stellaris基于实现了革命性突破的ARM Cortex-M3技术之上,是业界领先的高可靠性实时微处理 ...… 查看全部问答> |
|
全新3.5寸tft 触摸液晶屏51,avr,pic,stm,430可以直接驱动接口:16,18位接口可选39pinic: r61505u ili9320 26万色提供51测试代码,初始化代码,接口资料,ic资料 如果有人需要的 我可以负责联系商家,估计价格会在3 ...… 查看全部问答> |




