rs232.h

来自「Software I2C implimntation」· C头文件 代码 · 共 40 行

H
40
字号
/*
*********************************************************************************************************
*									SIMPLE SOFTWARE DELAY FUNCTIONS
*
* File name		: RS232.h
* Programmer 	: Vinay Kumar Kondaparthi
* Note			: 
* Language		: Keil C 8.xx under uVision3 IDE
* Hardware		: Max 232
* Date			: Version 0.0 - 20th FEB 2009.
*********************************************************************************************************
*											DESCRIPTION
*
* This module provides interface for simple software delay functions adjusted for external
* crystal of 11.0592MHz
*********************************************************************************************************
*/

#ifndef _RS232_H_
#define _RS232_H_

/*
*********************************************************************************************************
*                         				serial communaication initilization Function
*
* Description : This function implements a software delay in usec. However, this is NOT an exact
*				usec delay function.
*				Timing calculation as (13*N+26)us at 11.0592MHz, (12*N+24)us at 12MHz
* Arguments   : 'N'		time to delay, (13*N+26)us, adjusted for external crystal of 11.0592MHz,
*						12 clock cycle timing
*			
* Returns     : none
*********************************************************************************************************
*/
void serial_init(void);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?