TASKING_LED
所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:138KB
下载次数:7
上传日期:2010-03-20 07:51:56
上 传 者:
Leeonestar
说明: LED Test S/W for ST10F276
文件列表:
TASKING_LED (0, 2009-12-15)
TASKING_LED\appcfg.bak (1768, 2005-04-01)
TASKING_LED\appcfg.h (1768, 2005-12-05)
TASKING_LED\cdoc.exe (69632, 2005-06-29)
TASKING_LED\common.h (11676, 2005-09-26)
TASKING_LED\createdoc.bat (317, 2005-12-05)
TASKING_LED\doc (0, 2008-03-03)
TASKING_LED\main.c (1540, 2005-06-21)
TASKING_LED\main.lst (9397, 2009-12-15)
TASKING_LED\main.obj (1476, 2009-12-15)
TASKING_LED\main.src (4424, 2009-12-15)
TASKING_LED\ports.h (22164, 2005-02-28)
TASKING_LED\srcdoc (0, 2008-03-03)
TASKING_LED\srcdoc\main.c.html (5384, 2005-12-05)
TASKING_LED\st10f269_tasking80_cfg_1_debugger.opt (148593, 2005-12-05)
TASKING_LED\start.asm (3243, 2009-12-15)
TASKING_LED\start.lst (63948, 2009-12-15)
TASKING_LED\start.obj (1730, 2009-12-15)
TASKING_LED\start.src (29469, 2009-12-15)
TASKING_LED\tasking_led.abs (4554, 2009-12-15)
TASKING_LED\TASKING_LED.bak (6820, 2009-12-15)
TASKING_LED\tasking_led.bld (378, 2009-12-15)
TASKING_LED\TASKING_LED.CS_ (0, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\FILE.CDX (3072, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\FILE.DBF (504, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\FILE.FPT (778, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\SYMBOL.CDX (41472, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\SYMBOL.DBF (24539, 2009-12-15)
TASKING_LED\TASKING_LED.CS_\SYMBOL.FPT (30206, 2009-12-15)
TASKING_LED\tasking_led.cws (3166, 2005-12-09)
TASKING_LED\tasking_led.err (450, 2009-12-15)
TASKING_LED\tasking_led.hex (3036, 2009-12-15)
TASKING_LED\tasking_led.mak (3693, 2009-12-15)
TASKING_LED\tasking_led.map (6887, 2009-12-15)
TASKING_LED\tasking_led.opm (153, 2009-12-15)
TASKING_LED\tasking_led.out (5504, 2009-12-15)
TASKING_LED\TASKING_LED.pjt (6820, 2009-12-15)
TASKING_LED\TASKING_LED.sbl (2115, 2009-12-15)
TASKING_LED\time2timeout.exe (8192, 2005-06-21)
TASKING_LED\timeout.c (6510, 2005-02-28)
... ...
ST10F26x demo example
=====================
Project : TASKING_LED.pjt
Developping tool : TASKING EDE v8.0 r1 (C166 compiler Build 651)
Evaluation board : FS FORTH EVA269 Evaluation Board (ST10F269 MCU)
Crystal : 8 MHz
CLKCFG0 = ON
CLKCFG1 = ON
CLKCFG2 = OFF
fcpu = 8 * 5 = 40 MHz
Execution environment : Simulator (Project Options - CrossView Pro - Execution
Environment - Simulator)
FS FORTH ST10x269 (Project Options - CrossView Pro -
Execution Environment - FS FORTH ST10x269,
Project Options - CrossView Pro - RAM/ROM
Monitor Communication Setup - RS232 - COM? )
Note: if you want to generate working HEX file you will have to enable bit ROMEN
in SYSCON register. Otherwise the generated HEX file will not work when
flashed to ST10 using ST10Flasher and executed.
You can also load correct configuration from file ST10F269_tasking80_cfg_FLASH.opt
Purpose
-------
Blinking onboard LEDs (LE4 - LE7) without using interrupts.
Description
-----------
This is a very simple example for blinking onboard LEDs.
You have to interconnect Port 2 bits 0 - 3 (X1.C.16, X1.D.16, X1.C.17, X1.D.17)
with LEDs LE4 - LE7(X10.5 - X10.8) on the board.
Documentation
-------------
Please see detail ST10F269 information in the ST10F269 USER'S MANUAL.
Focus on :
- Chapter Parallel Ports
Please see also original FS FORTH STart269 Evaluation Kit documentation
for the pins and conectors assignments.
Board switches :
----------------
Jumper J1 :
5-6 ( /CS0 - CSRAM )
7-8 ( /CS1 - CSFLSHA )
Switch S2 :
1 - OFF
2 - OFF
3 - OFF (Single Chip Mode - pin /EA)
4 - OFF
5 - OFF
6 - OFF
7 - OFF
8 - OFF
Switch S3 :
1 - OFF
2 - OFF
3 - OFF
4 - OFF
5 - ON (Bootstrap Mode)
6 - OFF
7 - ON
8 - OFF
Switch S4 :
1 - ON
2 - OFF
3 - OFF
4 - ON
5 - ON
6 - ON
7 - ON
8 - OFF
Files :
-------
start.asm - startup file for hw configuration
main.c - main source file
common.h - extended library files
ports.h
appcfg.h
types.h
timeout.c
timeout.h
Configuration files for EDE ( can be loaded by menu function Project/Load ) :
All the default options for ST10F269 (memory, compiler, linker, locator etc.)
ST10F269_tasking80_cfg_RAM.opt - Configuration for external RAM with monitor
ST10F269_tasking80_cfg_FLASH.opt - Configuration for internal FLASH
(for FLASH version you have to set onboard switch Single Chip to ON and
load program by ST10 Flasher Tool, before reset switch BSL to OFF)
Main TASKING project's options :
--------------------------------
Open or create new project space (*.psp) Menu File-New Project Space or
File-Open Project Space ...
Then Menu File-Configure Project Space-Add existing projects ... ->
select TASKING_LED.pjt. Set as current project.
Now you can open its project options - Project -> Project Options ... :
Next listed options you don't have to change (except RAM/ROM Monitor
Communication Setup according to your used COM port) but is important to
know about them. All appropriate options are already stored in the project
file.
Application->Processor->Processor=ST10x269
Application->Startup->Generate system startup code and add it to project->
checked (Startup code file name: start.asm)
Application->Startup->use ROM/RAM monitor on evaluation board->checked
C Compiler->Debug->Generate high level language debug information->checked
C Compiler->Libraries->Link standard runtime libraries->checked
C Compiler->Libraries->Link MAC optimized run-time libraries->checked
Linker/Locator->Output Format->IEEE-695 and Intel HEX records->checked
Linker/Locator->Memory->Memory Areas (ROM, RAM)
Linker/Locator->Interrupt Vector Table->Generate vector table->checked
CrossView Pro->Execution Environment=FS FORTH ST10x269
CrossView Pro->RAM/ROM Monitor Communication Setup->RS232=COM?,19200->
set your actual COM port
CrossView Pro->Initialization->checked all checkboxes
In addition you can find option files ST10F269_tasking80_cfg_RAM.opt and
ST10F269_tasking80_cfg_FLASH.opt useful for new projects. In this case you
can use Project -> Load Options ...
Following files should be generated in project directory after the Build process:
TASKING_LED.abs - target application for debugger CrossView Pro
TASKING_LED.hex - target application for flasher
TASKING_LED.map - map file from linker
Project source files are managed in the left panel (Project Manager).
近期下载者:
相关文件:
收藏者: