BASIC COMMANDS Section 2 1

BASIC COMMANDS Section 2 1

www.picaxe.com BASIC COMMANDS Section 2 1 IMPORTANT! This PDF is designed to be used with the shortcut links (document outline) visible on the left hand side. Displaying these links makes it much easier to navigate through this manual! (c) Revolution Education Ltd. Web: www.picaxe.com 1 revolution All rights reserved. Version 7.9.2 10/2015 www.picaxe.com BASIC COMMANDS Section 2 2 Contents Introduction. ................................................................................................... 5 PICAXE Software ............................................................................................... 5 Labels ............................................................................................................ 6 Comments ....................................................................................................... 6 Constants ........................................................................................................ 7 Symbols .......................................................................................................... 7 Pre-Processor and Directives .............................................................................. 8 Variables - General ......................................................................................... 13 Variables - Storage ......................................................................................... 14 Variables - Scratchpad .................................................................................... 15 Variables - System .......................................................................................... 16 Variables - Special function ............................................................................. 17 Variables - Mathematics .................................................................................. 25 Variables - Unary Mathematics ......................................................................... 28 Input / Output Pin Naming Conventions ........................................................... 30 adcconfig ...................................................................................................... 31 adcsetup ....................................................................................................... 32 backward ...................................................................................................... 37 bcdtoascii ..................................................................................................... 38 bintoascii ..................................................................................................... 39 booti2c ........................................................................................................ 40 branch .......................................................................................................... 42 button .......................................................................................................... 43 calibadc (calibadc10) ..................................................................................... 45 calibfreq ....................................................................................................... 46 clearbit ......................................................................................................... 47 compsetup .................................................................................................... 48 count ........................................................................................................... 53 daclevel ........................................................................................................ 54 dacsetup ....................................................................................................... 55 debug ........................................................................................................... 57 dec ............................................................................................................. 58 disablebod .................................................................................................... 59 disabletime ................................................................................................... 60 disconnect .................................................................................................... 61 do...loop ...................................................................................................... 62 doze ............................................................................................................. 63 eeprom (data) ............................................................................................... 64 enablebod ..................................................................................................... 65 enabletime .................................................................................................... 66 end ............................................................................................................. 67 exit ............................................................................................................. 68 for...next ...................................................................................................... 69 forward ......................................................................................................... 70 fvrsetup ........................................................................................................ 71 get ............................................................................................................. 72 gosub (call) .................................................................................................. 73 goto ............................................................................................................. 74 hi2cin .......................................................................................................... 75 hi2cout ........................................................................................................ 77 hi2csetup ..................................................................................................... 79 hi2csetup - slave mode (X2 parts only) ............................................................. 79 hi2csetup - master mode ................................................................................. 81 halt ............................................................................................................. 83 hibernate ...................................................................................................... 84 high ............................................................................................................. 86 high portc ..................................................................................................... 87 hintsetup ...................................................................................................... 88 hpwm ........................................................................................................... 89 (c) Revolution Education Ltd. Web: www.picaxe.com 2 revolution All rights reserved. Version 7.9.2 10/2015 www.picaxe.com BASIC COMMANDS Section 2 3 hpwmduty ..................................................................................................... 93 hserin ........................................................................................................... 94 hserout ......................................................................................................... 96 hsersetup ...................................................................................................... 97 hspiin (hshin) ............................................................................................... 99 hspiout (hshout) .......................................................................................... 100 hspisetup .................................................................................................... 101 i2cslave ...................................................................................................... 105 if...then \ elseif...then \ else \ endif .............................................................. 107 if...then {goto} ........................................................................................... 109 if...and/or..then {goto} ................................................................................ 109 if porta...then {goto} ................................................................................... 110 if portc...then {goto} ................................................................................... 110 if...then exit ............................................................................................... 111 if...and/or...then exit ................................................................................... 111 if...then gosub ............................................................................................ 112 if...and/or...then gosub ................................................................................ 112 inc ........................................................................................................... 114 infrain ........................................................................................................ 115 infrain2 ...................................................................................................... 117 infraout

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    279 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us