Hi G Ive not used BASCOM myself,but looking at the error it's giving you, it doesnt loos like ADCSR is defined inside the m8535.dat file. Edit it with notepad and have a look. From memory, it should look something like ADCSR .EQU 0x45 where 0x45 would be the memory address in the 8535 for ADCSR from the 8535 datasheet. Cheers Hein B Auckland, New Zealand. --- In AVR-Chat@yahoogroups.com, G Teh Boy <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 > > > --------------------------------- > To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. >
Message
Re: plz help me
2006-03-01 by kernels_nz
Attachments
- No local attachments were found for this message.