S
shehry
- Jan 1, 1970
- 0
hi,
i cant seem to be able to burn my code properly (i am not sure but i
think that this is the problem). i used pcwh pic c compiler to write my
code, which does nothing but turn a few ports on. i compiled the code
and used waccess software with all 11 programmer to burn the hex file
generated.
now this is where i think the trouble seems to come in. when i try to
load the hex file in to the buffer i am prompted to select the file
format and i have the following options:
1. Binary
2. Intel Hex
3. Motorola S Record
4. PICES HEX
5. 8Bits INHX8M
6. 16Bits INHX16
i used pices initially, but it didnt work. then i tried all the rest of
them. it didnt work.
can anyone help me in this context. i am attaching the code too
although its just a test:
#include <16F877.h>
#device *=16 ICD=TRUE
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=12000000)
#use rs232(baud=9600, xmit=PIN_B0, rcv=PIN_B1)
void main()
{
set_tris_c(0x00);
set_tris_d(0x0f0f);
delay_ms(10);
output_d(0x79);
output_high(PIN_A0);
while(1)
{
printf("helloooo dolly");
delay_ms(1000);
output_c(0xaa);
}
}
i cant seem to be able to burn my code properly (i am not sure but i
think that this is the problem). i used pcwh pic c compiler to write my
code, which does nothing but turn a few ports on. i compiled the code
and used waccess software with all 11 programmer to burn the hex file
generated.
now this is where i think the trouble seems to come in. when i try to
load the hex file in to the buffer i am prompted to select the file
format and i have the following options:
1. Binary
2. Intel Hex
3. Motorola S Record
4. PICES HEX
5. 8Bits INHX8M
6. 16Bits INHX16
i used pices initially, but it didnt work. then i tried all the rest of
them. it didnt work.
can anyone help me in this context. i am attaching the code too
although its just a test:
#include <16F877.h>
#device *=16 ICD=TRUE
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=12000000)
#use rs232(baud=9600, xmit=PIN_B0, rcv=PIN_B1)
void main()
{
set_tris_c(0x00);
set_tris_d(0x0f0f);
delay_ms(10);
output_d(0x79);
output_high(PIN_A0);
while(1)
{
printf("helloooo dolly");
delay_ms(1000);
output_c(0xaa);
}
}