Page 47 - Making PIC Microcontroller Instruments and Controllers
P. 47

36   THE SOFTWAhE.IHE COIPIIENs.  AIID THE  EDTON


                     HIGH                Make pin output  high.

                     I2CIN               Read bytes  from I2C devtce.
                     I2COUT              Send bytes  to I2C device.
                     IF.THEN  -  GOTO    If specified condition  is true.
                     INPUT               Make pin an input.

                      ILETI              Assign  result of an expression  to a variable
                     LOOKDOWN            Search table lbr value.

                     LOOKUP              Fetch value from table
                     LOW                 Make pin output low
                      NAP                Power down  processor for shoft  period  oftime.
                      OI-ITPI-IT         Make pin an output.

                      PAUSE               Delay  (l  msec resolution).
                      PEEK                Read byte from register
                      POKE                Write byte to register.

                      POT                 Read  potentiometer  on specined  pin.
                      PULSIN              Measure  puise  width  (10 psec  resolution).
                                                              resolution).
                      PULSOUT             Gercrate  pulse  (10  Llsec
                      PwM                 output puise  width modulated  pulse  train to pin
                      RANDOM              Generatepseudorandomnumber
                      READ                Read byte fiom on chip EEPROM.

                      RETURN              Continue execution  at statement following last execuled
                                            GOSUB call.

                      REVERSE             Make output  pin an iryut  or an input pin an oulput.
                      SERIN               Asynchronous  serial input  (8N1).
                      SEROUT              Asynchronous  serial output  (8Nl).
                      SLEEP               Power down  processor  for a  period of time
                                            (l  sec resolution).
                      SOUND               Generate tone  or white noise on specified  pin

                      TOGGLE              MaIe pin output and toggle state.
                      WRITE               Write byte to on chip EEPROM.
   42   43   44   45   46   47   48   49   50   51   52