Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to configure pic 16f72 in micro c compiler

Status
Not open for further replies.

SHADIQUE

Member level 3
Joined
Dec 3, 2016
Messages
54
Helped
3
Reputation
6
Reaction score
3
Trophy points
8
Location
New Delhi
Activity points
444
Hi,
i am using micro c compiler and 4MHZ Ext crystal and pic16f72 micro controller ,
how to configure and setting ,i am not able to blink led on my hardware ,
please guide me where am i wrong?
and tell how set and get output

- - - Updated - - -

when i burn programm in pic16f72 then said error i attached error in programmer ,why tell me anybody
before mini pro programmer it show

1.PNG


and after programmed mini pro it shows error

2.PNG
 

Set the fuse settings. FOSC->XT, WDTE->OFF, PWRTE_ON, CP->OFF, BOREN->OFF
 
hi dexta,
you said me set the fuse setting , i set all things according you but same problem i find ,i attached photo check theme

3.PNG
 

Provide the link to download your programmer software. I will check it and tell you how to set fuses.
 
If the fuses for protecting the code from read are set, uncheck them and try to dowload the code to device again.
 
how to configure and setting

Generally you need not to set configuration bits in the programmer yourself. It is set automatically when you import the duly configured hex file into the programmer. However you can do it yourself in the programmer as per your requirement. See the screenshot.

Have you tried another MCU?

CONF_BIT.png
 
Last edited:
Are you saying right but why show error, i set configure in micro c and right code then copiler show error i attached above screen shot.
guide me how should remove error?
guide me
 

Have you tried another MCU ? Does it exhibit same error ?
 

Zip and post your .hex file. I need to load it in programmer software and see how to set config bits if needed.
 

yes swapan same problem find ,i checked another MCU but same error find
 

hello sir,
i am sending source code of led blink on portb of pic16f72 ,check configure and source code please tell me where is wrong...
 

Attachments

  • led.rar
    11 KB · Views: 107

In project settings you have selected oscillator type as HS. Change it to XT type if you are using 4 MHz Crystal.
 

i am using 4MHZ crystal ,i checked yesterday crystal type XT but not get output .anyother problem may be exit ,
please find and tell me, i am waiting your response.
 

See picture.

There is a bug either in mikroC PRO PIC or MiniPro Programmer software. In mikroC PRO PIC I have selected BODEN and got 0x0051 as config word but in MiniPro Programmer software if I load .hex file then BODEN is not selected and it gives 0x0051.
 

Attachments

  • project settings and config.png
    project settings and config.png
    60 KB · Views: 162
hello sir ,
i just tried and i set to same config in micro c pro compiler and minipro programmer same type error found.
i attached screen shot find where is wrong ,

4.PNG5.PNG6.PNG

- - - Updated - - -

how to solve the problem ,what should i do? what should change in mini pro or micro c pro .
please tell me.
 

First try to erase the chip and then do a blank check and if blank then try to burn the .hex file.
 

Try writing .hex file to some other device like PIC16F877A. if again you get error then maybe your programmer is bricked.
 

other device like pic16f676 is working only in pic16f72 show error ,i try another pic16f72 also same problem found
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top