Bascom-Programming_Microcontrollers_With_Ease.pdf
(
2277 KB
)
Pobierz
BASCOM Programming of Microcontrollers with Ease: An Introduction by Program Examples
Claus Kuhnel
BASCOM
Programming of
Microcontrollers with Ease
An Introduction
by Program Examples
BASCOM Programming of Microcontrollers with Ease:
An Introduction by Program Examples
Copyright ¨ 2001 Claus Kuhnel
All rights reserved. No part of this work may be reproduced in any
form except by written permission of the author.
All rights of translation reserved.
Publisher and author assume no responsibility for any errors that
may arise from the use of devices and software described in this
book.
Universal Publishers/uPUBLISH.com
USA ¤ 2001
ISBN: 1-58112-671-9
www.upublish.com/books/kuhnel.htm
Preface
The microcontroller market knows some well introduced 8-bit micro-
controller families like Intel's 8051 with its many derivatives from
different manufacturers, Motorola's 6805 and 68HC11, Microchip's
PICmicros and Atmel's AVR.
The 8051 microcontroller family has been well-known over many
years. The development of new derivatives is not finished yet. From
time to time new powerful derivatives are announced.
You will find derivatives from Philips, Dallas, Analog Devices and
Cygnal and others with the known 8051 core but enhanced clock and
peripherals. For example, complete analog-to-digital and digital-to-
analog subsystems were integrated in some chips.
Atmel developed the AVR microcontroller family which is well suited
for high-level language programming and in-system programming.
For all those microcontrollers there is development software ranging
from simple assemblers for DOS to integrated development envi-
ronments for Windows95/98/NT on the market.
Apart from programming environments as they are offered, for ex-
ample, by KEIL, IAR or E-LAB Computer for professional applica-
tions, also the more economical and nonetheless sufficiently
equipped development environments can maintain ground.
BASCOM-8051 and BASCOM-AVR are development environments
built around a powerful BASIC compiler which is suited for project
handling and program development for the 8051 family and its de-
rivatives as well as for the AVR microcontrollers from Atmel.
The programming of microcontrollers using BASCOM-8051 (version
2.0.4.0) and BASCOM-AVR (version 1.11.3.0) will be described in
this book.
Some applications help understand the usage of BASCOM-8051 and
BASCOM-AVR.
3
Acknowledgement
I should like to thank the following:
•
in the first place, Mark Alberts of MCS Electronics, who developed
the BASCOM programming environment at an outstanding price-
performance ratio,
•
Atmel for the development of the AVR RISC microcontrollers
which introduced new capabilities into the microcontroller families,
•
Christer Johansson of High Tech Horizon, who supports safe
communication of microcontrollers and PC by the development
and free distribution of the S.N.A.P. protocol and the necessary
tools effectively and
•
Lars Wictorsson of LAWICEL for the development of the
CANDIPs, microcontroller modules with CAN interface.
4
Contents
1 Supported Microcontrollers ............................................................. 9
1.1 8051 Family .............................................................................. 9
1.2 AVR Family............................................................................. 11
2 BASCOM....................................................................................... 23
2.1 BASCOM Demos.................................................................... 23
2.2 BASCOM Commercial Versions............................................. 25
2.3 Update of BASCOM Commercial Versions ............................ 25
2.4 BASCOM Projects .................................................................. 27
2.4.1 Working on Projects ........................................................ 27
2.4.2 BASCOM Options ............................................................ 28
2.5 BASCOM Tools ...................................................................... 37
2.5.1 Simulation ........................................................................ 37
2.5.2 Terminal Emulator ........................................................... 40
2.5.3 LCD Designer .................................................................. 42
2.5.4 Library Manager ............................................................... 46
2.5.5 Programming Devices ..................................................... 50
2.6 Hardware for AVR RISC Microcontroller ................................ 55
2.6.1 DT006 AVR Development Board ..................................... 55
2.6.2 AVR-ALPHA with AT90S2313 ......................................... 56
2.7 Instead of "Hello World".......................................................... 57
2.7.1 AVR.................................................................................. 57
2.7.2 8051 ................................................................................. 58
2.7.3 Things in Common........................................................... 59
2.7.4 Simulation ........................................................................ 64
2.8 BASCOM Help System........................................................... 67
3 Some BASCOM Internals ............................................................. 69
3.1 Building new instructions ........................................................ 69
5
Plik z chomika:
Trev
Inne pliki z tego folderu:
CadSoft-Eagle-Professional-6.4.0-+-patch,manual.zip
(43395 KB)
AVR_Studio_5.0_installer_full_5.0.1223(1).exe
(620055 KB)
AVR_Studio_5.0_installer_full_5.0.1223.exe
(620055 KB)
Install_VMLAB315.exe
(4490 KB)
Pspice - komputerowa symulacja układów elektronicznych - Jacek Izydorczyk.pdf
(3248 KB)
Inne foldery tego chomika:
● ArcGIS 10 PL FULL ●
ArcGIS
ArcGIS Deskop 10 SP1 PL
Astronomia
bajki
Zgłoś jeśli
naruszono regulamin