PDA

View Full Version : MPASM errors with PIC16F1937



acjacques
- 1st January 2011, 20:21
I'm trying to compile a simple program to pic16f1937 but I am having errors in the MPASM assembler. I have no idea what could be wrong.

pbb2.60a
micro code studio
mpasm 5.20

error messages are:

Error[108] i:\pbp2.60a\16f1937.inc 20 : Illegal character (,)
Error[108] i:\pbp2.60a\16f1937.inc 21 : Illegal character (,)
Error[118] i:\pbp2.60a\16f1937.inc 21 : Ovewriting previoius address contents (0000)
Error[118] i:\pbp2.60a\pbppl14e.lib 1055 : Ovewriting previoius address contents (0000)

mackrackit
- 1st January 2011, 20:42
It would really help if you gave more information...
Code
Configuration

But the over writing is normally when you are setting the configs in code space and the *.inc file.

The illegal character?? Are you trying to comment a line? If so '

acjacques
- 1st January 2011, 21:16
the code is simple as:


define osc 20
main:
high portb.0
pause 1000
low portb.0
pause 1000
goto main

acjacques
- 1st January 2011, 21:23
the code is simple as:


define osc 20
main:
high portb.0
pause 1000
low portb.0
pause 1000
goto main

bogdan
- 1st January 2011, 21:57
What about the Configuration Fuses ?

acjacques
- 1st January 2011, 22:25
I have not yet written any configuration. I will intend to do this in the programmer.

bogdan
- 1st January 2011, 22:31
..see this:

http://www.picbasic.co.uk/forum/showthread.php?t=543&p=6775#post6775