Keyword reference

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "<div style="height: 782px" class="nonscroll" id="idcontent"><div id="innerdiv"> <span style="font-size: 14pt; font-weight: bold">1WIRE</span> 1Wire routines allow you to com...")
 
 
(17 intermediate revisions by one user not shown)
Line 1: Line 1:
<div style="height: 782px" class="nonscroll" id="idcontent"><div id="innerdiv">
+
<div id="idcontent"><div id="innerdiv">
<span style="font-size: 14pt;  font-weight: bold">1WIRE</span>
+
= <span class="f Header">1WIRE</span><br/> =
  
 
1Wire routines allow you to communicate with Dallas 1wire chips.
 
1Wire routines allow you to communicate with Dallas 1wire chips.
  
[[1WRESET]] , [[1WREAD]] , [[1wwrite]] , [[1wsearchfirst]] , [[1wsearchnext]] ,[[1wverify]] , [[1wirecount]]
+
[[1WRESET]] , [[1WREAD]] , [[1WWRITE]] , [[1WSEARCHFIRST]] , [[1WSEARCHNEXT]] , [[1WVERIFY]] , [[1WIRECOUNT]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 10: Line 10:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">CAN</span>
+
= <span class="f Header">CAN</span><br/> =
  
[[Config canbus]], [[Config canmob]]<span style="font-family: 'Arial';  color: #000000">, [[Canbaud]], [[Canreset]], [[Canclearmob]], [[Canclearallmobs]], [[Cansend]], [[Canreceive]] , [[Canid]], [[Canselpage]], [[Cangetints]]</span>
+
[[CONFIG CANBUS]] , [[CONFIG CANMOB]] , [[CANBAUD]] , [[CANRESET]] , [[CANCLEARMOB]] , [[CANCLEARALLMOBS]] , [[CANSEND]] , [[CANRECEIVE]] , [[CANID]] , [[CANSELPAGE]] , [[CANGETINTS]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 18: Line 18:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Conditions</span>
+
= <span class="f Header">Conditions</span><br/> =
  
 
Conditions execute a part of the program depending on a condition being True or False
 
Conditions execute a part of the program depending on a condition being True or False
  
[[If then else end if]] , [[While wend]] , &nbsp; [[Else]] , [[Do loop]] , [[Select case end select]] , [[For next]]
+
[[IF-THEN-ELSE-END_IF|IF THEN ELSE END IF]] , [[WHILE-WEND|WHILE WEND]] , [[ELSE]] , [[DO-LOOP|DO LOOP]] , [[SELECT-CASE-END_SELECT|SELECT CASE END SELECT]] , [[FOR-NEXT|FOR NEXT]]
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span class="f Header">Configuration</span>
+
= <span class="f Header">Configuration</span><br/> =
  
 
Configuration commands initialize the hardware to the desired state.
 
Configuration commands initialize the hardware to the desired state.
  
[[Config]] , [[Config aci]] , [[Config adc]] , [[Config adcx]] , [[Config bccard]] , [[Config clock]] , [[Config com1]] , [[Config com2]] , [[Config dacx]] , [[Config date]] , [[Config dmxslave]], [[Config eeprom]] ,[[Config extended port|Config extended port]] , [[Config ps2emu]] , [[Config atemu]] , [[Config i2cslave]] , [[Configinput]], [[Config graphlcd]] , [[Config keyboard]] , [[Config timer0]] , [[Config timer1]] , [[Config lcdbus]] , [[Config lcdmode]] , [[Config 1wire]] , [[Config lcd]] , [[Config osc]], [[Config serialout]] , [[Config serialin]] , [[Config spi]] , [[Config spix]], [[Config sysclock]] , [[Config lcdpin]] , [[Config priority]] , [[Config sda]] , [[Config scl]] , [[Config debounce]] , [[Config watchdog]] , [[Config port]][[Counter0 and counter1]] , [[Config tcpip]] , [[Configtwislave]] , [[Configsingle]] , [[Config x10]] , [[Configxram]] , [[Config usb]] , [[Config dp]] , [[Config tcxx]] , [[Config vport]] [[Config error]] , [[Config power reduction]],[[Config event system]] , [[Config dma]], [[Config dmachx]] , [[Config submode]] , [[Config powermode]] , [[Config xpin]]
+
[[CONFIG]] , [[CONFIG ACI]] , [[CONFIG ADC]] , [[CONFIG ADCX]] , [[CONFIG BCCARD]] , [[CONFIG CLOCK]] , [[CONFIG COM1]] , [[CONFIG COM2]] , [[CONFIG DACX]] , [[CONFIG DATE]] , [[CONFIG DMXSLAVE]] , [[CONFIG EEPROM]] , [[CONFIG EXTENDED PORT|CONFIG EXTENDED PORT]] , [[CONFIG PS2EMU]] , [[CONFIG ATEMU]] , [[CONFIG I2CSLAVE]] , [[CONFIG INPUT|CONFIG INPUT]] , [[CONFIG GRAPHLCD]] , [[CONFIG KEYBOARD]] , [[CONFIG TIMER0]] , [[CONFIG TIMER1]] , [[CONFIG LCDBUS]] , [[CONFIG LCDMODE]] , [[CONFIG 1WIRE]] , [[CONFIG LCD]] , [[CONFIG OSC]] , [[CONFIG SERIALOUT]] , [[CONFIG SERIALIN]] , [[CONFIG SPI]] , [[CONFIG SPIX]] , [[CONFIG SYSCLOCK]] , [[CONFIG LCDPIN]] , [[CONFIG PRIORITY]] , [[CONFIG SDA]] , [[CONFIG SCL]] , [[CONFIG DEBOUNCE]] , [[CONFIG WATCHDOG]] , [[CONFIG PORT]][[COUNTER0 AND COUNTER1]] , [[CONFIG TCPIP]] , [[CONFIG_TWISLAVE|CONFIG TWISLAVE]] , [[CONFIG_SINGLE|CONFIG SINGLE]] , [[CONFIG X10]] , [[CONFIG_XRAM|CONFIG XRAM]] , [[CONFIG USB]] , [[CONFIG DP]] , [[CONFIG TCXX]] , [[CONFIG VPORT]] [[CONFIG ERROR]] , [[CONFIG POWER REDUCTION]] , [[CONFIG EVENT SYSTEM]] , [[CONFIG DMA]] , [[CONFIG DMACHX]] , [[CONFIG SUBMODE]] , [[CONFIG POWERMODE]] , [[CONFIG XPIN]]
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span class="f Header">Conversion</span>
+
= <span class="f Header">Conversion</span><br/> =
  
 
A conversion routine is a function that converts a number or string from one form to another.
 
A conversion routine is a function that converts a number or string from one form to another.
  
[[Bcd]] , [[Gray2bin]] , [[Bin2gray]] , [[Bin]] , [[Makebcd]] , [[Makedec]] , [[Makeint]] , [[Format]] , [[Fusing]] , [[Binval]] , [[Crc8]] , [[Crc16]] , [[Crc16uni]] , [[Crc32]] , [[High]] , [[Highw]] , [[Low]] , [[Aesencrypt]] , [[Aesdecrypt]]
+
[[BCD]] , [[GRAY2BIN]] , [[BIN2GRAY]] , [[BIN]] , [[MAKEBCD]] , [[MAKEDEC]] , [[MAKEINT]] , [[FORMAT]] , [[FUSING]] , [[BINVAL]] , [[CRC8]] , [[CRC16]] , [[CRC16UNI]] , [[CRC32]] , [[HIGH]] , [[HIGHW]] , [[LOW]] , [[AESENCRYPT]] , [[AESDECRYPT]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 48: Line 48:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">DateTime</span>
+
= <span class="f Header">DateTime</span><br/> =
  
 
Date Time routines can be used to calculate with date and/or times.
 
Date Time routines can be used to calculate with date and/or times.
  
[[Date]] , [[Time]] , [[Date]] , [[Time]] , [[Dayofweek]] , [[Dayofyear]] , [[Secofday]] , [[Secelapsed]] , [[Sysday]] , [[Syssec]] , [[Syssecelapsed]]
+
[[DATE]] , [[TIME]] , [[DATE]] , [[TIME]] , [[DAYOFWEEK]] , [[DAYOFYEAR]] , [[SECOFDAY]] , [[SECELAPSED]] , [[SYSDAY]] , [[SYSSEC]] , [[SYSSECELAPSED]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 58: Line 58:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Delay</span>
+
= <span class="f Header">Delay</span><br/> =
  
 
Delay routines delay the program for the specified time.
 
Delay routines delay the program for the specified time.
  
[[Wait]] , [[Waitms]] , [[Waitus]] , [[Delay]]
+
[[WAIT]] , [[WAITMS]] , [[WAITUS]] , [[DELAY]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 68: Line 68:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Directives</span>
+
= <span class="f Header">Directives</span><br/> =
  
 
Directives are special instructions for the compiler. They can override a setting from the IDE.
 
Directives are special instructions for the compiler. They can override a setting from the IDE.
  
[[Asm]] , [[Baud 1]] , [[Baud1]] , [[Bigstrings]] , [[Bgf]] , [[Boot]] , [[Crystal 1]] , [[Data 1]] , [[Dbg]] , [[Default]] , [[Eepleave]] , [[Eeprom]] , [[Eepromhex]] , [[Eepromsize]], [[External]] , [[Hwstack]] , [[Inc]] , [[Include]] , [[Initmicro]] , [[Lcd 1]] , [[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]]
+
[[$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]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 78: Line 78:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">File</span>
+
= <span class="f Header">File</span><br/> =
  
 
File commands can be used with AVR-DOS, the Disk Operating System for AVR.
 
File commands can be used with AVR-DOS, the Disk Operating System for AVR.
  
[[Bsave]] , [[Bload]] , [[Get]] , [[Ver]] , [[Diskfree]] , [[Dir]] , [[Drivereset]] , [[Driveinit]] , [[Line input]] , [[Initfilesystem]] , [[Eof]] , [[Write]] , [[Flush]] , [[Freefile]] , [[Fileattr]] , [[Filedate]] , [[Filetime]] , [[Filedatetime]] , [[Filelen]] , [[Seek]] , [[Kill]] , [[Drivegetidentity]] , [[Drivewritesector]] , [[Drivereadsector]] , [[Loc]] , [[Lof]] , [[Put]] , [[Open]] , [[Close]] , [[Chdir]] , [[Mkdir]] , [[Rmdir]]
+
[[BSAVE]] , [[BLOAD]] , [[GET]] , [[VER]] , [[DISKFREE]] , [[DIR]] , [[DriveReset|DRIVERESET]] , [[DriveInit|DRIVEINIT]] , [[LINE INPUT|LINE INPUT]] , [[INITFILESYSTEM]] , [[EOF]] , [[WRITE]] , [[FLUSH]] , [[FREEFILE]] , [[FILEATTR]] , [[FILEDATE]] , [[FILETIME]] , [[FILEDATETIME]] , [[FILELEN]] , [[SEEK]] , [[KILL]] , [[DriveGetIdentity|DRIVEGETIDENTITY]] , [[DriveWriteSector|DRIVEWRITESECTOR]] , [[DriveReadSector|DRIVEREADSECTOR]] , [[LOC]] , [[LOF]] , [[PUT]] , [[OPEN]] , [[CLOSE]] , [[CHDIR]] , [[MKDIR]] , [[RMDIR]]
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span class="f Header">Graphical LCD</span>
+
= <span class="f Header">Graphical LCD</span><br/> =
  
 
Graphical LCD commands extend the normal text LCD commands.
 
Graphical LCD commands extend the normal text LCD commands.
  
[[Glcdcmd]] , [[Glcddata]] , [[Setfont]] , [[Line]] , [[Pset]] , [[Showpic]] , [[Showpice]] , [[Circle]] , [[Box]]
+
[[GLCDCMD]] , [[GLCDDATA]] , [[SETFONT]] , [[LINE]] , [[PSET]] , [[SHOWPIC]] , [[SHOWPICE]] , [[CIRCLE]] , [[BOX]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 98: Line 98:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">I2C</span>
+
= <span class="f Header">I2C</span><br/> =
  
 
I2C commands allow you to communicate with I2C chips with the TWI hardware or with emulated I2C hardware.
 
I2C commands allow you to communicate with I2C chips with the TWI hardware or with emulated I2C hardware.
  
[[I2cinit]] , [[I2creceive]] , [[I2csend]] , [[I2start i2cstop i2crbyte i2cwbyte]]
+
[[I2CINIT]] , [[I2CRECEIVE]] , [[I2CSEND]] , [[I2CSTART|I2START I2CSTOP I2CRBYTE I2CWBYTE]]
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span class="f Header">IO</span>
+
= <span class="f Header">IO</span><br/> =
  
 
I/O commands are related to the I/O pins and ports of the processor chip.
 
I/O commands are related to the I/O pins and ports of the processor chip.
  
[[Alias]] , [[Bitwait]] , [[Toggle]] , [[Reset]] , [[Set]] , [[Shiftin]] , [[Shiftout]] , [[Debounce]] , [[Pulsein]] , [[Pulseout]]
+
[[ALIAS]] , [[BITWAIT]] , [[TOGGLE]] , [[RESET]] , [[SET]] , [[SHIFTIN]] , [[SHIFTOUT]] , [[DEBOUNCE]] , [[PULSEIN]] , [[PULSEOUT]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 118: Line 118:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Micro</span>
+
= <span class="f Header">Micro</span><br/> =
  
 
Micro statements are specific to the micro processor chip.
 
Micro statements are specific to the micro processor chip.
  
[[Idle]] , [[Power mode]] , [[Powerdown]] , [[Powersave]] , [[On interrupt]] , [[Enable]] , [[Disable]] , [[Start]] , [[End]] , [[Version]] , [[Clockdivision]] , [[Crystal 2]] , [[Stop]]
+
[[IDLE]] , [[POWER MODE]] , [[POWERDOWN]] , [[POWERSAVE]] , [[ON INTERRUPT]] , [[ENABLE]] , [[DISABLE]] , [[START]] , [[END]] , [[VERSION]] , [[CLOCKDIVISION]] , [[CRYSTAL]] , [[STOP]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 128: Line 128:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Memory</span>
+
= <span class="f Header">Memory</span><br/> =
  
 
Memory functions set or read RAM , EEPROM or flash memory.
 
Memory functions set or read RAM , EEPROM or flash memory.
  
[[Adr adr2]] , [[Adr adr2]] , [[Writeeeprom]] , [[Cpeek]] , [[Cpeekh]] , [[Peek]] , [[Poke]] , [[Out]] , [[Readeeprom]] , [[Data 2]] , [[Inp]] , [[Read]] , [[Restore]] , [[Lookdown]] , [[Lookup]] , [[Lookupstr]] , [[Cpeekh]] , [[Load]] , [[Loadadr]] , [[Loadlabel]] , [[Loadwordadr]] , [[Memcopy]] , [[Getreg]] , [[Setreg]]
+
[[ADR]] , [[ADR2]] , [[WRITEEEPROM]] , [[CPEEK]] , [[CPEEKH]] , [[PEEK]] , [[POKE]] , [[OUT]] , [[READEEPROM]] , [[DATA 2]] , [[INP]] , [[READ]] , [[RESTORE]] , [[LOOKDOWN]] , [[LOOKUP]] , [[LOOKUPSTR]] , [[CPEEKH]] , [[LOAD]] , [[LOADADR]] , [[LOADLABEL]] , [[LOADWORDADR]] , [[MEMCOPY]] , [[GETREG]] , [[SETREG]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 138: Line 138:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Remote Control</span>
+
= <span class="f Header">Remote Control</span><br/> =
  
 
Remote control statements send or receive IR commands for remote control.
 
Remote control statements send or receive IR commands for remote control.
  
[[Rc5send]] , [[Rc6send]] , [[Getrc5]] , [[Sonysend]]
+
[[RC5SEND]] , [[RC6SEND]] , [[GETRC5]] , [[SONYSEND]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 148: Line 148:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">RS-232</span>
+
= <span class="f Header">RS-232</span><br/> =
  
 
RS-232 are serial routines that use the UART or emulate a UART.
 
RS-232 are serial routines that use the UART or emulate a UART.
  
[[Baud 2]] , [[Baud1]], [[Bufspace]] , [[Clear]], [[Echo]] , [[Waitkey]] , [[Ischarwaiting]] , [[Inkey]] , [[Inputbin]] , [[Inputhex]] , [[Input]] , [[Print]] , [[Printbin]] , [[Serin]] , [[Serout]] , [[Spc]] , [[Makemodbus]]
+
[[BAUD]] , [[BAUD1]] , [[BUFSPACE]] , [[CLEAR]] , [[ECHO]] , [[WAITKEY]] , [[ISCHARWAITING]] , [[INKEY]] , [[INPUTBIN]] , [[INPUTHEX]] , [[INPUT]] , [[PRINT]] , [[PRINTBIN]] , [[SERIN]] , [[SEROUT]] , [[SPC]] , [[MAKEMODBUS]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 158: Line 158:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">SPI</span>
+
= <span class="f Header">SPI</span><br/> =
  
 
SPI routines communicate according to the SPI protocol with either hardware SPI or software emulated SPI.
 
SPI routines communicate according to the SPI protocol with either hardware SPI or software emulated SPI.
  
[[Spiin]] , [[Spiinit]] , [[Spimove]] , [[Spiout]]
+
[[SPIIN]] , [[SPIINIT]] , [[SPIMOVE]] , [[SPIOUT]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 168: Line 168:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">String</span>
+
= <span class="f Header">String</span><br/> =
  
 
String routines are used to manipulate strings.
 
String routines are used to manipulate strings.
  
[[Asc]] , [[Charpos]], [[Ucase]] , [[Lcase]] , [[Trim]] , [[Split]] , [[Ltrim]] , [[Instr]] , [[Space]] , [[String]] , [[Rtrim]] , [[Left]] , [[Len]] , [[Mid]] , [[Right]] , [[Val]] , [[Str]] , [[Chr]] , [[Checksum]] , [[Checksum]], [[Hex]], [[Hexval]] , [[Quote]] , [[Replacechars]] , [[Str2digits]] , [[Delchar]], [[Delchars]] , [[Insertchar]]
+
[[ASC]] , [[CHARPOS]] , [[UCASE]] , [[LCASE]] , [[TRIM]] , [[SPLIT]] , [[LTRIM]] , [[INSTR]] , [[SPACE]] , [[STRING]] , [[RTRIM]] , [[LEFT]] , [[LEN]] , [[MID]] , [[RIGHT]] , [[VAL]] , [[STR]] , [[CHR]] , [[CHECKSUM]] , [[CHECKSUM]] , [[HEX]] , [[HEXVAL]] , [[QUOTE]] , [[REPLACECHARS]] , [[STR2DIGITS]] , [[DELCHAR]] , [[DELCHARS]] , [[INSERTCHAR]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 178: Line 178:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">TCP/IP</span>
+
= <span class="f Header">TCP/IP</span><br/> =
  
 
TCP/IP routines can be used with the W3100/IIM7000/IIM7010/W5100/W5200/W5300 modules.
 
TCP/IP routines can be used with the W3100/IIM7000/IIM7010/W5100/W5200/W5300 modules.
  
[[Base64dec]] , [[Base64enc]] , [[Ip2str]] , [[Udpread]] , [[Udpwrite]] , [[Udpwritestr]] , [[Tcpwrite]] , [[Tcpwritestr]] , [[Tcpread]] , [[Getdstip]] , [[Getdstport]] , [[Socketstat]] , [[Socketconnect]] , [[Socketlisten]] , [[Getsocket]] , [[Socketclose]] , [[Settcp]] , [[Gettcpregs]] , [[Settcpregs]] , [[Setipprotocol]] , [[Tcpchecksum]] , [[Socketdisconnect]] , [[Sntp]] , [[Tcpreadheader]] , [[Udpreadheader]]
+
[[BASE64DEC]] , [[BASE64ENC]] , [[IP2STR]] , [[UDPREAD]] , [[UDPWRITE]] , [[UDPWRITESTR]] , [[TCPWRITE]] , [[TCPWRITESTR]] , [[TCPREAD]] , [[GETDSTIP]] , [[GETDSTPORT]] , [[SOCKETSTAT]] , [[SOCKETCONNECT]] , [[SOCKETLISTEN]] , [[GETSOCKET]] , [[SOCKETCLOSE]] , [[SETTCP]] , [[GETTCPREGS]] , [[SETTCPREGS]] , [[SETIPPROTOCOL]] , [[TCPCHECKSUM]] , [[SOCKETDISCONNECT]] , [[SNTP]] , [[TCPREADHEADER]] , [[UDPREADHEADER]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 188: Line 188:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Text LCD</span>
+
= <span class="f Header">Text LCD</span><br/> =
  
 
Text LCD routines work with normal text based LCD displays.
 
Text LCD routines work with normal text based LCD displays.
  
[[Home]] , [[Cursor]] , [[Upperline]] , [[Thirdline]] , [[Initlcd]] , [[Lowerline]] , [[Lcd 2]] , [[Lcdat]] , [[Fourthline]] , [[Display]] , [[Lcdcontrast]] , [[Locate]] , [[Shiftcursor]] , [[Deflcdchar]] , [[Shiftlcd]] , [[Cls]] , [[Lcdautodim]] , [[Lcdcmd]], [[Lcddata]]
+
[[HOME]] , [[CURSOR]] , [[UPPERLINE]] , [[THIRDLINE]] , [[INITLCD]] , [[LOWERLINE]] , [[LCD]]&nbsp;, [[LCDAT]] , [[FOURTHLINE]] , [[DISPLAY]] , [[LCDCONTRAST]] , [[LOCATE]] , [[SHIFTCURSOR]] , [[DEFLCDCHAR]] , [[SHIFTLCD]] , [[CLS]] , [[LCDAUTODIM]] , [[LCDCMD]] , [[LCDDATA]]
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
+
<span style="font-family: 'Arial'; color: #000000">&nbsp;</span>
  
<span class="f Header">Trig & Math</span>
+
= <span class="f Header">Trig & Math</span><br/> =
  
 
Trig and Math routines work with numeric variables.
 
Trig and Math routines work with numeric variables.
  
[[Acos]] , [[Asin]] , [[Atn]] , [[Atn2]] , [[Exp]] , [[Rad2deg]] , [[Frac]] , [[Tan]] , [[Tanh]] , [[Cos]] , [[Cosh]] , [[Log]] , [[Log10]] , [[Round]] , [[Abs]] , [[Int]] , [[Max]] , [[Min]] , [[Sqr]] , [[Sgn]], [[Power]] , [[Sin]] , [[Sinh]] , [[Fix]] , [[Incr]] , [[Decr]] , [[Deg2rad]] , [[Checkfloat]] , [[Mod]]
+
[[ACOS]] , [[ASIN]] , [[ATN]] , [[ATN2]] , [[EXP]] , [[RAD2DEG]] , [[FRAC]] , [[TAN]] , [[TANH]] , [[COS]] , [[COSH]] , [[LOG]] , [[LOG10]] , [[ROUND]] , [[ABS]] , [[INT]] , [[MAX]] , [[MIN]] , [[SQR]] , [[SGN]] , [[POWER]] , [[SIN]] , [[SINH]] , [[FIX]] , [[INCR]] , [[DECR]] , [[DEG2RAD]] , [[CHECKFLOAT]] , [[MOD]]
  
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
Line 208: Line 208:
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
 
<span style="font-family: 'Arial';  color: #000000">&nbsp;</span>
  
<span class="f Header">Various</span>
+
= <span class="f Header">Various</span><br/> =
  
 
This section contains all statements that were hard to put into another group
 
This section contains all statements that were hard to put into another group
  
[[Const]] , [[Dbg]] , [[Declare function]] , [[Debug]], [[Declare sub]] , [[Defxxx]] , [[Dim]] , [[Dtmfout]] , [[Exit]] , [[Encoder]] , [[Getadc]] , [[Getkbd]] , [[Getatkbd]] , [[Getrc]] , [[Gosub]] , [[Goto]] , [[Local]] ,[[On value]] , [[Popall]] , [[Ps2mousexy]] , [[Pushall]] , [[Return]] , [[Rnd]] , [[Rotate]] , [[Sendscan]] , [[Sendscankbd]] , [[Shift]] , [[Sound]] , [[Stcheck]] , [[Sub]] , [[Swap]] , [[Varptr]] , [[X10detect]] , [[X10send]] , [[Readmagcard]] , [[Rem]] , [[Bits]] , [[Byval]] , [[Call]] , [[If else endif]] , [[If else endif]] , [[If else endif]] , [[Readhitag]] , [[Sort]] , [[Xteadecode]] , [[Xteaencode]]
+
[[CONST]] , [[DBG]] , [[DECLARE FUNCTION]] , [[DEBUG]] , [[DECLARE SUB]] , [[DEFXXX]] , [[DIM]] , [[DTMFOUT]] , [[EXIT]] , [[ENCODER]] , [[GETADC]] , [[GETKBD]] , [[GETATKBD]] , [[GETRC]] , [[GOSUB]] , [[GOTO]] , [[LOCAL]] , [[ON VALUE]] , [[POPALL]] , [[PS2MOUSEXY]] , [[PUSHALL]] , [[RETURN]] , [[RND]] , [[ROTATE]] , [[SENDSCAN]] , [[SENDSCANKBD]] , [[SHIFT]] , [[SOUND]] , [[STCHECK]] , [[SUB]] , [[SWAP]] , [[VARPTR]] , [[X10DETECT]] , [[X10SEND]] , [[READMAGCARD]] , [[REM]] , [[BITS]] , [[BYVAL]] , [[CALL]] , [[*IF ELSE ELSEIF ENDIF]] , [[READHITAG]] , [[SORT]] , [[XTEADECODE]] , [[XTEAENCODE]]
  
 
&nbsp;
 
&nbsp;
Line 218: Line 218:
 
&nbsp;
 
&nbsp;
  
<span class="f Header">XMEGA</span>
+
= <span class="f Header">XMEGA</span><br/> =
  
[[Readsig]]
+
[[READSIG]]
 
</div></div>
 
</div></div>
 +
 +
 +
<br/>{{Languages}}
 +
 +
[[Category:BASCOM_Language_Fundamentals]]

Latest revision as of 21:34, 12 February 2013

Contents

1WIRE

1Wire routines allow you to communicate with Dallas 1wire chips.

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

 

 

CAN

CONFIG CANBUS , CONFIG CANMOB , CANBAUD , CANRESET , CANCLEARMOB , CANCLEARALLMOBS , CANSEND , CANRECEIVE , CANID , CANSELPAGE , CANGETINTS

 

 

Conditions

Conditions execute a part of the program depending on a condition being True or False

IF THEN ELSE END IF , WHILE WEND , ELSE , DO LOOP , SELECT CASE END SELECT , FOR NEXT

 

 

Configuration

Configuration commands initialize the hardware to the desired state.

CONFIG , CONFIG ACI , CONFIG ADC , CONFIG ADCX , CONFIG BCCARD , CONFIG CLOCK , CONFIG COM1 , CONFIG COM2 , CONFIG DACX , CONFIG DATE , CONFIG DMXSLAVE , CONFIG EEPROM , CONFIG EXTENDED PORT , CONFIG PS2EMU , CONFIG ATEMU , CONFIG I2CSLAVE , CONFIG INPUT , CONFIG GRAPHLCD , CONFIG KEYBOARD , CONFIG TIMER0 , CONFIG TIMER1 , CONFIG LCDBUS , CONFIG LCDMODE , CONFIG 1WIRE , CONFIG LCD , CONFIG OSC , CONFIG SERIALOUT , CONFIG SERIALIN , CONFIG SPI , CONFIG SPIX , CONFIG SYSCLOCK , CONFIG LCDPIN , CONFIG PRIORITY , CONFIG SDA , CONFIG SCL , CONFIG DEBOUNCE , CONFIG WATCHDOG , CONFIG PORTCOUNTER0 AND COUNTER1 , CONFIG TCPIP , CONFIG TWISLAVE , CONFIG SINGLE , CONFIG X10 , CONFIG XRAM , CONFIG USB , CONFIG DP , CONFIG TCXX , CONFIG VPORT CONFIG ERROR , CONFIG POWER REDUCTION , CONFIG EVENT SYSTEM , CONFIG DMA , CONFIG DMACHX , CONFIG SUBMODE , CONFIG POWERMODE , CONFIG XPIN

 

 

Conversion

A conversion routine is a function that converts a number or string from one form to another.

BCD , GRAY2BIN , BIN2GRAY , BIN , MAKEBCD , MAKEDEC , MAKEINT , FORMAT , FUSING , BINVAL , CRC8 , CRC16 , CRC16UNI , CRC32 , HIGH , HIGHW , LOW , AESENCRYPT , AESDECRYPT

 

 

DateTime

Date Time routines can be used to calculate with date and/or times.

DATE , TIME , DATE , TIME , DAYOFWEEK , DAYOFYEAR , SECOFDAY , SECELAPSED , SYSDAY , SYSSEC , SYSSECELAPSED

 

 

Delay

Delay routines delay the program for the specified time.

WAIT , WAITMS , WAITUS , DELAY

 

 

Directives

Directives are special instructions for the compiler. They can override a setting from the IDE.

$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

 

 

File

File commands can be used with AVR-DOS, the Disk Operating System for AVR.

BSAVE , BLOAD , GET , VER , DISKFREE , DIR , DRIVERESET , DRIVEINIT , LINE INPUT , INITFILESYSTEM , EOF , WRITE , FLUSH , FREEFILE , FILEATTR , FILEDATE , FILETIME , FILEDATETIME , FILELEN , SEEK , KILL , DRIVEGETIDENTITY , DRIVEWRITESECTOR , DRIVEREADSECTOR , LOC , LOF , PUT , OPEN , CLOSE , CHDIR , MKDIR , RMDIR

 

 

Graphical LCD

Graphical LCD commands extend the normal text LCD commands.

GLCDCMD , GLCDDATA , SETFONT , LINE , PSET , SHOWPIC , SHOWPICE , CIRCLE , BOX

 

 

I2C

I2C commands allow you to communicate with I2C chips with the TWI hardware or with emulated I2C hardware.

I2CINIT , I2CRECEIVE , I2CSEND , I2START I2CSTOP I2CRBYTE I2CWBYTE

 

 

IO

I/O commands are related to the I/O pins and ports of the processor chip.

ALIAS , BITWAIT , TOGGLE , RESET , SET , SHIFTIN , SHIFTOUT , DEBOUNCE , PULSEIN , PULSEOUT

 

 

Micro

Micro statements are specific to the micro processor chip.

IDLE , POWER MODE , POWERDOWN , POWERSAVE , ON INTERRUPT , ENABLE , DISABLE , START , END , VERSION , CLOCKDIVISION , CRYSTAL , STOP

 

 

Memory

Memory functions set or read RAM , EEPROM or flash memory.

ADR , ADR2 , WRITEEEPROM , CPEEK , CPEEKH , PEEK , POKE , OUT , READEEPROM , DATA 2 , INP , READ , RESTORE , LOOKDOWN , LOOKUP , LOOKUPSTR , CPEEKH , LOAD , LOADADR , LOADLABEL , LOADWORDADR , MEMCOPY , GETREG , SETREG

 

 

Remote Control

Remote control statements send or receive IR commands for remote control.

RC5SEND , RC6SEND , GETRC5 , SONYSEND

 

 

RS-232

RS-232 are serial routines that use the UART or emulate a UART.

BAUD , BAUD1 , BUFSPACE , CLEAR , ECHO , WAITKEY , ISCHARWAITING , INKEY , INPUTBIN , INPUTHEX , INPUT , PRINT , PRINTBIN , SERIN , SEROUT , SPC , MAKEMODBUS

 

 

SPI

SPI routines communicate according to the SPI protocol with either hardware SPI or software emulated SPI.

SPIIN , SPIINIT , SPIMOVE , SPIOUT

 

 

String

String routines are used to manipulate strings.

ASC , CHARPOS , UCASE , LCASE , TRIM , SPLIT , LTRIM , INSTR , SPACE , STRING , RTRIM , LEFT , LEN , MID , RIGHT , VAL , STR , CHR , CHECKSUM , CHECKSUM , HEX , HEXVAL , QUOTE , REPLACECHARS , STR2DIGITS , DELCHAR , DELCHARS , INSERTCHAR

 

 

TCP/IP

TCP/IP routines can be used with the W3100/IIM7000/IIM7010/W5100/W5200/W5300 modules.

BASE64DEC , BASE64ENC , IP2STR , UDPREAD , UDPWRITE , UDPWRITESTR , TCPWRITE , TCPWRITESTR , TCPREAD , GETDSTIP , GETDSTPORT , SOCKETSTAT , SOCKETCONNECT , SOCKETLISTEN , GETSOCKET , SOCKETCLOSE , SETTCP , GETTCPREGS , SETTCPREGS , SETIPPROTOCOL , TCPCHECKSUM , SOCKETDISCONNECT , SNTP , TCPREADHEADER , UDPREADHEADER

 

 

Text LCD

Text LCD routines work with normal text based LCD displays.

HOME , CURSOR , UPPERLINE , THIRDLINE , INITLCD , LOWERLINE , LCD , LCDAT , FOURTHLINE , DISPLAY , LCDCONTRAST , LOCATE , SHIFTCURSOR , DEFLCDCHAR , SHIFTLCD , CLS , LCDAUTODIM , LCDCMD , LCDDATA

 

 

Trig & Math

Trig and Math routines work with numeric variables.

ACOS , ASIN , ATN , ATN2 , EXP , RAD2DEG , FRAC , TAN , TANH , COS , COSH , LOG , LOG10 , ROUND , ABS , INT , MAX , MIN , SQR , SGN , POWER , SIN , SINH , FIX , INCR , DECR , DEG2RAD , CHECKFLOAT , MOD

 

 

Various

This section contains all statements that were hard to put into another group

CONST , DBG , DECLARE FUNCTION , DEBUG , DECLARE SUB , DEFXXX , DIM , DTMFOUT , EXIT , ENCODER , GETADC , GETKBD , GETATKBD , GETRC , GOSUB , GOTO , LOCAL , ON VALUE , POPALL , PS2MOUSEXY , PUSHALL , RETURN , RND , ROTATE , SENDSCAN , SENDSCANKBD , SHIFT , SOUND , STCHECK , SUB , SWAP , VARPTR , X10DETECT , X10SEND , READMAGCARD , REM , BITS , BYVAL , CALL , *IF ELSE ELSEIF ENDIF , READHITAG , SORT , XTEADECODE , XTEAENCODE

 

 

XMEGA

READSIG



Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language