Quote Originally Posted by crhomberg View Post
I am using a 16F877A and this is a small program I wrote to test the MPASM.
I compiled it with PM and it flashed the LED and sent the data out to my PC fine.
I compiled using MPASM and the LED doesn't flash and the serial output is a constant string of 8 bit bytes with value 0.

Are there settings for MPASM that I have missed?

Regards

Chris

OOPS!

Here is the code,

'************************************************* ***************
@ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
define osc 20
Include "modedefs.bas"

COUNTER VAR BYTE

COUNTER=0

START:

IF COUNTER= 250 THEN
TOGGLE PORTD.0 'LED TO INDICATE LOOPING
COUNTER=0
ELSE
Serout2 PORTA.0,16390,["COUNTER = ",DEC COUNTER,10,13] 'GOES TO MCSTUDIO SERIAL PROGRAM
'SERIAL SPEED 38400, INVERTED, 8-BITS, NO PARITY
COUNTER=COUNTER+1
ENDIF

GOTO START