代码一: 1 #include 2 void int_clk() 3 { 4 BCSCTL1 &= ~XT2OFF; 5 BCSCTL2 |= SELM_2 + SELS; 6 do 7 { 8 IFG1 &= ~OFIFG; 9 for(int i=0;i 2 ...
分类:
其他好文 时间:
2015-07-11 18:09:48
阅读次数:
120
We manufacture a new accessory for iPad/iPhone which should transfer commands to the iPad. We like to use UART (through a certain Apple-protocol calle...
分类:
数据库 时间:
2015-07-10 12:47:31
阅读次数:
150
转自:新浪@WalkAnt第四部分串行接口UART和Console详细参考:http://dev.ardupilot.com/wiki/learning-ardupilot-uarts-and-the-console/UART很重要,用于调试输出,数传、GPS模块等。1、5个UART目前共定...
分类:
其他好文 时间:
2015-07-09 21:05:53
阅读次数:
320
这主要是在tiny4412的串口上实现C语言中的printf函数的Demo,当然,除了实现printf,还提供了由此产生的一些常用函数(ntoi,trim)。
分类:
其他好文 时间:
2015-07-05 16:33:04
阅读次数:
106
在实际开发中,经常遇到串口的默认输出IO口被其他模块占用了,所以我们要用到串口IO口映射功能,是指将原来实现功能的IO口映射到其他指定IO口,其他不变。具体操作如下:
先贴出默认下的串口初始化设置:
void USART1Conf(u32 baudRate)
{
USART_InitTypeDef USART_InitSturct;//定义串口1的初始化结构体
GPIO_InitType...
分类:
其他好文 时间:
2015-07-01 20:42:45
阅读次数:
274
1. 本文是对OK335xS Linux内核中UART设备注册代码进行跟踪; 2. 本人在文中采用函数调用线路图进行标记,方便阅读; 3. 代码跟踪的用的是vim+ctags;
分类:
其他好文 时间:
2015-07-01 08:37:57
阅读次数:
217
Linux内核启动参数Console Options参数说明选项内核配置/文件console=Options用于说明输出设备ttyn 终端ttySn[,options], ttyUSB0[,options] 串口uart,io,addr[,options],uart,mmio,addr[,optio...
分类:
系统相关 时间:
2015-06-29 21:55:18
阅读次数:
252
在写单片机程序时我们一般喜欢使用printf来通过串口打印调试信息,但这个函数是不可以直接使用的,必须做点对库函数的改动。
STM32M CUBE是ST官方提供的库以及初始化工具,很好很强大,但是在UART方面值提供了如下函数:
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint...
分类:
其他好文 时间:
2015-06-28 20:10:38
阅读次数:
232
module chuankou_1 ( input CLK,rst_n, input UART_RXD, output reg UART_TXD, output reg[19:0] shuju_1 ); reg cnt_1; reg clk_h; always @(posedge...
分类:
其他好文 时间:
2015-06-27 16:09:37
阅读次数:
95
// 头文件//module my_uart_top( CLK,rst_n,rs232_rx,rd_fifo_ena,rd_fifo_data, rs232_tx,wr_fifo_req,rd_fifo_req,wr_fifo_data,clk_bps_tx,clk_h )...
分类:
其他好文 时间:
2015-06-27 16:02:40
阅读次数:
123