# Get an error when compile

#### mini

##### New Member
Hello there,
Why these code getting an error when i do to compile, and what is wrong there :
Code:
device = 16f88
@config_req
@__config _config1, cp_off & ccp1_rb0 & debug_off & wrt_protect_off & cpd_off & lvp_off & boden_off & mclr_on & pwrte_on & wdt_off & intrc_io
@__cofigig_fffcmen_off
#Define i2c_sclout On
all_digital = True
TRISA = % 11111000
TRISB = % 11100000
OSCCON = % 01101110
'ANSEL = \$ 00011000
declare LCD_LINES = 2  'LCD 4 Line
declare lcd_dtpin = PORTB.0  'LCD Data Pin
declare lcd_interface = 4  'LCD Data Pin 4
declare lcd_rspin = PORTB.4  'LCD RS Pin
declare lcd_enpin = PORTA.6  'LCD EN Pin
declare adin_stime = 100
Can some one here help me.

Thanks,
Mini.

#### Pommie

##### Well-Known Member
It might help if you told us what the error is and what line it's on.

Mike.

#### Ian Rogers

##### User Extraordinaire
Forum Supporter
Why these code getting an error when i do to compile, and what is wrong there :
Because That is not Oshonsoft basic... It looks more like Freebasic to me.. Where did you get that snippet of code from?

#### mini

##### New Member
Hello all,
Apologize for wrong room.
I trying to compile it code to pic basic, but i still have an error, are the pic basic and proton basic is same compiler ?.

Thanks.
Mini.

#### Mickster

##### Well-Known Member
That code is for Proton Basic. To compile the code as is, you need the compiler:
Here's the manual:

To use that code with any other compiler, it needs to be converted, as Ian Rogers notes.

#### mini

##### New Member
Hello All,
Yes, you all is right, that code is under Proton Basic Compiler, i already trying to compile with the correct compiler.
Well, here are i found code from somewhere, this code already I compiled with Oshonsoft compiler and has been success, but i have a problem when i trying to running on proteus, i saw that frequency is not to FM 87,50 -108.00 Mhz.

I already trying to fixed that, but i am stuck, because i am still new in Oshonsoft compiler, also i checked that interface I2C doesn't working properly in osciloscope.

So ..., hope the master here help me to solved this happen and my problem.

To see the code, please find attached file.

Thanks.
Mini.

#### Attachments

• 5 KB Views: 5

#### mini

##### New Member
Hi All,
Time to lockdown, so anyone here not inside home, and sit on the coffee shop.