Hy Guys !
thank you for the tips. It worked !
My best regards.
Sérgio
Hy Guys !
thank you for the tips. It worked !
My best regards.
Sérgio
Hi !
For me the solution don't work ? Any others sugestions ? Thanks !
![]()
It doesn't work for you because you have not applied the solution. Read the thread again.
/Henrik.
Thanks for fast reply !
But ... I don't understand what I do wrong...
I wrote :
Exactly like in post #3.@ ERRORLEVEL -306
#CONFIG
__CONFIG _XT_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _BODEN_ON & _LVP_OFF & _CP_ON
#ENDCONFIG
![]()
Last edited by fratello; - 1st June 2017 at 12:16.
But that's not the same code - or error - as in your previous post now, is it?
Now you've fixed the "Overwrting previous address" error and you're facing a completely different issue.
First try commenting out the Include statement to see if the problem is within that piece of code.
Then please post the code, within code tags, so we don't have to retype it and make our own errors.
/Henrik.
No change !
Code:@ ERRORLEVEL -306 #CONFIG __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _BODEN_ON & _LVP_OFF & _CP_ON #ENDCONFIG ;INCLUDE "D:\PBP\ALLDIGITAL.PBP" DEFINE OSC 4 ' 4MHz CMCON = 7 ' Disable on-chip comparator, PORTA in digital mode TRISA = %00011100 PORTA = %00011100 TRISB = %00000000 PORTB = %00000000 oldState VAR BYTE newState VAR BYTE status_1 VAR BYTE status_2 VAR BYTE status_3 VAR BYTE DIR VAR Byte j var byte BitCount VAR BYTE ' Index variable for above array i VAR BYTE ' General purpose dir = 2 Main: PortA.1 = 0 newState = PortA & %00011100 ; this is for my hw : 11100 = 28 PortA.1 = 1
You seem to have the 628 selected in one of the screenshots, and the 628A in the other.
Which device is teh code INTENDED for and which device do you have selected in the dropdown list?
/H.
Bookmarks