Even if it's not important.. it could be interesting to have
Hardware and Software block definition
Code:
'
' Lcd
' ---
With LCD
Data = PORTA,0 ' Set data pin of LCD to
' PORTA.0-PORTA.3
RS = PORTB,4 ' Set RS bit of LCD to
' PORTB.4
E = PORTB,5 ' Set E bit of LCD to
' PORTB.5
LINES = 4 ' 4 Lines LCD
COMMANDUS = 2000 ' Command delay time in uSec
DATAUS = 50 ' Data delay time in uSec
EndWith
Same for all other function like DEBUG, HPWM, HSERIN....
I/O Alias block
Code:
Alias PORTA
.0 = SCL
.1 = SDA
.2 = StatusLED
EndAlias
Variable type block
Code:
BYTE
CounterA
Discard
BlahBlah
EndBYTE
Bookmarks