flotulopex
- 1st March 2015, 18:38
Hello,
I'm using a PIC 18F1330 the first time... and it is not easy.
I'm trying to make the LED blink on PORTB.1 . My hw is simple; the oscillator is an external 8MHz crystal.
I went through lots of threads especially this one (http://www.picbasic.co.uk/forum/showthread.php?t=13306) but it still seems difficult to set the correct config fuses ("new method") if this is the reason why my code doesn't work.
The .inc file has been modified (added some colons) as usual in the PBP directory.
I'm using MCS, PBP2.60, MPASM v5.14 and PICKit3.
Most of the errors returned in MCS say:
Address exceeds maximum range for this processor
Overwriting previous address contents (000A)
Overwriting previous address contents (000B)
Address exceeds maximum range for this processor
Overwriting previous address contents (000C)
Overwriting previous address contents (000D)
.......
@ CONFIG OSC=HS, FCMEN=OFF, IESO=OFF, PWRT=OFF, BOR=OFF, WDT=OFF, MCLRE =OFF
@ CONFIG CP0=OFF, CP1=OFF, CPB=OFF, CPD=OFF, WRT0=OFF, WRT1=OFF
ADCON0 = %00000000
ADCON1 = %00001111
ADCON2 = %00000000
MAIN:
TOGGLE PORTB.1
PAUSE 500
GOTO MAIN
END
Any idea what I'm missing here?
I'm using a PIC 18F1330 the first time... and it is not easy.
I'm trying to make the LED blink on PORTB.1 . My hw is simple; the oscillator is an external 8MHz crystal.
I went through lots of threads especially this one (http://www.picbasic.co.uk/forum/showthread.php?t=13306) but it still seems difficult to set the correct config fuses ("new method") if this is the reason why my code doesn't work.
The .inc file has been modified (added some colons) as usual in the PBP directory.
I'm using MCS, PBP2.60, MPASM v5.14 and PICKit3.
Most of the errors returned in MCS say:
Address exceeds maximum range for this processor
Overwriting previous address contents (000A)
Overwriting previous address contents (000B)
Address exceeds maximum range for this processor
Overwriting previous address contents (000C)
Overwriting previous address contents (000D)
.......
@ CONFIG OSC=HS, FCMEN=OFF, IESO=OFF, PWRT=OFF, BOR=OFF, WDT=OFF, MCLRE =OFF
@ CONFIG CP0=OFF, CP1=OFF, CPB=OFF, CPD=OFF, WRT0=OFF, WRT1=OFF
ADCON0 = %00000000
ADCON1 = %00001111
ADCON2 = %00000000
MAIN:
TOGGLE PORTB.1
PAUSE 500
GOTO MAIN
END
Any idea what I'm missing here?