Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

plz help me

2006-03-01 by G Teh Boy

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.