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.

Which tools will compile PIC hex code program?

Status
Not open for further replies.

dani333

Junior Member level 1
Joined
Jan 18, 2011
Messages
16
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,408
I'm looking for a compiler for the program under this program to eat and give me the hex code :


#include <18f242.h>
#device ADC=8
#use delay(clock = 4000000)

#define param 19.6079
#define use_portb_lcd TRUE
#include <lcd.c>

int8 adc_data;
float adc_voltage;

void main()
{
set_tris_c(0x00);
output_c(0x00);
lcd_init();
lcd_gotoxy(1,1);
printf(lcd_putc , "PIC18 Voltage Probe");
setup_adc(ADC_CLocK_DIV_32);
setup_adc_ports(ALL_ANALOG);
set_adc_channel(0);
delay_ms(20);
while(1)
{
adc_data=read_adc();
if(adc_data >= 230)
{
output_high(pin_c0);
}
if(adc_data <= 25)
{
output_high(pin_c2);
}
if(adc_data >= 25 & adc_data <=230)
{
output_high(pin_c1);
}
adc_voltage = adc_data * param /1000;
lcd_gotoxy(1,2);
printf(lcd_putc , "Voltage = %f , Digital = %3u" , adc_voltage , adc_data);
delay_us(50);
output_c(0x00);
}
}
--------------------------------------------
What these programs compiled with the hex code to take ...!!
 

Re: PIC hex code program

You can try MPLAB IDE from Microchip.
 

Re: PIC hex code program

Hi friend

this is PIC18F series Microcontroller program
For compiler for this program

go to below link

**broken link removed**

Best of luck
 

Re: PIC hex code program

mer30
thank you
but , Whether the compiler MicroC for PIC Can be used
answer or not only mplab ????

---------- Post added at 23:54 ---------- Previous post was at 23:00 ----------

Does anyone knows the above programs except Mplab with another compailer be used together?
I do not know the compiler where the program will be downloaded
Hex code I want this program
Is very important to me
What is the compiler of the
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top