Author Topic: what is demo limit error in mikroc?  (Read 2681 times)

0 Members and 1 Guest are viewing this topic.

Offline khatusTopic starter

  • Regular Contributor
  • *
  • Posts: 154
  • Country: gl
what is demo limit error in mikroc?
« on: September 04, 2019, 03:45:05 pm »
Hello guys what is demo limit error ?I have found a code for Load Cell in online but while compiling it shows Demo limit error



Code: [Select]
sbit LCD_RS at LATB4_bit;
sbit LCD_EN at LATB5_bit;
sbit LCD_D4 at LATB0_bit;
sbit LCD_D5 at LATB1_bit;
sbit LCD_D6 at LATB2_bit;
sbit LCD_D7 at LATB3_bit;



sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;

void main()
{
int adc_rd;
float adc_val;
float wt;
char finaltxt[8];
float quant=5.0/1024;
//char res[5];
PORTB =0xFF;
TRISB=0xFF;
ADCON1=0Xc0;
ADC_Init();
LCD_Init();
lcd_cmd(_LCD_CLEAR);
lcd_cmd(_LCD_CURSOR_OFF);
while(1)
{
adc_rd = ADC_Read(0);
adc_val=adc_rd*quant;
wt=(adc_val-0.361)/0.079;
sprintf(finaltxt,"%1.2f",wt);
lcd_cmd(_LCD_CLEAR);
Lcd_Out(1,1,"WEIGHT: ");
Lcd_Out(1,9,finaltxt);
Lcd_Out(1,14,"KGs");
Delay_ms(1000);
}
}
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3282
  • Country: us
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4004
  • Country: nl
Re: what is demo limit error in mikroc?
« Reply #2 on: September 04, 2019, 06:04:39 pm »
I am just curious why anyone would bother with expensive or crippled compilers in these days when GCC is freely available for almost any uC worth using.
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4209
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: what is demo limit error in mikroc?
« Reply #3 on: September 04, 2019, 06:19:59 pm »
With GCC it is expensive to maintain a stable development environment. It's almost exclusively bundled with something that used to resemble eclipse or you have to set it up all yourself.
Then two weeks later you're five continuous integration versions behind.
When you're not toying around you want to pick a version of a compiler years later and still be able to install and create an exact reproduction of what you did a long time ago.
Basically you have to VM all projects, it's just cumbersome. When you count the lost time license for a paid package suddenly isn't that bad anymore. Since those can be installed side-by-side.

So using the "free" stuff comes at a price as well.

This is why Open Source projects usually have their own toolchain setup.
 

Offline sairfan1

  • Frequent Contributor
  • **
  • Posts: 369
  • Country: ca
Re: what is demo limit error in mikroc?
« Reply #4 on: September 04, 2019, 06:25:33 pm »
If you are using PIC uC you can use XC compiler, there are a lot of examples and libraries available.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf