Table of contents

Top  Previous  Next

Index

Index

Keyword Reference

Changes

 

About MCS

About MCS

Custom Design

Application Notes

 

 

Installation

Installation

Problems and solutions

Updates

Move to a New PC

Installation on multiple computers

 

 

BASCOM-IDE

The BASCOM IDE

 

File

New , Open , Close , Save , Save As , Print Preview , Print , Project, Exit , ZIP

 

 

Edit

Undo , Redo , Cut , Copy , Paste , Find , Find Next , Replace , Goto , Toggle Bookmark , Goto Bookmark , Indent Block , Unindent Block , Encrypt Selected Code , Proper Indent , Show Excluded Code , Insert ASCII , Fold All Subs and Functions, Unfold All Code , Show Dead  Code

 

 

View

PinOut , PDF , Errors , Show Alert Window , Project Files, Code Explorer , Vertical Splitter

 

 

Program

Compile , Syntax Check , Show Result , Simulate , Send to Chip , Reset Chip

 

 

Tools
LIB Manager , Terminal Emulator , LCD Designer , Graphic Converter , Batch Compile , PDF Update , Resource Editor , Stack Analyzer, Plugin Manager , Font Editor

 

Options

Compiler , Compiler Chip , Compiler Output , Compiler Communication , Compiler I2C,SPI,1WIRE , Compiler LCD , Communication , Environment , Simulator , Programmer , Printer, Options Select Settings File

 

Window

Cascade , Tile, Arrange Icons, Minimize All, Maximize All , Tile Vertically

 

 

Help

About , Index, MCS Forum, Support, Knowledge Base , Credits , Wiki , Update

 

 

Editor Keys

 

BASCOM Developing Order

 

BASCOM and Memory

 

BASCOM Error codes

 

Reserved Words

 

 

BASCOM and Hardware

Additional Hardware

 

AVR Internal Hardware

 

AVR Internal Hardware TIMER0

 

AVR Internal Hardware TIMER1

 

AVR Internal Hardware Watchdog timer

 

AVR Internal Hardware PORT B

 

AVR Internal Hardware PORT D

 

AVR Internal Registers

 

Adding XRAM

 

Adding SRAM 4-port Non Multiplexed

 

Attaching an LCD display

 

Using the UART

 

Using RS485

 

Using the I2C protocol

 

Using the 1 Wire protocol

 

Using the SPI protocol

 

Using USI

 

Power Up

 

ATXMEGA

 

XTINY

 

MEGAX

 

AVRX

 

Statements and Hardware Resources

 

Reference Designs

EM4095 RFID Reader

 

 

 

Misc

Assembly Mnemonics

 

International Resellers

 

Language Fundamentals

 

Mixing BASIC with assembly

 

Supported Programmers

 

BASCOMP, command line compiler

 

 

ASM Libs and Add-Ons

Library

Category

AVR-DOS

AVR-DOS

BCCARD

BCCARD

EXTENDED I2C

I2C

FM24C16

I2C

FM24C64_256

I2C

I2C MULTIBUS

I2C

I2CV2

I2C

I2C_TWI-MULTI

I2C TWI

I2C_USI

I2C/USI

I2CSLAVE

I2C

I2C_USI_SLAVE

I2C/USI

FM25C256

SPI

HEXVAL

Conversion

MCSBYTE

Conversion

MCSBYTEINT

Conversion

MODBUS

MODBUS

LCD4BUSY

LCD

LCD_RX1602A5

LCD

LCD4

LCD

LCD4E2

LCD

lcd4_anypin_oled_RS0010

LCD

GLCD

LCD

GLCDSED

LCD

PCF8533

LCD

LCD-EPSON

LCD

GLCDST7565R

LCD

GLCDSSD1325_96x64

LCD

GLCDEADOGMXL240-7-I2C

LCD

GLCDdSSD1306-I2C

LCD

FT800

LCD

PULSEIN

IO

PS2 Lib

PS2

AT_EMULATOR

PS2

PS2MOUSE_EMULATOR

PS2

DATETIME

DATE TIME

