kamranraj
Joined: 25 Jan 2011 Posts: 2 Location: karachi
|
how to change configuration word in pic microcontroller? |
Posted: Tue Feb 08, 2011 1:46 am |
|
|
C file
Code: |
#include <16f84a.h>
#fuses HS,NOWDT
#use delay(clock=10000000)
void main (void)
{
int n;
while (1)
{
for (n=0;n<255;n++)
{
output_b(n);
delay_ms(100);
}
}
}
|
hex file
Code: | :1000000000308A001828000013308400000803190B
:10001000172803308D008C018C0B0C288D0B0B28BE
:100020003C308C008C0B12281528800B09282728BF
:1000300084011F3083059201120F1F28292883167F
:100040008601831212088600643093000428920A05
:060050001C281B286300C0
:02400E00F23F7F
:00000001FF
;PIC16F84A
|
I am using GENIUS G540 programmer and ccs c compiler v4.057.
After compiling, load I the .hex file in GENIUS G540 programmer.
I have receive message,
None configuration worde in the HEX file
Please set it after the loading
Just like this
http://www.youtube.com/watch?v=08RbgdoJKmo
How to set configuration word? |
|