binary1248
Senior Member
I am using an AXE027 download cable.
My project is using a 40X2 chip
And the AXE091 Development board.
Sometimes the program loads, sometimes it gives me a comm port error.
Yet on PE 5.5.1 program loads always work, with the same program, same port (port4 in my system).
Running on a VISTA widows.
.
I like the new PE6 but this error occurs to often so until I get some direction where the problem
lies, I am going back to 5.5.1
I'll post the code shortly, but since it always works on PE 5, but only sometimes on PE6. This is a only problem with downloads to the 40X2, if it loads, the program executes fine.
.
Here is the code, which runs fine on either downloads, but 50% of the time it won't download using PE 6.0.8.0
SCREEN SHOT of ERROR with Editor Page.
View attachment 18072
My project is using a 40X2 chip
And the AXE091 Development board.
Sometimes the program loads, sometimes it gives me a comm port error.
Yet on PE 5.5.1 program loads always work, with the same program, same port (port4 in my system).
Running on a VISTA widows.
.
I like the new PE6 but this error occurs to often so until I get some direction where the problem
lies, I am going back to 5.5.1
I'll post the code shortly, but since it always works on PE 5, but only sometimes on PE6. This is a only problem with downloads to the 40X2, if it loads, the program executes fine.
.
Here is the code, which runs fine on either downloads, but 50% of the time it won't download using PE 6.0.8.0
Code:
' Name: PendulamDriveNoXtal
'Pendulam drive without Xtal timing
'3/31/2015
#picaxe 40X2
#no_data 'save some load time
#no_table
'#terminal 9600
let adcsetup = %00000001
'
'
let dirsb = %11111111 'All D port pins high
'
'setup serial lcd
SETfreq m4 '####**** NEED TO adjust freq for ser 9600 baud to
'work correctly for LCD later.
'switch b ports to output
symbol ADvalue = b1
symbol PenLED = b.6 'pendulam trip LED indicator
mainx:
readadc 0,ADvalue ;physical pin 2 read value into ADvalue
;
if advalue > 5 then ;
high PenLED ;set led on, Physical pin 39
pause 30
;Wait for pendulam swing to go past estimated center point, then push
pause 50 ;50 ms delay
high B.7 ; switch on output B.7 Pulse B.7 to push pendulam. Physical pin 40
pause 100 ; wait 100 millisecs
low B.7 ; switch off output B.7
else
low PenLED ;clr pendulam led
end if
goto mainx
View attachment 18072
Last edited: