I've been having some problems getting an XOUT command to work.
Pic: 18F2620
PBP: 2.46
MCS: 3.0.0.5
Prog: MELABS U2
Code;
include "modedefs.bas"
.......
house = 1
unit = 1
pause 100
XOUT PORTa.1,PORTa.2,[5\5,5\uniton]
' XOUT TRISA.3,PORTA.0,[house\lightsOff]
' XOUT Sig, Zer,[house\unit,house\%11110]
pause 50
Problem: The code above is parts of the program that compiles and loads to the 2620 OK.
I have LCD outputs that help me track the programs progress and I know for sure that when the program hits the XOUT command the program "jumps" back to begin. I'm not sure whether the PIC is resetting or the program is causing the jump. The pic and the board it is on are known good units that I use for other programs. The output pins used for Data and Zero crossing have no connections, so I know the pins aren't being shorted to ground.
Does the 18F2620 & PBP combination not support the X-10 XOUT and XIN commands?
I've seen references to making some changes to the 18F2620 lib file, but don't know what or how to change.
Is anybody out there that has had this same problem and a fix?
John P
Virginia Beach, VA
Bookmarks