文件名称:Lin-Uart-500006
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 348kb
- 下载次数:
- 0次
- 提 供 者:
- Shi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本应用介绍了如何在各种模式下使用LIN-UART。
介绍了LIN-UART的各种功能和工作模式并给出了样本代码。LIN-UART具有4个工作模式。工作模式0是异步模式(正常模式) 工作模式1是异步(多处理器模式) 工作模式2是同步模式(正常模式) 工作模式3是异步模式(LIN模式)。-/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU*/
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR*/
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics (Shanghai) Co., LTD. */
/* Date:20080320 Version:1V0 Author:Glede */
/*-------------------------------------------------------------------------*/
/******************************************************************************
NAME : Main.c
FUNCTION: transmit a byte or receive a byte when the LIN-UART operates in
asynchronous mode (mode 0).
******************************************************************************/
#include "mb95200.h"
/******************************************************************************
NAME : UART_init ()
FUNCTION: Initialize the LIN-UART in operation mode 0(asynchronous mode)
*********************************************************
介绍了LIN-UART的各种功能和工作模式并给出了样本代码。LIN-UART具有4个工作模式。工作模式0是异步模式(正常模式) 工作模式1是异步(多处理器模式) 工作模式2是同步模式(正常模式) 工作模式3是异步模式(LIN模式)。-/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU*/
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR*/
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics (Shanghai) Co., LTD. */
/* Date:20080320 Version:1V0 Author:Glede */
/*-------------------------------------------------------------------------*/
/******************************************************************************
NAME : Main.c
FUNCTION: transmit a byte or receive a byte when the LIN-UART operates in
asynchronous mode (mode 0).
******************************************************************************/
#include "mb95200.h"
/******************************************************************************
NAME : UART_init ()
FUNCTION: Initialize the LIN-UART in operation mode 0(asynchronous mode)
*********************************************************
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lin-Uart-500006
...............\LIN_Master
...............\..........\Debug
...............\..........\.....\ABS
...............\..........\.....\...\LIN_Master.abs
...............\..........\.....\LIN_Master.sup
...............\..........\.....\LST
...............\..........\.....\...\LIN_Master.mp1
...............\..........\.....\OBJ
...............\..........\.....\...\main.obj
...............\..........\.....\...\main.stk
...............\..........\.....\...\mb95200.obj
...............\..........\.....\...\startup.obj
...............\..........\.....\...\vectors.obj
...............\..........\.....\...\vectors.stk
...............\..........\.....\...\_f2mc8fx.obj
...............\..........\.....\...\_f2mc8fx.stk
...............\..........\.....\OPT
...............\..........\.....\...\LIN_Master.opa
...............\..........\.....\...\LIN_Master.opb
...............\..........\.....\...\LIN_Master.opc
...............\..........\.....\...\LIN_Master.opl
...............\..........\.....\...\LIN_Master.opv
...............\..........\LIN_Master.dat
...............\..........\LIN_Master.prj
...............\..........\LIN_Master.wsp
...............\..........\src
...............\..........\...\ioreg.txt
...............\..........\...\ioregj.txt
...............\..........\...\ioregj_a.txt
...............\..........\...\ioreg_a.txt
...............\..........\...\main.c
...............\..........\...\MB95200.h
...............\..........\...\mb95200_a.inc
...............\..........\...\startup.asm
...............\..........\...\vectors.c
...............\..........\...\_f2mc8fx.c
...............\..........\...\_f2mc8fx.h
...............\..........\...\_f2mc8fx_a.asm
...............\LIN_Slave
...............\.........\Debug
...............\.........\.....\ABS
...............\.........\.....\...\LIN_Slave.abs
...............\.........\.....\LST
...............\.........\.....\...\LIN_Slave.mp1
...............\.........\.....\OBJ
...............\.........\.....\...\main.obj
...............\.........\.....\...\main.stk
...............\.........\.....\...\mb95200.obj
...............\.........\.....\...\startup.obj
...............\.........\.....\...\vectors.obj
...............\.........\.....\...\vectors.stk
...............\.........\.....\...\_f2mc8fx.obj
...............\.........\.....\...\_f2mc8fx.stk
...............\.........\.....\OPT
...............\.........\.....\...\LIN_Slave.opa
...............\.........\.....\...\LIN_Slave.opb
...............\.........\.....\...\LIN_Slave.opc
...............\.........\.....\...\LIN_Slave.opl
...............\.........\.....\...\LIN_Slave.opv
...............\.........\LIN_Slave.dat
...............\.........\LIN_Slave.prj
...............\.........\LIN_Slave.wsp
...............\.........\src
...............\.........\...\ioreg.txt
...............\.........\...\ioregj.txt
...............\.........\...\ioregj_a.txt
...............\.........\...\ioreg_a.txt
...............\.........\...\main.c
...............\.........\...\MB95200.h
...............\.........\...\mb95200_a.inc
...............\.........\...\startup.asm
...............\.........\...\vectors.c
...............\.........\...\_f2mc8fx.c
...............\.........\...\_f2mc8fx.h
...............\.........\...\_f2mc8fx_a.asm
...............\LIN_UART_Asyn
...............\.............\Debug
...............\.............\.....\ABS
...............\.............\.....\...\LIN_UART_Asyn.abs
...............\.............\.....\LIN_UART_Asyn.sup
...............\.............\.....\LST
...............\.............\.....\...\LIN_UART_Asyn.mp1
...............\.............\.....\OBJ
...............\.............\.....\...\main.obj
...............\.............\.....\...\main.stk
...............\.............\.....\...\mb95200.obj
...............\.............\.....\...\startup.obj
...............\.............\.....\...\vectors.obj
...............\.............\.....\...\vectors.stk
...............\.............\.....\...\_f2mc8fx.obj
...............\.............\.....\...\_f2mc8fx.stk
...............\.............\.....\OPT
...............\.....
...............\LIN_Master
...............\..........\Debug
...............\..........\.....\ABS
...............\..........\.....\...\LIN_Master.abs
...............\..........\.....\LIN_Master.sup
...............\..........\.....\LST
...............\..........\.....\...\LIN_Master.mp1
...............\..........\.....\OBJ
...............\..........\.....\...\main.obj
...............\..........\.....\...\main.stk
...............\..........\.....\...\mb95200.obj
...............\..........\.....\...\startup.obj
...............\..........\.....\...\vectors.obj
...............\..........\.....\...\vectors.stk
...............\..........\.....\...\_f2mc8fx.obj
...............\..........\.....\...\_f2mc8fx.stk
...............\..........\.....\OPT
...............\..........\.....\...\LIN_Master.opa
...............\..........\.....\...\LIN_Master.opb
...............\..........\.....\...\LIN_Master.opc
...............\..........\.....\...\LIN_Master.opl
...............\..........\.....\...\LIN_Master.opv
...............\..........\LIN_Master.dat
...............\..........\LIN_Master.prj
...............\..........\LIN_Master.wsp
...............\..........\src
...............\..........\...\ioreg.txt
...............\..........\...\ioregj.txt
...............\..........\...\ioregj_a.txt
...............\..........\...\ioreg_a.txt
...............\..........\...\main.c
...............\..........\...\MB95200.h
...............\..........\...\mb95200_a.inc
...............\..........\...\startup.asm
...............\..........\...\vectors.c
...............\..........\...\_f2mc8fx.c
...............\..........\...\_f2mc8fx.h
...............\..........\...\_f2mc8fx_a.asm
...............\LIN_Slave
...............\.........\Debug
...............\.........\.....\ABS
...............\.........\.....\...\LIN_Slave.abs
...............\.........\.....\LST
...............\.........\.....\...\LIN_Slave.mp1
...............\.........\.....\OBJ
...............\.........\.....\...\main.obj
...............\.........\.....\...\main.stk
...............\.........\.....\...\mb95200.obj
...............\.........\.....\...\startup.obj
...............\.........\.....\...\vectors.obj
...............\.........\.....\...\vectors.stk
...............\.........\.....\...\_f2mc8fx.obj
...............\.........\.....\...\_f2mc8fx.stk
...............\.........\.....\OPT
...............\.........\.....\...\LIN_Slave.opa
...............\.........\.....\...\LIN_Slave.opb
...............\.........\.....\...\LIN_Slave.opc
...............\.........\.....\...\LIN_Slave.opl
...............\.........\.....\...\LIN_Slave.opv
...............\.........\LIN_Slave.dat
...............\.........\LIN_Slave.prj
...............\.........\LIN_Slave.wsp
...............\.........\src
...............\.........\...\ioreg.txt
...............\.........\...\ioregj.txt
...............\.........\...\ioregj_a.txt
...............\.........\...\ioreg_a.txt
...............\.........\...\main.c
...............\.........\...\MB95200.h
...............\.........\...\mb95200_a.inc
...............\.........\...\startup.asm
...............\.........\...\vectors.c
...............\.........\...\_f2mc8fx.c
...............\.........\...\_f2mc8fx.h
...............\.........\...\_f2mc8fx_a.asm
...............\LIN_UART_Asyn
...............\.............\Debug
...............\.............\.....\ABS
...............\.............\.....\...\LIN_UART_Asyn.abs
...............\.............\.....\LIN_UART_Asyn.sup
...............\.............\.....\LST
...............\.............\.....\...\LIN_UART_Asyn.mp1
...............\.............\.....\OBJ
...............\.............\.....\...\main.obj
...............\.............\.....\...\main.stk
...............\.............\.....\...\mb95200.obj
...............\.............\.....\...\startup.obj
...............\.............\.....\...\vectors.obj
...............\.............\.....\...\vectors.stk
...............\.............\.....\...\_f2mc8fx.obj
...............\.............\.....\...\_f2mc8fx.stk
...............\.............\.....\OPT
...............\.....