ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 12.06.2025

Просмотров: 8138

Скачиваний: 1

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

Version 1.11.8.6

© MCS Electronics, 1995-2007

© MCS Electronics, 1995-2007

page -2-

© MCS Electronics, 1995-2007

Dear reader.

Thank you for your interest in BASCOM.

BASCOM was "invented" in 1995. It was intended for personal usage only. I decided to make it public as I found no othertool that was so simple to use. Since that time, a lot of options and extensions were added. Without the help and patience of the many users, BASCOM would not be what it is today : "the best and most affordable tool for fast proto typing".

We hope that BASCOM will contribute in making yourwork with microprocessors Easy and enjoyable.

While there is not enough space to mention all contributors, ther is one that must be mentioned : Josef Franz Vögel. He wrote the Trig libraries, the AVR-DOS file system and the DOUBLE library.

The MCS Electronics Team

page -3-

© MCS Electronics, 1995-2007

Table of Contents

Index

15

Keyword Reference

16

Installation

20

Installation of BASCOM

20

BASCOM IDE

26

Running BASCOM-AVR

26

File New

28

File Open

29

File Close

29

File Save

29

File Save As

29

File Print Preview

30

File Print

30

File Exit

30

View PinOut

30

View PDF viewer

35

View Error Panel

36

Edit Undo

37

Edit Redo

37

Edit Cut

37

Edit Copy

37

Edit Paste

37

Edit Find

38

Edit Find Next

38

Edit Replace

38

Edit Goto

38

Edit Toggle Bookmark

38

Edit Goto Bookmark

38

Edit Indent Block

39

Edit Unindent Block

39

Edit Remark Block

39

Program Compile

39

Program Syntax Check

40

Program Show Result

41

Program Simulate

42

Program Send to Chip

52

Tools Terminal Emulator

55

Tools LCD Designer

56

Tools LIB Manager

57

Tools Graphic Converter

59

Tools Stack Analyzer

60

Tools Plugin Manager

60

Tools Batch Compile

61

Options Compiler

63

Options Compiler Chip

64

Options Compiler Output

65

Options Compiler Communication

66

page -4-


© MCS Electronics, 1995-2007

Options Compiler I2C, SPI, 1WIRE

67

Options CompilerLCD

68

Options Communication

69

Options Environment

70

Options Simulator

73

Options Programmer

74

Supported Programmers

76

ISP programmer

76

PG302 programmer

77

Sample Electronics cable programmer

78

KITSRUS Programmer

79

MCS Universal Interface Programmer

80

STK500 Programmer

82

Lawicel BootLoader

84

AVR ISP Programmer

84

USB-ISP Programmer

85

MCS Bootloader

89

Options Monitor

91

Options Printer

91

Window Cascade

92

Window Tile

92

Window Arrange Icons

92

Window Minimize All

92

Help About

92

Help Index

94

Help MCS Forum

94

Help MCS Shop

95

Help Support

96

Help Knowledge Base

96

Help Credits

97

BASCOM Editor Keys

98

Program Development Order

99

PlugIns

100

Font Editor

100

PinOut

101

BASCOM HARDWARE

102

Additional Hardware

102

AVR Internal Hardware

102

AVR Internal Registers

103

AVR Internal Hardware TIMER0

105

AVR Internal Hardware TIMER1

106

AVR Internal Hardware Watchdog timer

108

AVR Internal Hardware Port B

109

AVR Internal Hardware Port D

110

Adding XRAM

111

Attaching an LCD Display

112

Memory usage

113

Using the UART

115

Using the I2C protocol

121

Using the 1 WIRE protocol

127

page -5-


© MCS Electronics, 1995-2007

Using the SPI protocol

130

Power Up

137

Chips

139

AT86RF401

139

AT90S1200

139

AT90S2313

139

AT90S2323

140

AT90S2333

140

AT90S2343

141

AT90S4414

142

AT90S4433

143

AT90S4434

144

AT90S8515

145

AT90S8535

146

AT90CAN128

147

ATtiny22

148

ATtiny12

149

ATtiny13

149

ATtiny15

149

ATtiny25

149

ATtiny45

150

ATtiny85

150

ATtiny26

150

ATtiny2313

151

ATMEGA8

152

ATMEGA16

152

ATMEGA32

153

ATMEGA48

154

ATMEGA88

155

ATMEGA168

155

ATMEGA64

156

ATMEGA103

157

ATMEGA128

158

ATMEGA161

159

ATMEGA162

160

ATMEGA163

161

ATMEGA165

162

ATMEGA169

162

ATMEGA323

163

ATMEGA603

164

ATMEGA2560

166

ATMEGA2561

167

ATMEGA8515

167

ATMEGA8535

168

BASCOM Language Fundamentals

169

Changes compared to BASCOM-8051

169

Language Fundamentals

170

Mixing ASM and BASIC

182

Assembler mnemonics

187

Reserved Words

192

page -6-


© MCS Electronics, 1995-2007

Error Codes

193

Newbie problems

197

Tips and tricks

198

ASCII chart

199

BASCOM Language Reference

202

$ASM

202

$BAUD

202

$BAUD1

203

$BGF

204

$BOOT

206

$CRYSTAL

207

$DATA

207

$DBG

209

$DEFAULT

211

$EEPLEAVE

212

$EEPROM

212

$EEPROMHEX

213

$EXTERNAL

214

$FRAMESIZE

215

$HWSTACK

216

$INC

217

$INCLUDE

218

$INITMICRO

219

$LCD

220

$LCDPUTCTRL

222

$LCDPUTDATA

223

$LCDRS

224

$LCDVFO

227

$LIB

227

$LOADER

230

$LOADERSIZE

235

$MAP

236

$NOCOMP

237

$NOINIT

237

$NORAMCLEAR

238

$PROG

238

$PROGRAMMER

240

$REGFILE

241

$ROMSTART

242

$SERIALINPUT

242

$SERIALINPUT1

244

$SERIALINPUT2LCD

245

$SERIALOUTPUT

245

$SERIALOUTPUT1

246

$SIM

247

$SWSTACK

247

$TIMEOUT

248

$TINY

250

$WAITSTATE

251

$XA

252

page -7-


© MCS Electronics, 1995-2007

$XRAMSIZE

252

$XRAMSTART

253

1WIRECOUNT

254

1WRESET

256

1WREAD

259

1WSEARCHFIRST

261

1WSEARCHNEXT

263

1WVERIFY

265

1WWRITE

267

ABS

270

ACOS

270

ALIAS

271

ASC

272

ASIN

275

ATN

276

ATN2

277

BASE64DEC

278

BASE64ENC

279

BAUD

280

BAUD1

281

BCD

282

BIN

284

BINVAL

285

BIN2GRAY

286

BITWAIT

287

BITS

288

BLOAD

289

BOX

290

BSAVE

292

BUFSPACE

293

BYVAL

294

CALL

294

CHECKSUM

296

CHR

297

CIRCLE

298

CLEAR

301

CLS

302

CLOCKDIVISION

304

CLOSE

305

CLOSESOCKET

308

CONFIG

311

CONFIG 1WIRE

312

CONFIG ACI

314

CONFIG ADC

315

CONFIG ATEMU

316

CONFIG BCCARD

319

CONFIG CLOCK

321

CONFIG CLOCKDIV

324

CONFIG COM1

325

CONFIG COM2

327

page -8-