Atmel AVR Microcontroller discussion group.
[AVR club] Re: plz help me - farhad_mega16 - Apr 1 17:54:31 2006
--- In a...@yahoogroups.com, G Teh Boy
wrote:
>
> hi
> i can not this program compileing with BASCOM plz help me
>
> $regfile = "m8535.dat"
> ' we use internal osc 8000000 for atmega8535
> $crystal = 8000000
> Config Lcdpin = Pin , Db4 = Pinc.3 , Db5 = Pinc.2 , Db6 = Pinc.1 ,
Db7 = Pinc.0 , E = Pinc.5 , Rs = Pinc.4
> Config Lcd = 16 * 1a
> Config Adc = Single , Prescaler = Auto
> Deflcdchar 0 , 24 , 24 , 32 , 32 , 32 , 32 , 32 , 32 'we
replace ? with number 0
> Dim W As Word , Channel As Byte
> Start Adc
> Cursor Off
> Do
> W = Getadc(0)
> W = W / 2
> Home
> Lcd W ; Chr(0) ; "C"
> Waitms 100
> Select Case W
> Case Is =< 10 :
> Cls
> Home L
> Lcd " Low"
> Case 11 To 34 :
> Cls
> Home L
> Lcd " Normal"
> Case Is >= 35
> Cls
> Home L
> Lcd " High"
> End Select 'end
program select
> Loop
> End
>
>
>
>
>
>
> compiling give this erorr
> Error : 202 Line : 6 .EQU not found, probably using
functions that are not supported by the selected chip [ADCSR] , in
File : C:\NONAME1.BAS
> Error : 1 Line : 9 Unknown statement [.EQU not found
for:ADCSR] , in File : C:\NONAME1.BAS
> Error : 1 Line : 33 Unknown statement [.EQU not found
for:ADCSR] , in File : C:\NONAME1.BAS
> Error : 1 Line : 33 Unknown statement [.EQU not found
for:ADCSR] , in File : C:\NONAME1.BAS
> Error : 1 Line : 33 Unknown statement [.EQU not found
for:ADCSR] , in File : C:\NONAME1.BAS
> Error : 1 Line : 33 Unknown statement [.EQU not found
for:ADCSR] , in File : C:\NONAME1.BAS
>
>
> ---------------------------------
> Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide
with voicemail
>
> [Non-text portions of this message have been removed]
>hi dear friend
you have 2 syntax errors in your program
no1- use this sentence:
Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 =
Portc.4 , Db7 = Portc.5 , Rs = Portc.0 , E = Portc.1
no2-nomber0 when i copy your program in bascom is in next line and
compiler thinks it is a real word so it has a error here
i change these errors your program works perfect in my pc
Yahoo! Groups Links

(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )