
Originally Posted by
Acetronics
Ok, lew
Seems you use MPASM as an assembler ...
so don't use PM commands !
Code:
@ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
should Work somewhat better ...
Alain
Sorry I forgot totally about that, PM would not work at all,because I have an X64 system
For some reason @ __config _CONFIG1, _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF will not work
If I add it at the beginning I get Error [118] c:\pbp\tests\cdtes~1.asm 108 : Overwriting previous address contents (2007)
If I put this at the beginning of the program it compiles with no errors but won't work.
Code:
Define Device 16f887
Define OSC 8
adcon1 = 7
PORTB = %00000000
TRISB = %00000000
IOCB = 0
CM1CON0 = 0
CM2CON0 = 0
CCP1CON = 0
CM2CON1 = 0
INTCON = 0
I checked the datasheet of the 16f887 (using this because it came supplied with it) and I THINK I've configured all registers on PortB
It would be good if I could change LCD pins as suggested but unfortunately not possible on this board.
And I need to learn what is wrong so next time I won't (hopefully) need to ask for help.
Bookmarks