Hi Dave,
I tried playing with the configuration string but I must be making a mistake, please look at my code. I'm sure its something simple that I have emitted or added that is wrong.
PS: I have to use MPASM as I am using windows 7 64 bit and PM gives an error that it cannot work oon 64bit.
]'************************************************* ***************
'* Name : SEROUT2.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2004 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 2004/05/24 *
'* Version : 1.0 *
'* Notes : TEST FOR PICKIT 2 WITH 16F877A *
'* : *
'************************************************* ***************
@ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
Define OSC 20 ' Set Xtal Frequency
trisd.0=0
COUNTER VAR BYTE
COUNTER=0
LED1 VAR PORTd.1
LED2 VAR PORTd.0
LED1=0
LED2=0
start:
pause 500
LED2=0
LED1=1
pause 500
LED1=0
LED2=1
SEROUT2 PORTd.2,84,["COUNTER=",DEC COUNTER,13,10] 'BAUD = 38400
COUNTER=COUNTER+1
goto start
END
´************************************************* **************
Regards
Chris




Bookmarks