You are on page 1of 1

'****************************************************************

'* Name : UNTITLED.BAS *


'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2014 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 07/06/2014 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
Device 18F4550
Xtal 20
Declare proton_start_address=$1000
All_Digital= true
TRISD=0
Dim i As Byte
Dim j As Byte
Dim num As Byte
Dim Dec As Byte
inicio:
If PORTD.0 = 1 Then lod
If PORTD.0 = 0 Then inicio
GoTo inicio
lod:
For i=0 To 999
For j=0 To 999
num= i Dig 0
PORTD= num + 32
DelayMS 500
Dec= i Dig 1
PORTD= Dec + 64
DelayMS 500
Next i
Next j
GoTo inicio
End

You might also like