StoppTidigare
Full Member level 2
- Joined
- Jul 16, 2002
- Messages
- 148
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,296
- Location
- Northern earth
- Activity points
- 1,703
p16f84a.inc
Hi all, I want to turn on a LED with a PIC 16F84A, but MPLAB IDE continues to say that build failed.
I want to use the RC oscillator so I've wrote
__config _RC_osc & _WDT_OFF
I also tried the config statment
CONFIG
dw _RC_OSC & _WDT_OFF
There is also a pulldown menu in the MPLAB IDE, where one can choose the configuration bits.
Tried also that.
Here is the code:
list p=16f84a
#include p16f84a.inc
errorlevel 0,-305
PAGE
; __config _RC_OSC & _PWRTE_OFF & _WDT_OFF & _CP_OFF
CONFIG CODE
dw _CP_OFF & _WDT_OFF & _RC_OSC
org 0
clrf PORTB
bsf STATUS,RP0
bcf TRISB & 0x07F, 0
bcf STATUS, RP0
loop goto loop
end
Does anybody know why build is failing ?
Kindest regards,
StoppTidigare
Hi all, I want to turn on a LED with a PIC 16F84A, but MPLAB IDE continues to say that build failed.
I want to use the RC oscillator so I've wrote
__config _RC_osc & _WDT_OFF
I also tried the config statment
CONFIG
dw _RC_OSC & _WDT_OFF
There is also a pulldown menu in the MPLAB IDE, where one can choose the configuration bits.
Tried also that.
Here is the code:
list p=16f84a
#include p16f84a.inc
errorlevel 0,-305
PAGE
; __config _RC_OSC & _PWRTE_OFF & _WDT_OFF & _CP_OFF
CONFIG CODE
dw _CP_OFF & _WDT_OFF & _RC_OSC
org 0
clrf PORTB
bsf STATUS,RP0
bcf TRISB & 0x07F, 0
bcf STATUS, RP0
loop goto loop
end
Does anybody know why build is failing ?
Kindest regards,
StoppTidigare