List of PIC Basic Commands

ADIN Read on-chip analogue to digital converter.
ASM-ENDASM It's always possible to insert assembly language.
BOX Draw a square on a graphic LCD.
BRANCH Computed GOTO for PIC devices with only one page memory. (= ONGOTO, see there)
BRANCHL Computed GOTO for PIC devices with more than one page memory or 16-bit core PIC devices. (= ONGOTOL, see there)
BREAK Exit a FOR-NEXT, REPEAT-UNTIL or WHILE-WEND loop early.
BSTART Send a START condition to the I2C bus.
BSTOP Send a STOP condition to the I2C bus.
BRESTART Send a RESTART condition to the I2C bus.
BUSACK Send a ACKNOWLEGDE condition to the I2C bus.
BUSIN Read bytes from I2C device.
BUSOUT Write bytes to I2C device.
BUTTON Detect and debounce a key press.
CALL Call assembly language subroutine.
CDATA Define initial contents in memory.
CF_INIT Initialise the lines used for Compact Flash card.
CF_SECTOR Setup the sector in the Compact Flash card that is to be written or read by the commands CF_READ and CF_WRITE.
CF_READ Read data from a Compact Flash card.
CF_WRITE Write data to a Compact Flash card.
CIRCLE Draw a circle on a graphic LCD.
CLEAR Place a variable or bit in a low state or clear all RAM area.
CLEARBIT Clear a bit or a port or variable, using a variable index.
CLS Clear a LCD.
CONFIG Adjust programming fuse configurations.
COUNTER Count number of pulses on a pin.
CREAD Read word from code memory.
CURSOR Position the cursor on a LCD.
CWRITE Write word to code memory.
DATA Define initial contents in memory.
DEC Variable = Variable - 1 (Decrement).
DECLARE Adjust library routine parameters.
DELAYMS Delay with millisecond resolution (ms).
DELAYUS Delay with microsecond resolution (2s).
DEVICE Choose the type of PIC to compile with.
DIG Return the value of a decimal digit.
DIM Create a variable.
DISABLE DISABLE software interrupts that were previously ENABLED.
DTMFOUT Produce a DTMF touch tone sequence on a pin.
EDATA Define initial contents of on-chip EEPROM.
ENABLE ENABLE software interrupts that were previously DISABLED.
END Stop execution.
EREAD Read byte, word or dword from on-chip EEPROM.
EWRITE Write byte, word or dword to on-chip EEPROM.
FOR...TO...NEXT...
STEP
Repeatedly execute statements.
FREQOUT Generate one or two tones of differing or the same frequencies.
GETBIT Examine a bit of a port or variable, using a variable index.
GOSUB Call BASIC subroutine at specified label.
GOTO Continue execution at specified label.
HBRESTART Send a RESTART condition to the I2C bus using the MSSP module.
HBSTART Send a START condition to the I2C bus using the MSSP module.
HBSTOP Send a STOP condition to the I2C bus using the MSSP module.
HBUSACK Send a ACKNOWLEDGE condition to the I2C bus using the MSSP module.
HBUSIN Read bytes from I2C device using the MSSP module.
HBUSOUT Write bytes to I2C device using the MSSP module.
HIGH Make pin or port high.
HPWM Generate a PWM signal using the CCP module.
HRSIN Receive data from the serial port on devices that contain a USART.
HRSOUT Transmit data to the serial port on devices that contain a USART.
HSERIN Receive data from the serial port on devices that contain a USART.
HSEROUT Transmit data to the serial port on devices that contain a USART.
HRSIN2 Same as HRSIN but using a 2nd USART if available.
HRSOUT2 Same as HRSOUT but using a 2nd USART if available.
HSERIN2 Same as HSERIN but using a 2nd USART if available.
HSEROUT2 Same as HSEROUT but using a 2nd USART if available.
IF...THEN...ELSEIF...
ELSE...ENDIF
Conditionally execute statements.
INC Variable = Variable + 1 (Increment)
INCLUDE Load a BASIC file into the source code.
INKEY Scan a matrix keypad.
INPUT Make a pin or port an input.
LCDREAD Read a single byte from a graphic LCD.
LCDWRITE Write bytes to a graphic LCD.
LDATA Place information into code memory.
LEFT$ Extract n amount of characters from the left of a source string and copy them into a destination string.
LEN Find the length of a string, NULL terminator not included.
[LET] LET is optional (not necessary). Assign result of an expression to a variable.
LINE Draw a straight line in any direction on a graphic LCD.
LINETO Draw a straight line in any direction on a graphic LCD, starting from the previous LINE command's end position.
LOADBIT Set or clear a bit of a port or variable, using a variable index.
LOOKDOWN Search constant in table for value.
LOOKDOWNL Search constant or variable in table for value.
LOOKUP Fetch constant value from table.
LOOKUPL Fetch constant or variable value from table.
LOW Make pin or port low.
LREAD Read a value from a LDATA table.
LREAD8 Access 8-bit values from an LDATA table.
LREAD16 Access 16-bit values from an LDATA table.
LREAD32 Access 32-bit values from an LDATA table, this also includes floating point values.
MID$ Extract n amount of characters from a source string beginning at n characters from the left, and copy them into a destination string.
ON GOSUB Cause the program to Call a subroutine based on an index value
ON GOTO Cause the program to jump to different locations based on a variable index. On a PICmicro device with only one page of memory. (See BRANCH)
ON GOTOL Cause the program to jump to different locations based on a variable index. On a PICmicro device with more than one page of memory or 16-bit core devices. (See BRANCHL)
ON INTERRUPT Execute a subroutine on a SOFTWARE interrupt.
ON_INTERRUPT Execute a subroutine on a HARDWARE interrupt.
ON_LOW_INTERRUPT Execute a subroutine when a LOW PRIORITY HARDWARE interrupt occurs on a 16-bit core device.
OUTPUT Make a pin or port output.
OREAD Receive data from a device using the Dallas 1-wire protocol. (One wire protocol)
ORG Set program origin.
OWRITE Transmits data to a device using the Dallas 1-wire protocol. (One wire protocol)
PAUSE Better is using DELAYMS.
PEEK Read byte from register.
PIXEL Read a single pixel from a graphic LCD.
PLOT Set a single pixel on a graphic LCD.
POKE Write byte to register.
POP Pull a single variable or multiple variables from a software stack
POT Read potentiometer on a specified pin.
PRINT Display characters on a LCD.
PULSIN Measure pulse width on a pin.
PULSOUT Generate pulse to a pin.
PUSH Place a single variable or multiple variables onto a software stack.
PWM Output pulse width modulated pulse train to a pin.
RANDOM Generate a pseudo-random number.
RC5IN Read infrared signal from Philips remote controls (TV, audio, etc.) (RC5 protocol) see also SONYIN.
RCIN Measure pulse width on a pin.
READ Read byte or word from memory.
REM Add a remark to the source code, use as many text as you like. More clear is to use the apostrof (') or the point-comma (;)
REPEAT...UNTIL Execute a block of instructions until a condition is true.
RESTORE Adjust the position of data to READ.
RESUME Re-enable software interrupts and return.
RETURN Continue at statement following last GOSUB.
RIGHT$ Extract n amount of characters from the right of a source string and copy them into a destination string.
RSIN Asynchronous serial input from fixed pin and baud.
RSOUT Asynchronous serial output to fixed pin and baud.
SEED Seed the random number generator.
SELECT...CASE...
ENDSELECT
Conditionally run blocks of code.
SERIN Receive asynchronous serial data (i.e. RS232 data).
SEROUT Transmit asynchronous serial data (i.e. RS232 data).
SERVO Control a servo motor.
SET Place a variable or pin in a high state.
SET_OSCCAL Calibrate the on-chip oscillator. (Adjust intern oscillator)
SETBIT Set a bit of a port or variable, using a variable index.
SHIN Synchronous serial input (SHIFT IN).
SHOUT Synchronous serial output (SHIFT OUT).
SLEEP Power down processor for a period of time.
SNOOZE Power down processor for short period of time.
SONYIN Read infrared signal from Sony remote controls (TV, audio, etc.) (SIRC) see also RC5IN.
SOUND Generate tone or white-noise on specified pin.
SOUND2 Generate 2 tones to 2 separate pins.
STOP Stop program execution.
STRN Create a NULL terminated byte array.
STR$ Convert the contents of a variable to a NULL terminated string.
SWAP Exchange the values of two varibales.
SYMBOL Create an alias for a variable or gives a name to a constant, port, pin or register.
TOGGLE Reverse the state of a port bit. Makes an output high when it was low or low when it was high.
TOLOWER Convert the characters from a source string to lower case.
TOUPPER Convert the characters from a source string to upper case.
UNPLOT Clear a single pixel on a graphic LCD.
USBINIT Initialise the USB interrupt on devices that contain a USB module.
USBIN Receive data via a USB endpoint on devices that contain USB.
USBOUT Transmit data via a USB endpoint on devices that contain USB.
VAL Convert a NULL terminated string to an integer value.
VARPTR Locate the address of a variable.
WHILE...WEND Execute statements while condition is true.
XIN Receive data using the X10 protocol.
XOUT Transmit data using the X10 protocol.


Accurate LC Meter Capacitance Inductance Meter with 16F628 and LCD
Volt Ampere Meter with 16F876 Microcontroller and LCD display
 
Accurate LC Meter

Build your own Accurate LC Meter (Capacitance Inductance Meter) and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils and inductors. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging as well as reset switch and produces very accurate and stable readings.
PIC Volt Ampere Meter

Volt Ampere Meter measures voltage of 0-70V or 0-500V with 100mV resolution and current consumption 0-10A or more with 10mA resolution. The meter is a perfect addition to any power supply, battery chargers and other electronic projects where voltage and current must be monitored. The meter uses PIC16F876A microcontroller with 16x2 backlighted LCD.

50MHz 60MHz Frequency Meter / Counter with 16F628 & LCD
1Hz - 2MHz XR2206 Function Generator
60MHz Frequency Meter / Counter

Frequency Meter / Counter measures frequency from 10Hz to 60MHz with 10Hz resolution. It is a very useful bench test equipment for testing and finding out the frequency of various devices with unknown frequency such as oscillators, radio receivers, transmitters, function generators, crystals, etc.
1Hz - 2MHz XR2206 Function Generator

1Hz - 2MHz XR2206 Function Generator produces high quality sine, square and triangle waveforms of high-stability and accuracy. The output waveforms can be both amplitude and frequency modulated. Output of 1Hz - 2MHz XR2206 Function Generator can be connected directly to 60MHz Counter for setting precise frequency output.

BA1404 HI-FI Stereo FM Transmitter
USB IO Board PIC18F2455 / PIC18F2550
BA1404 HI-FI Stereo FM Transmitter

Be "On Air" with your own radio station! BA1404 HI-FI Stereo FM Transmitter broadcasts high quality stereo signal in 88MHz - 108MHz FM band. It can be connected to any type of stereo audio source such as iPod, Computer, Laptop, CD Player, Walkman, Television, Satellite Receiver, Tape Deck or other stereo system to transmit stereo sound with excellent clarity throughout your home, office, yard or camp ground.
USB IO Board

USB IO Board is a tiny spectacular little development board / parallel port replacement featuring PIC18F2455/PIC18F2550 microcontroller. USB IO Board is compatible with Windows / Mac OSX / Linux computers. When attached to Windows IO board will show up as RS232 COM port. You can control 16 individual microcontroller I/O pins by sending simple serial commands. USB IO Board is self-powered by USB port and can provide up to 500mA for electronic projects. USB IO Board is breadboard compatible.

ESR Meter / Transistor Tester Kit
Audiophile Headphone Amplifier Kit
 
ESR Meter / Capacitance / Inductance / Transistor Tester Kit

ESR Meter kit is an amazing multimeter that measures ESR values, capacitance (100pF - 20,000uF), inductance, resistance (0.1 Ohm - 20 MOhm), tests many different types of transistors such as NPN, PNP, FETs, MOSFETs, Thyristors, SCRs, Triacs and many types of diodes. It also analyzes transistor's characteristics such as voltage and gain. It is an irreplaceable tool for troubleshooting and repairing electronic equipment by determining performance and health of electrolytic capacitors. Unlike other ESR Meters that only measure ESR value this one measures capacitor's ESR value as well as its capacitance all at the same time.
Audiophile Headphone Amplifier Kit

Audiophile headphone amplifier kit includes high quality audio grade components such as Burr Brown OPA2134 opamp, ALPS volume control potentiometer, Ti TLE2426 rail splitter, Ultra-Low ESR 220uF/25V Panasonic FM filtering capacitors, High quality WIMA input and decoupling capacitors and Vishay Dale resistors. 8-DIP machined IC socket allows to swap OPA2134 with many other dual opamp chips such as OPA2132, OPA2227, OPA2228, dual OPA132, OPA627, etc. Headphone amplifier is small enough to fit in Altoids tin box, and thanks to low power consumption may be supplied from a single 9V battery.
 

Arduino Prototype Kit
RF Remote Control 433MHz Four Channel
 
Arduino Prototype Kit

Arduino Prototype is a spectacular development board fully compatible with Arduino Pro. It's breadboard compatible so it can be plugged into a breadboard for quick prototyping, and it has VCC & GND power pins available on both sides of PCB. It's small, power efficient, yet customizable through onboard 2 x 7 perfboard that can be used for connecting various sensors and connectors. Arduino Prototype uses all standard through-hole components for easy construction, two of which are hidden underneath IC socket. Board features 28-PIN DIP IC socket, user replaceable ATmega328 microcontroller flashed with Arduino bootloader, 16MHz crystal resonator and a reset switch. It has 14 digital input/output pins (0-13) of which 6 can be used as PWM outputs and 6 analog inputs (A0-A5). Arduino sketches are uploaded through any USB-Serial adapter connected to 6-PIN ICSP female header. Board is supplied by 2-5V voltage and may be powered by a battery such as Lithium Ion cell, two AA cells, external power supply or USB power adapter.
200m 4-Channel 433MHz Wireless RF Remote Control

Having the ability to control various appliances inside or outside of your house wirelessly is a huge convenience, and can make your life much easier and fun. RF remote control provides long range of up to 200m / 650ft and can find many uses for controlling different devices, and it works even through the walls. You can control lights, fans, AC system, computer, printer, amplifier, robots, garage door, security systems, motor-driven curtains, motorized window blinds, door locks, sprinklers, motorized projection screens and anything else you can think of.
 

Electronics-DIY.com © 2002-2017. All Rights Reserved.