JavaScript is disabled on your browser. Please enable JavaScript to enjoy all the features of this site.
GCBASIC documentation
Microcontroller Fundamentals
Sidebar
Prev
|
Next
Microcontroller Fundamentals
Inputs/Outputs
Configuration
USB Drivers Installer
Contents
Search
Introducing GCBASIC
Using GCBASIC
PIC users and Beginners: Start Here
Changes
Command Line Parameters
Frequent errors
A Glossary
Frequently Asked Questions
Troubleshooting
Compiler Insights
Libraries Overview
Acknowledgements
Tricks and Tips
UNO as ISP programmer
Microcontroller Fundamentals
Inputs/Outputs
Configuration
USB Drivers Installer
Variables
Data Types
Variable Types
Advanced VariableTypes
Variable Memory Allocation
Reference Data
Efficient Implementation of Lookup Reference Tables in GCBASIC
Syntax
Arrays
Comments
Line Continuation
Conditions
Constants
Functions
Labels
Lookup Tables
Miscellaneous
ReadTable
Scripts
Subroutines
Converters
Command References
Analog/Digital conversion
Analog/Digital Conversion Overview
ADFormat (Deprecated - Do not use)
ADOff
ReadAD
ReadAD10
ReadAD12
Analog/Digital Conversion Code Optimisation
Bitwise
Bitwise Operations Overview
FnLSL
FnLSR
SetWith
Memory
MCU EEPROM ( DFM )
EPRead
EPWrite
Dataset for EEPROM
HEFM ( PFM )
HEFM Overview
HEFRead
HEFReadWord
HEFWrite
HEFWriteWord
HEFReadBlock
HEFWriteBlock
HEFEraseBlock
PROGMEM ( PFM )
PFMRead
PFMWrite
DATA
ProgramErase
ProgramRead
ProgramWrite
PROGMEM ( MCU Configuration )
DeviceConfigurationRead
SAFM
SAFM Overview
SAFRead
SAFReadWord
SAFWrite
SAFWriteWord
SAFReadBlock
SAFWriteBlock
SAFEraseBlock
EERAM ( Device )
47xxx EERam Devices
SRAM ( Device )
SRAM Overview
SRAMRead
SRAMWrite
Flow control
Do
End
Exit
For
Gosub
Goto
If
IndCall
Pause
Repeat
Select
Wait
Fixed Voltage Reference
FVRInitialize
FVRIsOutputReady
Interrupts
Interrupts overview
IntOff
IntOn
On Interrupt
On Interrupt: The default handler
Keypad
Keypad Overview
KeypadData
KeypadRaw
Graphical LCD
GLCD Overview
Fonts and Characters
e-Paper Controllers
HX8347G Controllers
ILI9326 Controllers
ILI9340 Controllers
ILI9341 Controllers
ILI9481 Controllers
ILI9486(L) Controllers
ILI9488 Controllers
KS0108 Controllers
NEXTION Controllers
NT7108C Controllers
PCD8544 Controllers
SDD1289 Controllers
SH1106 Controllers
SSD1306 Controllers
SSD1331 Controllers
SSD1351 Controllers
ST7567 Controllers
ST7735 Controllers
ST7789 Controllers
ST7920 Controllers
ST7920GLCDClearGraphics
ST7920GLCDDisableGraphics
ST7920GLCDEnableGraphics
ST7920GraphicTest
ST7920LineHs
ST7920Locate
ST7920Tile
ST7920cTile
ST7920gLocate
ST7920gTile
ST7920lineh
ST7920linev
ST7920GLCDReadByte
ST7920WriteByte
ST7920WriteCommand
ST7920WriteData
ST7920gReaddata
T6963 Controllers
UC1601 Controllers
Box
Circle
Ellipse
FilledBox
FilledCircle
FilledEllipse
FilledTriangle
GLCDCLS
GLCDDisplay
GLCDDrawChar
GLCDDrawString
GLCDPrint
GLCDPrintLargeFont
GLCDPrintWithSize
GLCDLocateString
GLCDPrintString
GLCDPrintStringLn
GLCDRotate
GLCDReadByte
GLCDTimeDelay
GLCDTransaction
GLCDWriteByte
Line
Hyperbole
Parabola
Pset
Triangle
Touch Screen
ADS 7843 Serial Driver
Liquid Crystal Display
LCD Overview
LCD_IO 0
LCD_IO 1
LCD_IO 2_74xx164
LCD_IO 2
LCD_IO 3
LCD_IO 2_74xx174
LCD_IO 4
LCD_IO 8
LCD_IO 10
LCD_IO 10 Port Configuration
LCD_IO 12
LCD_IO 12 Port Configuration
LCD_IO 14
LCD_IO 14 Port Configuration
LCD_IO 107
LCD_VARIANT
LCD_SPEED
LCD_WIDTH
CLS
Get
LCDBacklight
LCDCreateChar
LCDCreateGraph
LCDCmd
LCDCursor
LCDHex
LCDHome
LCDDisplayOn
LCDDisplayOff
LCDSpace
LCDWriteChar
Locate
Print
Put
Examples
LCD_IO 2 Example
LCD_IO 4 Example
LCD_IO 8 Example
LCD_IO 10 Example
Pulse width modulation
Microchip PIC PWM Overview
PWM Software Mode
PWMOut
HPWM CCP
HPWMUpdate for CCP/PWM Modules(s)
HPWMOff
HPWM_CCPTimerN
HPWMOff
HPWM 10 Bit
HPWMUpdate for PWM Module(s)
HPWMOff
HPWM 16 Bit
HPWM Fixed Mode
PWMOn
PWMOff
Hardware PWM Code Optimisation
ATMEL AVR PWM Overview
HPWM AVR OCRnx
HPWM Fixed Mode for AVR
PWMOn for AVR
PWMOff for AVR
Random Numbers
Overview
Random
Randomize
7-Segment Displays
7 Segment Displays Overview
7 Segment Displays - Legacy
Common Cathode
Common Anode
DisplayValue
DisplayChar
DisplaySegment
7 Segment Displays - TM1637 4 Digits
TMWrite4Dig
TM_Bright
TMDec
TMHex
TMWriteChar
7 Segment Displays - TM1637 6 Digits
TMWrite6Dig
TM_Bright
TMDec
TMHex
TMWriteChar
TM_Point
One Wire Devices
DS18B20
ReadDigitalTemp
ReadTemp
ReadTemp12
DS18B20SetResolution
Serial Communications
RS232 (software)
RS232 Software Overview
InitSer
SerSend
SerReceive
SerPrint
RS232 (software optimised)
RS232 Software Overview - Optimised
SerNSend
SerNPrint
SerNReceive
RS232 (hardware)
RS232 Hardware Overview
HSerGetNum
HSerGetString
HSerPrint
HSerPrintStringCRLF
HSerReceive
HSerReceiveFrom
HSerSend
HserPrintByteCRLF
HserPrintCRLF
PS/2
PS/2 Overview
InKey
PS2SetKBLeds
PS2ReadByte
PS2WriteByte
SPI
SPI Overview
SPIMode
SPITransfer
FastHWSPITransfer
I2C Software
I2C Overview
I2CAckPollState
I2CAckpoll
I2CReceive
I2CReset
I2CRestart
I2CSend
I2CStart
I2CStartoccurred
I2CStop
I2C/TWI Hardware Module
HI2C Overview
HI2CAckPollState
HI2CReceive
HI2CRestart
HI2CStart
HI2CStartOccurred
HI2CMode
HI2CSetAddress
HI2CStop
HI2CStopped
HI2CWaitMSSP
Sound
Sound Overview
Tone
ShortTone
Play
Play RTTTL
Timers
Timer Overview
ClearTimer
InitTimer0
InitTimer0 8bit/16bit
InitTimer1
InitTimer2
InitTimer3
InitTimer4
InitTimer5
InitTimer6
InitTimer7
InitTimer8
InitTimer10
InitTimer12
Settimer
StartTimer
StopTimer
Reading Timers
SMT Timers
Variables Operations
Using Variables
More on setting Variables and Constants
Setting Variables
Variable Lifecycle
Dim
Alloc
BcdToDec_GCB
DecToBcd_GCB
Rotate
Set
SWAP4
SWAP
String Manipulation
Asc
ByteToBin
ByteToHex
ByteToString
Chr
Fill
IntegerToBin
IntegerToHex
IntegerToString
Instr
LCase
Left
LeftPad
Len
LongToBin
LongToHex
LongToString
Ltrim
Mid
Pad
Right
Rtrim
Trim
UCase
SingleToBin
SingleToHex
SingleToString
StringToByte
StringToLong
StringToSingle
StringToWord
ULongIntToBin
WordToBin
WordToHex
WordToString
Concatenation
Deprecated string functions.
Hex
Str
Val
Miscellaneous Commands
Dir
GetUserID
Pot
PulseOut
PulseOutInv
PulseIn
PulseInInv
Peek
Poke
Weak Pullups
Maths
Abs
Average
Difference
Int
Logarithms
Log2
Loge
Log10
Power
RoundSingle
Scale
Sqrt
Trigonometry Sine, Cosine and Tangent
Trigonometry ATAN
Peripheral Pin Select
Peripheral Pin Select for Microchip microcontrollers.
UnLockPPS
LockPPS
Compiler Directives
#asmraw
#chip
#config
#DEFINE
#UNDEFINE
#if
#ifnot
#ifdef
#ifndef
#include
#insert
#script
#startup
#mem
Other directives
Compiler Options
#Option Explicit
#Option NoConfig
#Option Bootloader
#Option NoContextSave
#Option NoLatch
#Option Required
#Option Volatile
#Option ReserveHighProg
Using Assembler
Assembler Overview
Macros
Macros Overview
Example Macros
Measuring a Pulse Width
Implementing a method with a Pin name as a parameter
Example Programs
Flashing LEDs and an Interrupt
Flashing LED with timing parameters
Generate Accurate Pulses
Graphical LCD Demonstration
InfraRed Remote
SonyRemote.h
Midpoint Circle Algorithm
I2C Master Hardware
I2C Slave Hardware
RGB LED Control
Serial/RS232 Buffer Ring
Trigonometry Circle
Graphical GCBASIC
Code Documentation
Windows .NET Support
GCBASIC for Linux
Overview - Linux Operating System
Make ASM, Make HEX and Programming Operations using the provided Linux scripts
GCBASIC for ARM & Pi
Overview - Raspberry Pi
GCBASIC for Apple macOS
Overview - Apple macOS GCBASIC
GCBASIC for FreeBSD
Overview - FreeBSD GCBASIC
GCBASIC Maintenance and Development
GCBASIC Maintenance
Development Guide
Development Guide for GCBASIC.EXE compiler
ABOUT GLCD Library Support
Development Guide for GCBASIC Preferences Editor
GCBASIC with the AVRISP or MKII Programmer
Setup an AVRISP MKII or USBtinyISP for ATTINY10 chip under Windows
Search Highlighter (On/Off)