EUROTIMEDATE

DATE TIME

SPISLAVE

SPI

TCPIP

TCPIP

M128-1WIRE-PORTF

1WIRE

TVOUT

VIDEO

USB

USB

RAINBOWBSC

WS2812/RAINBOW

SERIN

SERIAL

LCD_I2C_PCF8574

LCD I2C PCF8574

 

 

 

BASCOM Language Reference

 

-#-

#IF , #ELSE , #ENDIF , #AUTOCODE

 

-$-

$ASM , $BAUD , $BAUD1 , $BIGSTRINGS, $BGF , $BOOT , $CRYSTAL , $DATA , $DBG , $DEFAULT , $EEPLEAVE , $EEPROM , $EEPROMHEX , $EEPROMSIZE, $EXTERNAL , $HWSTACK , $INC , $INCLUDE , $INITMICRO , $LCD , $LCDRS , $LCDPUTCTRL , $LCDPUTDATA , $LCDVFO , $LIB , $LOADER , $LOADERSIZE , $MAP , $NOCOMPILE , $NOINIT , $NORAMCLEAR , $NORAMPZ , $PROJECTTIME, $PROG , $PROGRAMMER , $REGFILE , $RESOURCE , $ROMSTART $SERIALINPUT, $SERIALINPUT1 , $SERIALINPUT2LCD , $SERIALOUTPUT , $SERIALOUTPUT1 , $SIM , $SWSTACK , $TIMEOUT , $TINY , $WAITSTATE , $XRAMSIZE , $XRAMSTART , $XA , $CRYPT , $NOTRANSFORM , $FILE , $AESKEY , $XTEAKEY , $STACKDUMP , $NOFRAMEPROTECT , $FRAMEPROTECT , $FORCESOFTI2C , $REDUCEIVR , $BOOTVECTOR

 

 

-1-

1WRESET , 1WREAD , 1WWRITE , 1WSEARCHFIRST , 1WSEARCHNEXT ,1WVERIFY , 1WIRECOUNT

 

-A-

ABS , ADR, ADR2 , ACOS , ALIAS , ASC , ASIN , ATN , ATN2 , AESENCRYPT , AESDECRYPT , AND

 

-B-

BASE64DEC , BASE64ENC , BAUD , BAUD1-BAUDx, BCD , BIN , BITS , BINVAL , BIN2GRAY , BITWAIT , BYVAL , BOX, BOXFILL , BSAVE , BLOAD , BUFSPACE , BREAK

 

-C-

CALL ,CHARPOS, CIRCLE , CHECKFLOAT, CHECKSUM , CHECKSUMXOR, CHR , CLEAR , CLS , CLOCKDIVISION , CLOSE , CLOSESOCKET , CPEEKH , CONST , COS , COSH , CRC8 , CRC16 , CRC32 , CRC16UNI , CRYSTAL , CPEEK , CPEEKH , CURSOR , CANBAUD, CANRESET, CANCLEARMOB, CANCLEARALLMOBS, CANSEND, CANRECEIVE , CANID, CANSELPAGE, CANGETINTS , CHDIR , CMD8 , CMD16 , CMD32 , CLEARATTR , COMPARE , EDMA , EDMAx , CRCMB ,CONTINUE , CRC8UNI ,

CONFIG ,

CONFIG 1WIRE , CONFIG ACAX|ACBX , CONFIG ACI , CONFIG ACx , CONFIG ADC , CONFIG ADCA|ADCB , CONFIG ADC0|ADCx , CONFIG ATEMU ,

CONFIG BASE , CONFIG BCCARD , CONFIG CANBUS , CONFIG CANMOB , CONFIG CLOCK , CONFIG CLOCKDIV , CONFIG COM1 , CONFIG COM2 , CONFIG COMx ,

CONFIG DACA|DACB , CONFIG DACX , CONFIG DATE , CONFIG DCF77 , CONFIG DEBOUNCE , CONFIG DMA , CONFIG DMACHx , CONFIG DMXSLAVE , CONFIG DP ,

CONFIG EDMA , CONFIG EDMAx , CONFIG EEPROM , CONFIG ERROR , CONFIG EVENT_SYSTEM (xmega) , CONFIG EVENT_SYSTEM (xtiny) , CONFIG EXTENDED_PORT ,

CONFIG FT800, CONFIG GRAPHLCD , CONFIG HITAG , CONFIG I2CBUS , CONFIG I2CDELAY , CONFIG I2CSLAVE , CONFIG INPUT , CONFIG INPUTBIN , CONFIG INTx , CONFIG INTVECTORSELECTION ,

CONFIG KBD , CONFIG KEYBOARD , CONFIG LCD , CONFIG LCDBUS , CONFIG LCDMODE , CONFIG LCDPIN ,

CONFIG OPAMP, CONFIG OSC XMEGA , CONFIG OSC XTINY , CONFIG PORT , CONFIG PORT_MUX , CONFIG POWERMODE , CONFIG POWER_REDUCTION , CONFIG PRIORITY XMEGA , CONFIG PRIORITY XTINY ,

CONFIG PRINT , CONFIG PRINTBIN , CONFIG PS2EMU , CONFIG RAINBOW , CONFIG RC5 , CONFIG RC5SEND, CONFIG RND ,

CONFIG SERIALIN , CONFIG SERIALIN1 , CONFIG SERIALIN2 , CONFIG SERIALIN3 , CONFIG SERIALOUT , CONFIG SERIALOUT1 , CONFIG SERIALOUT2 , CONFIG SERIALOUT3 , CONFIG SERVOS , CONFIG SHIFTIN ,

CONFIG SINGLE , CONFIG SDA , CONFIG SCL , CONFIG SPI , CONFIG SPIx , CONFIG SUBMODE , CONFIG SYSCLOCK XMEGA ,CONFIG SYSCLOCK XTINY ,

CONFIG TCXX , CONFIG TCA0 , CONFIG TCB0, TCB1 , CONFIG TCD0 , CONFIG TCPIP , CONFIG TWI , CONFIG TWISLAVE , CONFIG TWIxSLAVE , CONFIG TIMER0 , CONFIG TIMER1 , CONFIG TIMER2 and 3 ,

CONFIG USB, CONFIG USI , CONFIG VPORT , CONFIG VREF , CONFIG VREGPWR , CONFIG WATCHDOG , CONFIG WAITSUART , CONFIG X10 , CONFIG XPIN , CONFIG XRAM , CONFIG ZCDx

 

 

 

-D-

DATE , DATA , DATE$ , DBG , DEBOUNCE , DECR , DAYOFWEEK , DAYOFYEAR , DriveGetIdentity , DriveWriteSector , DriveReadSector ,DEBUG, DECLARE FUNCTION , DECLARE SUB , DEFXXX , DEFLCDCHAR , DEG2RAD , DELAY , DIM , DISABLE , DISPLAY , DO-LOOP , DTMFOUT , DISKFREE , DIR , DriveReset , DriveInit , DELCHAR , DELCHARS , DESENCRYPT, DESDECRYPT

 

-E-

ECHO , ELSE , ENABLE , END , EXIT , EXP , EOF , ENCODER

 

-F-

FIX , FORMAT , FOR-NEXT , FOURTHLINE , FRAC , FUSING , FLUSH , FREEFILE , FILEATTR , FILEDATE , FILETIME , FILEDATETIME , FILELEN , FLIP

 

-G-

GET , GETADC , GETKBD , GETATKBD , GETRC , GETRC5 , GLCDCMD , GLCDDATA , GOSUB , GOTO , GRAY2BIN , GETDSTIP , GETDSTPORT , GETSOCKET , GETTCPREGS , GETREG , GETATTR

 

-H-

HEX , HEXVAL , HIGH , HIGHW , HOME

 

-I-

I2CINIT , I2CRECEIVE , I2CSEND , I2CSTART, I2CREPSTART, I2CSTOP,I2CRBYTE,I2CWBYTE , IDLE , IF-THEN-ELSE-END IF , INCR , INITLCD , INKEY , INP , INPUTBIN , INPUTHEX , INPUT , INSTR , INT , ISCHARWAITING , INITFILESYSTEM , IP2STR , INSERTCHAR

 

-J-

JOIN

 

-K-

KILL

 

-L-

LCASE , LCD , LCDAT , LCDCMD, LCDDATA, LCDAUTODIM , LEFT , LEN , LINE , LOAD , LOADADR , LOADLABEL , LOADWORDADR , LOCAL , LCDCONTRAST , LOCATE , LOG , LOG10 , LOOKDOWN , LOOKUP , LOC , LOF , LOOKUPSTR , LOW , LOWERLINE , LTRIM , LINE INPUT , LCDFONT

 

-M-

MACRO , MAKEBCD , MAKEDEC , MAKEMODBUS , MAKEINT , MID , MAX , MIN , MOD , MKDIR , MANCHESTERDEC, MANCHESTERENC , MEMFILL

 

-N-

NAME , NBITS , NOT , NOP

 

-O-

ON INTERRUPT ,ON VALUE , OPEN , OUT , OR

 

-P-

PEEK , POKE , POPALL , POWER mode , POWER , POWERDOWN , POWERSAVE , PRINT , PRINTBIN , PSET , PULSEIN , PS2MOUSEXY , PUT , PULSEOUT , PUSHALL

 

-Q-

QUOTE , QSIN , QCOS

 

-R-

RAD2DEG , RC5SEND , RC6SEND , READ , READEEPROM , READHITAG , READMAGCARD , REM , REPLACECHARS , RESET , RESTORE , RETURN , RIGHT , RND , ROTATE , ROUND RTRIM , READSIG , RMDIR , RGB8TO16 ,

RB_ADDCOLOR, RB_ANDCOLOR, RB_ORCOLOR, RB_SUBCOLOR, RB_CLEARSTRIPE , RB_CLEARCOLORS , RB_FILL , RB_FILLCOLORS , RB_FILLSTRIPE , RB_SELECTCHANNEL, RB_SEND, RB_SETCOLOR , RB_SWAPCOLOR , RB_ROTATELEFT, RB_ROTATERIGHT, RB_SHIFTLEFT, RB_SHIFTRIGHT , RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR , RB_COLOR , RB_COPY , REDO

 

-S-

SENDSCAN , SENDSCANKBD , SELECT CASE - END SELECT , SET , SETFONT , SERIN , SEROUT , SECOFDAY , SECELAPSED , SYSDAY , SYSSEC , SYSSECELAPSED , SETTCP , SGN , SHIFT , SHIFTCURSOR , SHIFTIN , SHIFTOUT , SHIFTLCD , SHOWPIC , SHOWPICE , SIN , SINH , SONYSEND , SOUND , SPACE , SPC , SPIIN , SPIINIT , SPIMOVE , SPIOUT , SQR , START , STCHECK , STOP , STR , STRING , SUB , SOCKETSTAT , SOCKETCONNECT , SOCKETLISTEN , SEEK , SWAP , SPLIT , SETTCPREGS , SETIPPROTOCOL , SORT , STR2DIGITS ,SETREG , SNTP , SOCKETCLOSE, SOCKETDISCONNECT , SETATTR , SPI1IN , SPI1INIT , SPI1MOVE , SPI1OUT , SIZEOF

 

-T-

TIME , TCPWRITE , TCPWRITESTR , TCPREAD , TCPCHECKSUM , TAN , TANH , THIRDLINE , TIME$ , TRIM , TOGGLE , TCPREADHEADER

 

-U-

UCASE , UPPERLINE , UDPREAD , UDPWRITE , UDPWRITESTR , UDPREADHEADER, URL2IP

 

-V-

VAL , VARPTR , VER , VERSION

 

-W-

WAIT , WAITKEY , WAITMS , WAITUS , WRITE , WHILE-WEND , WRITEEEPROM , WR8 , WR16 , WR32 , WRITEDAC

 

-X-

X10DETECT , X10SEND , XTEADECODE , XTEAENCODE , XOR