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

📄 readme.txt

📁 芯科原厂所有c8051fxx程序的例子。
💻 TXT
字号:
-------------------------------------------------------------------------------
 Readme.txt
-------------------------------------------------------------------------------

Copyright 2006 Silicon Laboratories, Inc.
http://www.silabs.com

Program Description:
-------------------

This example program uses the static LIN API to send and receive signals that
control the LED's on one or two C8051F530 Target Boards. The example network
works with one master and one to three slaves. It can be modified to meet the
requirements of the user application.

Project Note:
------------

This project is organized such that it is can be easily modified to meet the
requirements of the user's LIN application. The following changes should be
made to the project files:

1. LIN.h:
   a. Define the system clock frequency (SYSCLK).
   b. Define LIN_MODE as LIN_MASTER or LIN_SLAVE.
   c. If MASTER_MODE is used, define the LIN bit rate (LIN_BIT_RATE) and system
      tick frequency (FREQUENCY_SYSTEM_TICK).

2. LIN_Frame_Management.c:
   a. Modify application_frame_descriptor[] to hold definitions for frames that
      will be transmitted in the user application. Do not modify
      diagnostic_frame_descriptor[].
   b. If in MASTER_MODE, define all necessary schedules (data type l_schedule).
      Do not modify diagnostic_master_request_schedule[].

3. LIN_Signal.c:
   a. Define all signals and associated flags to be transmitted across the LIN
      bus.
   b. Create functions to read and write all signals and associated flags.
   c. Modify l_get_tx_frame_data () to load frame_data[] with the data to send
      based on frame_id.
   d. If there are any sporadic frames in the system, modify 
      l_get_sporadic_frame_id () to return the highest priority signal for
      a frame with ID frame_id.
   e. Modify l_tx_complete () to set flags associated with signals transmitted
      in frame frame_id.
   f. Modify l_process_rx_frame_data () to take the received data from
      frame_data[] and load it into the correct signals based on frame_id.

4. LIN_ISR.c:
   a. Modify the Wake-up Request section to perform any functions that should
      be performed when the device receives a wake-up signal.
   b. If in MASTER_MODE, modify the call to l_sch_set_std_ifc () to point to
      the desired schedule.

5. LIN_Main.c:
   a. Add application code.
   b. If in MASTER_MODE, modify any call(s) to l_sch_set_std_ifc () to point to
      the desired schedule.

How To Test:
-----------

1)  Open the project file LIN_API_Static.wsp.  
2)  In LIN.h, select MASTER_MODE and build the code.
3)  Download the code to one of the C8051F530-AT devices on the C8051F530
    Target Board.
4)  In LIN.h, select SLAVE_MODE and build the code.
5)  In LIN_Main.h, set LIN_SLAVE_ID to LIN_SLAVE_ID_0.
6)  Download the code to the other C8051F530-AT device on the C8051F530 Target
    Board.
7)  If you wish to add another target board to the system, build the project
    with LIN_SLAVE_ID set to LIN_SLAVE_ID_1 and LIN_SLAVE_ID_2, and download
    those images to the devices on the target board.
8)  Disconnect so all devices in the network are running.
9)  Pressing the switch connected to the master will toggle the LED connected to
    LIN_SLAVE_ID_0. The next time it is pressed, LIN_SLAVE_ID_1's LED toggles.
    The next time, LIN_SLAVE_ID_2's LED toggles.
10) Pressing the switch connected to any of the slaves will cause the master's
    LED to toggle.

Known Issues and Limitations:
----------------------------
	
1) Firmware works with the Silicon Labs IDE v2.83 or later and the 
   Keil C51 tool chain. Project and code modifications will be 
   necessary for use with different tool chains.

2) Place jumpers on target board to connect the LEDs and switches.

	

Target and Tool Chain Information:
---------------------------------

Target:         C8051F52xA / C8051F53xA
Tool chain:     Keil C51 7.50 / Keil EVAL C51
                Silicon Laboratories IDE version 2.83
Project Name:   LIN_API


Command Line Options:
--------------------

Assembler : Default
Compiler  : Default
Linker    : Default 


File List:
---------

LIN.h
LIN_Signal.c
LIN_Signal.h
LIN_Defs.h
LIN_Diagnostic.c
LIN_Diagnostic.h
LIN_Driver.c
LIN_Driver.h
LIN_Frame_Management.c
LIN_Frame_Management.h
LIN_Init.c
LIN_Init.h
LIN_Interface.c
LIN_Interface.h
LIN_ISR.c
LIN_ISR.h
LIN_Main.c
LIN_Main.h
ReadMe.txt (this file)


Release Information:
-------------------
	        
Version 1.00
	Initial release (JM).
        ?? ??? 200?


-------------------------------------------------------------------------------
 End Of File
-------------------------------------------------------------------------------

⌨️ 快捷键说明

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