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

📄 build_notes.txt

📁 C89c51 usb驱动程序,实现了usb转串口的功能,提供了一个虚拟的串口
💻 TXT
字号:
                  BUILD NOTES for ALERT / EVAL_C5131 FIRMWARE

----------------------------------------------------------------------------------
                  *** HI-TIDE compiler/linker environment ***
----------------------------------------------------------------------------------

Eval_c5131 code is built using the Hi-Tech C-8051 compiler/linker running under
"HI-TIDE", a Windows-based IDE (Integrated Development Environment) package.
Eval_c5131 firmware was developed using Hi-Tech C 8051 V9.01 with HI-TIDE V2.13.

The free trial version of Hi-Tech C-8051 can be used to build eval_c5131.
(Note: There may be a time-limit imposed on usage of the trial version.)

Install HI-TIDE on your PC hard disk with all default options.

Create a working directory on your local drive, e.g: C:\Hitech_C_work,
and copy all your project source files (*.c, *.h) to it.

START UP THE HI-TIDE APPLICATION and follow these 3 steps for first time use...

1. If Hi_tide starts up with an existing project, e.g. the included demo project,
   close it (Project menu: Close Project).

2. Select the "New Project" wizard (from Project menu) to create your project file.
   A dialogue box titled "Create New Project" should pop up.
   Fill in the fields as shown below...

   Project Name: eval_c5131  (or whatever name you choose)
   Project location: C:\Hitech_C_work  (Browse to your working directory)
   Next
   Select Tool suite: 8051-C
   Next
   Select Device:  AT89C5131  (VERY IMPORTANT!)
   Next
   Select Package Type:  PLCC
   Next
   Select Debugger: No Debugger  (VERY IMPORTANT!)
   Next
   Add Source Files To Project:
   Click on ADD button
   Select all C source files  (e.g. 4 x eval_*.c + 3 x usb_*.c)
   Finish

3. From the menu bar, select  Build : Build All

The compiler will build a hex object file: "eval_c5131.hex" for loading into
your target board via USB using the Atmel FLIP tool.

Next time you run HI-TIDE, simply choose from Project menu: Recent Projects,
and select your project file to be opened. Then rebuild as above.

Hi-Tide generates a start-up module automatically.

Ensure the project is configured as follows, if you have made changes:

Compiler:   Small memory model
Compiler:   Global optimisation enabled, level 9 (optional)
Memory:     Enable on-chip ranges (Program & Data)
Linker:     all defaults
Debugger:   *** NONE ***
Simulator:  *** NONE ***

----------------------------------------------------------------------------------

AT89c5131 MCU program code loading:
 
The device is programmed via the USB interface, using Atmel's "FLIP" ISP tool.
The on-chip USB bootloader is invoked by holding down the ISP button while 
resetting the MCU. (Asserts PSEN' during MCU reset). Release RESET first, then 
the ISP button.
It may be necessary to "detach" the USB connection, then re-attach it, to get FLIP
to recognise the USB bootloader as the newly attached device.
Refer to FLIP documentation, USB bootloader info (PDF) and MCU datasheet (PDF),
all available from Atmel's website.

----------------------------------------------------------------------------------
MJB July 2006                                         email: mjbauer@hotkey.net.au
----------------------------------------------------------------------------------

⌨️ 快捷键说明

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