Keil Development Tools

We will be using BOTH the SDCC and Keil C language 8051 development tools for ECP 2 Class. 

To download Keil 8051 Compiler and IDE Evaluation Software

This an older version which **does** work with the SDK:

 http://hte.com/uconline/ecp/ek51v612s.exe  ß DOWNLOAD THIS FILE FOR USE WITH THE SDK!

The current evaluation for the commercial version is available on the Keil Home Page

NOTE: The current (uVision 3) evaluation version NO LONGER SUPPORTS THE SDK!!

Direct link to the Keil C51 Download Page (at least util they change it again…)

 


Keil Manuals C51 C Compiler Manual  - This file is referenced by page number in the slides – new versions have different page #s.

A51 Assembler
Utilities - Linker,Library Manager, File Converters
Getting Started with uVision 2
Using the Tiny 8051 RTOS
 


Keil App Notes Starting Your Code at an Address other than 0000h (for SDK)

C51 Memory Utilization (pdf file)

Setting up Interrupt Vectors in C (pdf file)

Relocating 8051 Programs (pdf file)

Using a Timer Tick Clock (pdf file)

Using Function Pointers (pdf file)

The OMF Object File Format (word document)

 


Keil Sample Code Implementing an Interrupt Driven Serial Port with Printf

 This example program shows you how to use the printf library routine with  interrupt-driven serial I/O.  Interrupt-driven serial outines are included along  with a demo program to printf and getchar some stuff.  You can also use scanf  with these routines. Serial I/O is handled in a separate file (SIO.C) that you can use in your own programs.  Works with any 8051.  Ring buffers are located in XDATA but it is easy to locate them anywhere. The file is a self extracting zip file.

Print Semaphore Example with RTX51

Printf Semaphore Example with RTX51.  This example project shows how to use semaphores to protect a non-reentrant  function like printf.  In this example printf is called from multiple tasks.  A binary semaphore is used to insure exclusive access to the printf function.  This file is a self extracting zip file.

If you have comments or suggestions, email me at ecp2_AT_hte.com