the 8051 and avr programs are not 100% compatible.
So it is normal that bascom-avr does not understand the syntax of the bascom-8051 code.
I understand you want to port some code?
The help of bascom-8051 will show you what it does. (configure timer0 as a counter that counts pulses on the external input).
In bascom-avr you can do this with config timer0=counter. Have a look at the help.
You can replace a 8051 by an AVR chip, but you need to check the circuit and the code. I think the config for the timers is the only real problem.
↧