Index
Table of contents
Keyword Reference
Changes
What is new in 2080
What is new in 2078-2079
About MCS Electronics
Custom Designs
Application Notes
Installation
Installation of BASCOM
Updates
Move to new PC
Installation on multiple computers
BASCOM IDE
Running BASCOM-AVR
File New
File Open
File Close
File Save
File Save As
File Print Preview
File Print
File Project
File ZIP
File Exit
Edit Undo
Edit Redo
Edit Cut
Edit Copy
Edit Paste
Edit Find
Edit Find Next
Edit Replace
Edit Goto
Edit Toggle Bookmark
Edit Goto Bookmark
Edit Indent Block
Edit Unindent Block
Edit Remark Block
Edit Insert ASCII
Edit Fold All Subs and Functions
Edit Unfold All Code
Edit Encrypt Selected Code
Edit Proper Indent
Edit Show Excluded Code
Edit Show Dead Code
View PinOut
View PDF viewer
View Error Panel
View Tip
View Project Files
View Code Explorer
View Vertical Splitter
Program Compile
Program Syntax Check
Program Show Result
Program Simulate
Program Send to Chip
Tools Terminal Emulator
Tools LCD Designer
Tools LIB Manager
Tools Graphic Converter
Tools Stack Analyzer
Tools Plugin Manager
Tools Batch Compile
Tools PDF Update
Tools Resource Editor
Tools Font Editor
Options Compiler
Options Compiler Chip
Options Compiler Output
Options Compiler Communication
Options Compiler I2C, SPI, 1WIRE
Options Compiler LCD
Options Communication
Options Environment
Options Simulator
Options Programmer
Supported Programmers
ISP programmer
PG302 programmer
Sample Electronics cable programmer
KITSRUS Programmer
MCS Universal Interface Programmer
STK500 Programmer
Lawicel BootLoader
AVR ISP Programmer
USB-ISP Programmer
MCS Bootloader
PROGGY
FLIP
USBprog Programmer / AVR ISP mkII
KamProg for AVR
USBASP
STK600
ARDUINO
BIPOM MINI-MAX/C
mySmartUSB Light
LIBUSB
Options Monitor
Options Printer
Window Cascade
Window Tile
Window Tile Vertically
Window Arrange Icons
Windows Maximize All
Window Minimize All
Help About
Help Index
Help MCS Forum
Help MCS Shop
Help Support
Help Knowledge Base
Help Credits
Help Update
Help Wiki
BASCOM Editor Keys
Program Development Order
PlugIns
Font Editor
BASCOM HARDWARE
Additional Hardware
AVR Internal Hardware
AVR Internal Registers
AVR Internal Hardware TIMER0
AVR Internal Hardware TIMER1
AVR Internal Hardware Watchdog timer
AVR Internal Hardware Port B
AVR Internal Hardware Port D
Adding XRAM with External Memory Interface
Adding XRAM to XMEGA using EBI
Adding SRAM 4-port Non Multiplexed
Attaching an LCD Display
Memory usage
Statements and Hardware Resources
Using the UART
USING RS485
Using the I2C protocol
Using the 1 WIRE protocol
Using the SPI protocol
Using USI (Universal Serial Interface)
Power Up
Reference Designs
EM4095 RFID Reader
Chips
AVR
AT86RF401
AT90CAN32
AT90CAN128
AT90S1200
AT90S2313
AT90S2323
AT90S2333
AT90S2343
AT90S4414
AT90S4433
AT90S4434
AT90S8515
AT90S8535
AT90PWM2-3
AT90PWM216
AT90US82
AT90USB162
AT90USB646
AT90USB1286
AT90USB1287
ATTINY12
ATTINY13
ATTINY13A
ATTINY15
ATTINY20
ATTINY22
ATTINY24
ATTINY25
ATTINY26
ATTINY43U
ATTINY44
ATTINY45
ATTINY48
ATTINY84
ATTINY85
ATTINY87
ATTINY88
ATTINY167
ATTINY261
ATTINY441
ATTINY461
ATTINY828
ATTINY841
ATTINY861
ATTINY1634
ATTINY2313
ATTINY2313A
ATTINY4313
ATTINY4313A
ATMEGA8,
ATMEGA8A
ATMEGA8U2
ATMEGA16
ATMEGA16A
ATMEGA16U2
ATMEGA16U4
ATMEGA16M1
ATMEGA32
ATMEGA32A
ATMEGA32C1
ATMEGA32M1
ATMEGA32U2
ATMEGA32U4
ATMEGA48
ATMEGA48P
ATMEGA48PB
ATMEGA64
ATMEGA64C1
ATMEGA64M1
ATMEGA88
ATMEGA88A
ATMEGA88P
ATMEGA88PB
ATMEGA103
ATMEGA128
ATMEGA128RFA1
ATMEGA161
ATMEGA162
ATMEGA163
ATMEGA164P
ATMEGA164PA
ATMEGA165
ATMEGA165A
ATMEGA168
ATMEGA168P
ATMEGA168PB
ATMEGA169
ATMEGA169P
ATMEGA169PA
ATMEGA323
ATMEGA324A
ATMEGA324P
ATMEGA324PA
ATMEGA324PB
ATMEGA325
ATMEGA328
ATMEGA328P
ATMEGA328PB
ATMEGA329
ATMEGA406
ATMEGA603
ATMEGA640
ATMEGA644
ATMEGA644P
ATMEGA644PA
ATMEGA645
ATMEGA649
ATMEGA649PA
ATMEGA1280
ATMEGA1281
ATMEGA1284
ATMEGA1284P
ATMEGA2560
ATMEGA2561
ATMEGA3250P
ATMEGA6450P
ATMEGA8515
ATMEGA8535
ATXMEGA
ATXMEGA8E5
ATXMEGA16A4
ATXMEGA16D4
ATXMEGA16E5
ATXMEGA32A4
ATXMEGA32A4U
ATXMEGA32D4
ATXMEGA32E5
ATXMEGA64A1
ATXMEGA64A3
ATXMEGA64D3
ATXMEGA64D4
ATXMEGA128A1
ATXMEGA128A3
ATXMEGA128A4U
ATXMEGA128B1
ATXMEGA128B3
ATXMEGA128C3
ATXMEGA128D3
ATXMEGA128D4
ATXMEGA192A3
ATXMEGA192D3
ATXMEGA256A3
ATXMEGA256A3B
ATXMEGA256A3BU
ATXMEGA256D3
ATXMEGA384C3
BASCOM Language Fundamentals
Changes compared to BASCOM-8051
Language Fundamentals
Mixing ASM and BASIC
Assembler mnemonics
Reserved Words
Error Codes
Newbie problems
Tips and tricks
ASCII chart
BASCOM Language Reference
#AUTOCODE
#IF ELSE ELSEIF ENDIF
Compiler Directives
$AESKEY
$ASM
$BAUD
$BAUD1
$BGF
$BIGSTRINGS
$BOOT
$BOOTVECTOR
$CRYPT
$CRYSTAL
$DATA
$DBG
$DEFAULT
$EEPLEAVE
$EEPROM
$EEPROMHEX
$EEPROMSIZE
$EXTERNAL
$FILE
$FORCESOFTI2C
$FRAMEPROTECT
$FRAMESIZE
$HWSTACK
$HWCHECK, $SWCHECK, $SOFTCHECK
$INC
$INCLUDE
$INITMICRO
$LCD
$LCDPUTCTRL
$LCDPUTDATA
$LCDRS
$LCDVFO
$LIB
$LOADER
$LOADERSIZE
$MAP
$NOCOMPILE
$NOFRAMEPROTECT
$NOINIT
$NORAMCLEAR
$NORAMPZ
$NOTRANSFORM
$NOTYPECHECK
$PROJECTTIME
$PROG
$PROGRAMMER
$REDUCEIVR
$REGFILE
$RESOURCE
$ROMSTART
$SERIALINPUT
$SERIALINPUT1
$SERIALINPUT2LCD
$SERIALOUTPUT
$SERIALOUTPUT1
$SIM
$STACKDUMP
$SWSTACK
$TIMEOUT
$TINY
$TYPECHECK
$VERSION
$WAITSTATE
$XA
$XRAMSIZE
$XRAMSTART
$XTEAKEY
1WIRE
1WIRECOUNT
1WRESET
1WREAD
1WSEARCHFIRST
1WSEARCHNEXT
1WVERIFY
1WWRITE
ADR , ADR2
AESDECRYPT
AESENCRYPT
ALIAS
Math
ABS
ACOS
ASIN
ATN
ATN2
CHECKFLOAT
COS
COSH
DEG2RAD
EXP
FIX
FRAC
INT
LOG10
LOG
POWER
QSIN
QCOS
RAD2DEG
ROUND
SGN
TANH
TAN
SQR
SINH
SIN
AVR-DOS File I/O
BLOAD
BSAVE
CHDIR
CLEARATTR
DIR
DISKFREE
DISKSIZE
DriveCheck
DriveGetIdentity
DriveInit
DriveReset
DriveReadSector
DriveWriteSector
FILEATTR
FILEDATE
FILEDATETIME
FILELEN
FILETIME
FLUSH
FREEFILE
GETATTR
INITFILESYSTEM
KILL
LINEINPUT
LOC
LOF
MKDIR
NAME
RMDIR
SETATTR
WRITE
BITWAIT
BITS
BREAK
BYVAL
CALL
CHECKSUM
CHECKSUM CHECKSUMXOR
CRC8
CRC16
CRC16UNI
CRC32
CRCMB
Conversion
ASC
BCD
BIN
BINVAL
BIN2GRAY
CHR
FORMAT
FUSING
GRAY2BIN
HEXVAL
HEX
STR
STR2DIGITS
VAL
CAN
CANBAUD
CANGETINTS
CANID
CANCLEARALLMOBS
CANCLEARMOB
CANRECEIVE
CANRESET
CANSELPAGE
CANSEND
CLEAR
CLOCKDIVISION
CLOSE
COMPARE
CONFIGURATION
CONFIG
CONFIG 1WIRE
CONFIG ACI
CONFIG ACXX
CONFIG ADC
CONFIG ADCx
CONFIG ATEMU
CONFIG BASE
CONFIG BCCARD
CONFIG CANBUSMODE
CONFIG CANMOB
CONFIG CLOCK
CONFIG CLOCKDIV
CONFIG COM1
CONFIG COM2
CONFIG COMx
CONFIG DACx
CONFIG DATE
CONFIG DCF77
CONFIG DEBOUNCE
CONFIG DMA
CONFIG DMACHx
CONFIG EDMA
CONFIG EDMAx
CONFIG DMXSLAVE
CONFIG DP
CONFIG EEPROM
CONFIG ERROR
CONFIG EVENT_SYSTEM
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 MODBUS
CONFIG OSC
CONFIG PORT
CONFIG POWERMODE
CONFIG POWER_REDUCTION
CONFIG PRIORITY
CONFIG PRINT
CONFIG PRINTBIN
CONFIG PS2EMU
CONFIG RAINBOW
CONFIG RC5
CONFIG RND
CONFIG SDA
CONFIG SCL
CONFIG SERIALIN
CONFIG SERIALOUT
CONFIG SINGLE
CONFIG SHIFTIN
CONFIG SPI
CONFIG SPIx
CONFIG SERVOS
CONFIG SUBMODE
CONFIG SYSCLOCK
CONFIG TCXX
CONFIG TCPIP
CONFIG TIMER0
CONFIG TIMER1
CONFIG TIMER2
CONFIG TWI, TWIx
CONFIG TWISLAVE
CONFIG TWIxSLAVE
CONFIG USB
CONFIG USI
CONFIG VPORT
CONFIG WAITSUART
CONFIG WATCHDOG
CONFIG X10
CONFIG XPIN
CONFIG XRAM
CONST
COUNTER0 and COUNTER1
CPEEK
CPEEKH
CRYSTAL
DATA
Date and Time
DAYOFWEEK
DAYOFYEAR
DATE$
DATE
SECELAPSED
SECOFDAY
SYSSEC
SYSSECELAPSED
SYSDAY
TIME$
TIME
DBG
DCF77TIMEZONE
DEBUG
DEBOUNCE
DECR
DECLARE FUNCTION
DECLARE SUB
DEFxxx
DELAY
DIM
DISABLE
DO-LOOP
DTMFOUT
ECHO
ELSE
ENABLE
ENCODER
END
EOF
EXIT
FLIP
FOR-NEXT
GET
GETADC
GETATKBD
GETATKBDRAW
GETKBD
GETRC
GETRC5
GETREG
GOSUB
GOTO
HIGH
HIGHW
I2C-TWI
I2CINIT
I2CRECEIVE
I2CSEND
I2START,I2CSTOP, I2CRBYTE, I2CWBYTE, I2CREPSTART
IDLE
IF-THEN-ELSE-END IF
INCR
INP
LCD Commands
BOX
BOXFILL
CIRCLE
CLS
CURSOR
DEFLCDCHAR
DISPLAY
FOURTHLINE
GLCDCMD
GLCDDATA
HOME
INITLCD
LCD
LCDAUTODIM
LCDAT
LCDCMD
LCDDATA
LCDCONTRAST
LCDFONT
LINE
LOCATE
LOWERLINE
PSET
RGB8TO16
SETFONT
SHIFTCURSOR
SHIFTLCD
SHOWPIC
SHOWPICE
THIRDLINE
UPPERLINE
LOAD
LOADADR
LOADLABEL
LOADWORDADR
LOCAL
LOOKDOWN
LOOKUP
LOOKUPSTR
LOW
MACRO
MAKEBCD
MAKEDEC
MAKEINT
MAX
MEMCOPY
MIN
MOD
NBITS
ON INTERRUPT
ON VALUE
OPEN
OUT
PEEK
POKE
POPALL
POWER MODE
POWERDOWN
POWERSAVE
PS2MOUSEXY
PULSEIN
PULSEOUT
PUSHALL
PUT
RC5SEND
RC5SENDEXT
RC6SEND
READ
READEEPROM
READHITAG
READMAGCARD
READSIG
REM
REPLACECHARS
RESET
RESTORE
RETURN
RND
ROTATE
SEEK
SELECT-CASE-END SELECT
SET
SETREG
SENDSCAN
SENDSCANKBD
SHIFT
SHIFTIN
SHIFTOUT
SONYSEND
SORT
SOUND
RAINBOW
RB_SELECTCHANNEL
RB_SETCOLOR
RB_SEND
RB_CHANGEPIN
RB_ADDCOLOR
RB_ANDCOLOR
RB_ORCOLOR
RB_SUBCOLOR
RB_CLEARSTRIPE
RB_CLEARCOLORS
RB_FILL
RB_FILLCOLORS
RB_FILLSTRIPE
RB_SWAPCOLOR
RB_ROTATELEFT
RB_ROTATERIGHT
RB_SHIFTLEFT
RB_SHIFTRIGHT
RB_SETTABLECOLOR
RB_GETCOLOR
RB_LOOKUPCOLOR
RB_COLOR
RB_COPY
Serial Data RS232-RS485
BAUD
BAUD1-BAUDx
BUFSPACE
INKEY
INPUT
INPUTHEX
INPUTBIN
ISCHARWAITING
MAKEMODBUS
PRINT
PRINTBIN
SERIN
SPC
SEROUT
WAITKEY
SPI
SPIIN
SPIINIT
SPIMOVE
SPIOUT
SPI1INIT, SPI1IN, SPI1OUT, SPI1MOVE
STRINGS
CHARPOS
DELCHAR
DELCHARS
INSERTCHAR
INSTR
LCASE
LEFT
LEN
LTRIM
MID
RIGHT
QUOTE
RTRIM
SPACE
SPLIT
STRING
TRIM
UCASE
START
STCHECK
STOP
SUB
SWAP
TCP/IP
BASE64DEC
BASE64ENC
GETDSTIP
GETDSTPORT
GETSOCKET
GETTCPREGS
IP2STR
MAKETCP
SETIPPROTOCOL
SETTCP
SETTCPREGS
SNTP
SOCKETCLOSE
SOCKETCONNECT
SOCKETDISCONNECT
SOCKETLISTEN
SOCKETSTAT
TCPCHECKSUM
TCPREAD
TCPREADHEADER
TCPWRITE
TCPWRITESTR
UDPREAD
UDPREADHEADER
UDPWRITE
UDPWRITESTR
URL2IP
TOGGLE
VARPTR
VER
VERSION
WAIT
WAITMS
WAITUS
WHILE-WEND
WRITEEEPROM
X10DETECT
X10SEND
XTEADECODE
XTEAENCODE
ASM Libraries and Add-Ons
FT800
Commands
AlphaFunc
Begin_G
BitmapHandle
BitmapLayout
BitmapSize
BitmapSource
BitmapTransform
BlendFunc
Call_C
Cell
Clear_B
ClearColorA
ClearColorRGB
ClearColorRGBdw
ClearStencil
ClearTag
ClearScreen
CMD8
CMD16
CMD32
CmdAppend
CmdBgColor
CmdButton
CmdCalibrate
CmdCalibratex
CmdClock
CmdColdStart
CmdDial
CmdDlStart
CmdFgColor
CMDFTSTACK
CmdGauge
CmdGetMatrix
CmdGetPtr
CmdGradColor
CmdGradient
CmdInflate
CmdInterrupt
CmdKeys
CmdLoadIdentity
CmdLoadImage
CmdLogo
CmdMemCpy
CmdMemCrc
CmdMemSet
CmdMemWrite
CmdMemZero
CmdNumber
CmdProgress
CmdRegRead
CmdRotate
CmdRotateA
CmdScale
CmdScreenSaver
CmdScrollBar
CmdSetFont
CmdSetMatrix
CmdSketch
CmdSlider
CmdSnapShot
CmdSpinner
CmdStop
CmdSwap
CmdText
CmdToggle
CmdTrack
CmdTranslate
CmdTranslateP
Color_A
ColorMask
ColorRGB
ColorRGBdw
Display_E
End_G
Jump
LineWidth
Macro_R
PointSize
RD8
RD16
RD32
RestoreContext
Return_C
SaveContext
ScissorSize
ScissorXY
StencilFunc
StencilMask
StencilOp
Tag
TagMask
Vertex2f
Vertex2ii
UpdateScreen
WaitCmdFifoEmpty
WR8
WR16
WR32
Getting Started
How to add another SPI device with the FT800
How to Screen Capture
Demos
EXTENDED I2C
FM24C16
FM24C64_256
FM25C256
HEXVAL
I2C_MULTIBUS
I2C_TWI
I2C_TWI-MULTI
I2C_USI
I2C_USI_SLAVE
I2CV2
MCSBYTE
MCSBYTEINT
PULSEIN
TCPIP
M128-1wire-PortF
TVOUT
RAINBOWBSC
LCD
LCD4BUSY
LCD4_anypin_oled_RS0010
LCD_RX1602A5
LCD4.LIB
LCD4E2
GLCD
GLCDSED
PCF8533
LCD-EPSON
LCD_DOGS104a_I2C
glcdR7565R
glcdSSD1325_96x64
GLCDEADOGMXL240-7-I2C
GLCDdSSD1306-I2C
AVR-DOS
AVR-DOS File System
MMCSD_HC.LIB
CF Card
Compact FlashCard Driver
Elektor CF-Interface
XRAM CF-Interface for simulation
New CF-Card Drivers
Floating Point
FP_TRIG
DOUBLE
I2C SLAVE
CONFIG I2CSLAVE
I2C TWI Slave
SPI
SPISLAVE
DATE TIME
EUROTIMEDATE
DATETIME
PS2-AT Mouse and Keyboard Emulation
AT_EMULATOR
PS2MOUSE_EMULATOR
BCCARD
BCCARD
BCDEF
BCCALL
BCRESET
USB
USB Add On
MODBUS Slave/Server
Tools
LCD RGB-8 Converter
BASCOMP
International Resellers
International Resellers

© 2017 MCS Electronics