|
RD2 Kit - Learn ANSI C programming for MCU..
Would you like to learn how to program the x51 and other microcontrollers
in the C language? RD2 Kit with 2x40 function examples will help you for
sure..
RD2 is x51 compatible procesor with
64 kB FLASH, 1kB RAM,serial programming, bootloader support.. We made the kit on this processor,
because it will help you to orientate in application’s problems of MCU in language C.
RD2Kit is not for beginner only, it is mainly determinate
for developers experienced in developing aplplications in ASM and they
would pass to higher programming languages..
Start programming using the C language
One can use a lot of platforms for C programming. We have prepared
the RD2 KIT for two of them: SDCC and Keil. This Kit can help you to migrate
from asm code to the C language.
Basic features
Why is RD2 Kit different than others :
-
Simple, cheap and easy Hardware solution
-
The MCU used in the RD2 Kit is standard x51 family, but suitable
for C programming.
-
There are at least 2x 40 function examples demonstrating the basic
principles of C programming of MCU’s.
-
All of the examples are made for Keil and SDCC compiler, which is
availablefree of charge.
-
The applications can be used with other compilers as well.
-
There is a description of differences between the C compilers included.
.
RD2 Kit contains
- Tested PCB board of the RD2 kit.
- Microcontroller T89C51RD2 with the pre-set loader supporting EEPROM and
first functional application..
- CD with needed documentation in PDF, datasheets ..
- Paper version of the starting guide (aprox. 40 pages)..
- Describe 2x 40 example (1x for SDCC and 1x for KEIL) in source codes also
in compiling shape.
- Original Keil CD with installation demo KEIL and lashings another interesting
documentation, demonstration usage and utilities.
Technical parameters HW
-
MCU T89c51RD2 in DIL, Xtal 18,4352 MHz, Led on P1.3
-
RS232 interface with converter on TTL/RS232.
-
Jumper to activation ISP mode programming, support recording application
from PC into FLASH MCU up RS232.
-
Power-reset circuit + RESET button.
-
Stabilizer supply voltage (9-15 V, 200 mA).
-
10-pins LCD connector - for the LCD connection + setting contrast on RD2
Kit.
-
20-pins universal I/O connector with bring out ports P1 and P3.
-
40-pins expansion connector 1:1 with pins MCU (to connect RAM..).
-
DPS size - 90 x 50 mm.
Additional recommended tools
Not included in basic version of the RD2 Kit, but used in some of examples..
-
LCD display 2x16 or 2x20.
-
Power adapter 9-12V - 0,3 A
-
Cable RS232 Cannon 9 to connec toPC.
-
Keyboard 3x4 or 4x4.
-
Dallas 1Wire temperature sensor DS1822
RD2-kit Description
We have made the RD2 Kit for the DIL package of T89c51RD2 only so that
you can substitute another type of the micro quite easily. You can program
several MCU’s with our Kit without a need for special package convertors.
Remember that the RD2 Kit is designed for learning and developing new applications.
Detailed circuit diagram RD2 Kit find in specialized articles RD2 Kit - HW Description
There’s no need of a special programmer
RD2 Kit is a simple and cheap development Kit for quick development of
new applications and learning the C language. The Kit contains a T89c51RD2
microcontroller and basic peripherals. The Kit is programmed using the
ISP programming method. There is a special program called loader in the
RD2 micro, loaded in the internal program memory starting at the address
FC00h. (This is the last 1kB of the internal program memory). The loader
is started by jumping to the address FC00h if a special combination is
set on the pins MOVC, ALE and PSEN is equal to 0. The programming mode
is started by pulling the PSEN pin low and issuing a reset. The PC flasher
communicates with the MCU’s loader and it sends the entire 63kB of HEX
code to the loader. The loader included in the RD2 Kit is fully compatible
with the original one and it can also program the internal data EEPROM
memory.
There’s no need of a special programmer and a lot of cables on your
desktop. You need only one PC, a RD2 Kit, power supply or adapter, a text
editor and a C compiler with HEX output.
Basic parameters of the CPU
-
80C51 CPU
-
64 kB FLASH on chip memory which is programmable by ISP
-
ISP (In-System Programming) a IAP (In-Application
Programming) compatible
-
Software-selectable clock prescaler of 6 to 12 ticks by one cycle (X2
- Mode).
-
Max. frequency 20 Mhz (6 clocks/cycle) or 40 Mhz (12 clocks/cycle),
-
1 kB internal RAM in MOVX. RAM is extended to 64 kB.
-
7 interrupt sources in 4 priority levels
-
4x 8-bit I/O ports, duplex UART.
-
Power Down support.
-
Programmable clock output
-
Second Data pointer DPTR
-
Option to turn off ALE
-
PCA (Programmable Counter Array)
-
2 kB EEPROM that sustains 100 000 writing cycles(T89C51RD2 only)
-
HW Watchdog
-
... For other details of T89c51RD2 see http://www.atmel.com/
or
the T89c51RD2 datasheet on the HW CD
It is described in details, how to learn compiling a first own project
in KEIL and additional in SDCC. So you needn’t linger on too many pages
of user manuals... Project BLIK you can compilate during a few minutes,
others are prepared in executable form and then you can only edit main
examples.
Anything else about C compilers you will find at HW server...
-
What
should the good C language tool look like
If you are going to invest more than a small amount of money, you have
to decide what the tool is going to be used for.
-
C
Compilers for the x51 MCU family
You can use several programming languages for developing the applications
based on x51, such as ASM, C, Pascal, Basic and so on. More than 50% of
developers are still using the classical assembler language, but this is
going to change. Today’s trend of the MCU programming is the use of higher
programming languages such as C..
2x 40 solved examples
The value of this kit are checkout and document examples they will draw
you in a programming world in C.
To help you understand and study basic principles of developing circuits
based on MCU applications with 8051, there are several solved examples
in C language. The examples are designed for the development kit and for
compiling with Keil C51 evaluation version and free SDCC. You should use
ISP programming method to program the RD2 MCU. There is no need to use
extra hardware for programming. Everything needed is on the board of the
RD2 Kit.
There are also HEX files of the examples which were already prepared
from the source codes which you can use directly to program your RD2 Kit
using the Flasher or the original FLIPprogram.
The examples are grouped by topic
Basic programming in C for 89C51RD2
- description of the compiling of a simple program in C language, programming
the MCU using ISP.
Serial Channel
- setting the 8-bit serial communication, functions for writing and
reading data from the serial channel
- using standard functions of the C language: formatted input output
- easy calculator
LCD display 2 x 16 using 4-bit communication protocol
- setting up the 4-bit communication mode, LCD read/write functions
- user defined characters, text shifting and animation
- sending of the instructions to LCD
- redirecting of the standard input/output to the LCD and serial channel
Matrix keyboard 4 x 3
- function for reading, diagnostics with the output to the serial channel
- sharing of the data bus by LCD and keyboard
Interrupt system
- T2 Timer with 16-bit preloading, accessing LED in the interrupt routine
- Real Time Clock using T2 timer
- External interrupt service INT0
Watchdog Timer
- Watchdog Timer manipulation and using Watchdog in Applications
- controlled reset by the Watchdog
Timer Based Programmable Array PCA, Timer T2
- 8-bit Pulse Width Modulation
- Measuring the Pulse Length
- Programmable Pulse Generator .
Program Flash Memory
- checking the integrity of the program code using check sum
- Calling API functions of the user defined loader for working with
the FLASH
- Accessing the XAF memory (eXtra Array Flash)
EEPROM Memory
- EEPROM Memory access, reading/writing EEPROM using Serial Channel
External XRAM Data Memory
- setting up the capacity of the XRAM
- testing memory parts and accessing the XRAM using Serial Channel
Special Processor Function
- switching off the generation of the ALE signal
- Idle Mode, Power-Down Mode
- X2-Mode switching
MCU Diagnostics
- diagnostics of each block
Intermediate usage of the development tools
- Assembler instructions in C language
- compiling to user defined addresses
You can find on RD2Kit CD
With RD2 Kit we supplement 2 CD. On the first are KEIL DEMO and lots of
interesting utilities and applications. On second you can find thereinafter
described utilities and usefull examples bearing on RD2kit..
Folder Datasheets
Datasheets and Errata reports for processors RD2 from Atmel and Philips
Folder Examples
2x 40 examples next share rd2.src.keil and rd2.src.sdcc
where
you can find source code examples and their compiling shapes for Keil and
SDCC.
Folder Flasher
Everything what bear with recording applications into RD2 MCU, installation
FLIP from Atmel, WinISP from Philips and and our RD2 Flasher. As well as
.HEX code modified loader for attendance EEPROM...
Folder sdcc
Instalacion compiler sdcc.2.3.2.win32 and including header file
89c51rd2.h
Folder Sw
All needed utilities and routines (Acrobat Reader, RS232 terminal,
SourceEdit12 a Teraterm)
When you wil install KEIL DEMOVERZI, view the full CD at large. There are
a lot of documentations, about one hundred examples solvings of various
algorithms and PERIFERIE services beside lots of very good presentations
about using an enviroment µVision. You will find here series of header
files for different versions x51 processors, databases of FAQ and other..
Links and datasheets
Contacts
- Do you have any doubts? Call - Phone +420 222 511 918
- You can use Fax as well - Fax +420 222 513 833
- Please, use email from contact page for more specific technical questions.
- All prices and payment conditions can be found on: pricelist.
- We are still looking for distributors ...
|