Software > Software

regarding MPLAB and PIC...

(1/3) > >>

sambhav:
hiii..
i m writing a program for my project in assembly using MPLAB for pic16f877 ...
i referred to some tutorials on the net and learnt about it...
howevr i still didnt understand wat the configuration word stands for...
its sumthin dat begins wid
__CONFIG
and has many parameters in it...
Can anyone plz explain me...in detail...also wat is PWRTE_ON and PWRTE_OFF...???

i have brought the PIC16f877 chip... is der any way by testing if the chip is working or nt..???

plz help me..plz...

thanx..

Admin:
i dont know the answers to your other questions, but i can help you on this one . . .


--- Quote ---is der any way by testing if the chip is working or nt.
--- End quote ---
the easiest test is to make a digital output pin go high, then use a multimeter to measure if the pin is high or low.

Kohanbash:
__config is an assembler directive that indicates the configuration bits to use. if you set the config options than you don't need to use the GUI to set compile options when programming the device.

the config bits are code protect, watchdog timer, power up timer,  and setting the oscillator type. The code protect bits are kind of complicated (the easiest is to disable them by using all 1's or h'3FF', but the other bits are simple to figure out and add on.

I don't know much about the ~PWRTE other than that its the power up timer and it is usually set to enable (ie '0').

Note: their are 2 underbars in front of the config (ie. 2 x _ = __config)

Admin:
sounds exactly like fuse settings for AVR microcontrollers . . .

JesseWelling:
pretty much. I was trying to dig up my old code for my goldfish bot. I think I used the config for fuse programing.
but yea my avr recently broke and became unresponsive  :'( good thing they're only $49.

Navigation

[0] Message Index

[#] Next page

Go to full version