PIC18_USART1_Demo
所属分类:其他嵌入式/单片机内容
开发工具:matlab
文件大小:29KB
下载次数:16
上传日期:2011-10-24 09:58:44
上 传 者:
dpg_dcm
说明: PIC18F85J11 单片机通信程序,主要应用于RS232、RS485通信。
(PIC18F Micro Control Unit communication program。User RS232、RS485 communication。)
文件列表:
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.cof (21499, 2011-10-22)
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.hex (2276, 2011-10-22)
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.map (65148, 2011-10-22)
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.mcp (1165, 2011-10-22)
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.mcs (2213, 2011-10-22)
PIC18_USART1_Demo\P18F85J11_USART1_DEMO.mcw (78848, 2011-10-22)
PIC18_USART1_Demo\usart.h (17745, 2011-10-22)
PIC18_USART1_Demo\usart1_demo.c (18773, 2011-10-22)
PIC18_USART1_Demo\usart1_demo.c.bak (18715, 2011-10-22)
PIC18_USART1_Demo\usart1_demo.o (12702, 2011-10-22)
PIC18_USART1_Demo (0, 2011-10-22)
Readme File for Code Example: USART
-----------------------------------------------------------------------------------------
This file contains the following sections:
1. Code Example Description
2. Folder Contents
3. Suggested Development Resources
4. Reconfiguring the project for a different PIC18F device
5. Revision History
NOTE: The example code makes use of Peripheral Library support available with MCC18.
1. Code Example Description:
----------------------------
In this code example, the USART module of the PIC18F4685 is used to communicate with
Hyperterminal on a host PC. The code sends and receives the data to and from the PC. Hardware
details with respective signals on corresponding pins on device are as described below. The RS232
connector on the PICDEM2+ board is used to connect device with computer.
2. Folder Contents:
-------------------
This project refers to the following sub-folders:
a. C:\MCC18\bin\LKR
This folder will have the device LKR file, it is used for building the project.
This file was provided with the MCC18 toolsuite.
b. C:\MCC18\h
This folder contains C header files useful in building this
project. Device register and bit definitions are provided in
the *.h file that follows the device name. These files were provided
with the MCC18 toolsuite. The peripheral library header files contain
the macro definition & API prototypes.
c. C:\MCC18\lib
This folder contains library archive files, which are a
collection of precompiled object files. The ".LIB" file for the device
contains the C run-time, start-up & Peripheral library. These files were
provided with the MCC18 toolsuite.
d. C:\MCC18\src
This folder contains all the C ,Assembler, and Peripheral library source
files (*.c, *.s) used in demonstrating the example.
e. C:\MCC18\doc
This folder contains the Peripheral Library documentation for all modules.
3. Suggested Development Resources:
-----------------------------------
a. MPLAB IDE with MCC18 v3.30 or above
b. PIC DEM 2+ Development Board with PIC18F4685 controller
4. Reconfiguring the project for a different PIC18F device:
-------------------------------------------------------------
The Project/Workspace can be easily reconfigured for any PIC18F device.
Please use the following general guidelines:
a. Change device selection within MPLAB IDE to a PIC18F device of
your choice by using the following menu option:
MPLAB IDE>>Configure>>Select Device
b. To configure the device settings, either configure the necessary
settings from the menu option:
MPLAB IDE>>Configure>>"Configuration bits"
OR use the corresponding configuration macros to be added into
the code. Configuration macros can be obtained from device ".INC"
file at the following default location:
"C:\MCC18\mpasm"
These macros can be added as depicted in example code.
c. Re-build the MPLAB project using the menu option:
MPLAB IDE>>Project>>Build All
d. Download the hex file into the device and run.
5. Revision History :
---------------------
04/04/2009 - Initial Release of the Code Example
近期下载者:
相关文件:
收藏者: