Table of contents

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 , Tip , Project Files, Code Explorer , Vertical Splitter

 

 

Program

Compile , Syntax Check , Show Result , Simulate , Send to 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

 

 

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

 

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

 

 

 

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 , CONFIG , CONFIG ACI , CONFIG ADC , CONFIG ADCx, CONFIG BASE , CONFIG BCCARD , CONFIG CLOCK , CONFIG COM1 , CONFIG COM2 , CONFIG DAC, CONFIG DATE , CONFIG EEPROM , CONFIG PS2EMU , CONFIG ATEMU , CONFIG DMXSLAVE, CONFIG EXTENDED_PORT , CONFIG I2CSLAVE , CONFIG INPUT , CONFIG GRAPHLCD , CONFIG KEYBOARD , CONFIG OSC, CONFIG PRIORITY , CONFIG TIMER0 , CONFIG TIMER1 , CONFIG LCDBUS , CONFIG LCDMODE , CONFIG 1WIRE , CONFIG LCD , CONFIG SERIALOUT , CONFIG SERIALIN , CONFIG SPI , CONFIG SPIx, CONFIG LCDPIN , CONFIG SDA , CONFIG SCL , CONFIG SYSCLOCK , CONFIG DEBOUNCE , CONFIG WATCHDOG , CONFIG X10 , CONFIG XRAM , CONFIG PORT , COUNTER0 AND COUNTER1 , CONFIG TCPIP , CONFIG TCXX , CONFIG TWISLAVE ,CONFIG SINGLE, CONFIG USB, CONST , COS , COSH , CRC8 , CRC16 , CRC32 , CRC16UNI , CRYSTAL , CPEEK , CPEEKH , CURSOR , CONFIG DP , CONFIG VPORT , CONFIG ERROR , CONFIG POWER REDUCTION, CONFIG EVENT_SYSTEM , CONFIG DMA , CONFIG DMACHx , CONFIG SUBMODE , CONFIG POWERMODE , CONFIG XPIN , CONFIG CANBUSMODE, CONFIG CANMOB

, CANBAUD, CANRESET, CANCLEARMOB, CANCLEARALLMOBS, CANSEND, CANRECEIVE , CANID, CANSELPAGE, CANGETINTS , CHDIR , CONFIG USI , CONFIG TWIXSLAVE , CMD8 , CMD16 , CMD32 , CONFIG FT800 , CONFIG RAINBOW , CLEARATTR , COMPARE , EDMA , EDMAx , CONFIG INPUTBIN , CONFIG TWI1 , CRCMB , CONFIG MODBUS , CONTINUE , CRC8UNI

 

-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

 

-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

 

-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

 

-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

 

-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

 

-X-

X10DETECT , X10SEND , XTEADECODE , XTEAENCODE , XOR