The following program compiles fine in both PBP and MPASM, but the version compiled with MPASM refuses to run. I'm using V5.14 of MPASM. Programs compiled on other PICS run fine.
OPTION_REG = %11000000
INTCON = 0
PIE1 = 0
PIE2 = 0
ANSEL = 0
TRISA = %00000000
TRISB = %00100001
TRISC = %00000000
TRISD = %00000000
TRISE = %1000
OSCCON = %00000001
CMCON0 = 7
ADCON0 = 0
WDTCON = 0
CLEAR
LCDPS = %00110000
LCDSE0 = %11111110
LCDSE1 = %11111111
LCDSE2 = %11111111
LCDDATA0 = $00
LCDDATA1 = $00
LCDDATA2 = $00
PIR2 = 0
SMCOUNT var byte
SMCOUNT10 var byte
SMCOUNT100 var byte
clear
LCDCON = %11001000
PORTA.7 = 0
Main:
PORTA.7 = 1
pause 10
PORTA.7 = 0
pause 10
goto Main
Anyone have any ideas why this is?
Thank you for your help.
Bookmarks