⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testuart6.bak

📁 这是一个基于nec78f8024的led驱动程序
💻 BAK
字号:
/*
*******************************************************************************
**  COPYRIGHT (C) NEC Electronics Corporation 2008
**  NEC ELECTRONICS CONFIDENTIAL AND PROPRIETARY
**  All rights reserved by NEC Electronics Corporation.
**  Use of copyright notice does not evidence publication.
**
**  Filename :	UART6.h
**  Abstract :	This file implements the definition that relates to the UART6 communication 
**              not influenced by the setting in the GUI application. 
**
**  Device :	uPD78F8024
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
#ifndef	_MDUART6_
#define _MDUART6_

/* Mnemonic of register that relates to port used by UART6 communication */
#define	PORT_TXD6				P1.3
#define	PORT_MODE_TXD6			PM1.3
#define	PORT_RXD6				P1.4
#define	PORT_MODE_RXD6			PM1.4

/* mnemonic of register related to UART6 communication control */
#define	POWER6					ASIM6.7

#ifndef _MDUART0_
/* constant definition related to UART6 communication */
#define	SEND_DATA_LENGTH_BINARY	1
#define	SEND_DATA_LENGTH_ASCII	5
#define	UART_ERROR_CHECK_VALUE	0b00000111
#endif

/* function prototypes */
void UART6_init(void);
short  UART6_getValue( unsigned char  ucChannel );
void  calibrateBaudrate( unsigned char  uc1BitWidth );

#endif

⌨️ 快捷键说明

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