Page 1 of 1

3 error in m-16 code

Posted: Thu Jul 20, 2017 7:27 am
by aparat
hi
in m-16 code There are 3 errors
I compiled with Kiel 5 software And for the codes below the error is indicated
mov t2con,#04H
mov rcap2h,#0ffH
mov rcap2l,#0d2h
please help me.thanks

Posted: Thu Jul 20, 2017 8:31 am
by frank
Exactly what is the error?

Posted: Fri Jul 21, 2017 2:56 am
by aparat
FV1_V1.asm(144): error A45: UNDEFINED SYMBOL (PASS-2)
FV1_V1.asm(145): error A45: UNDEFINED SYMBOL (PASS-2)
FV1_V1.asm(147): error A45: UNDEFINED SYMBOL (PASS-2)
help me thanks

Posted: Fri Jul 21, 2017 9:07 am
by frank
Are you sure you are assembling for and using the correct 8052 variant? Those registers are used for timer 2.

Posted: Sat Jul 22, 2017 10:41 am
by aparat
What is compiler name?
is it keil?

Posted: Sat Jul 22, 2017 4:37 pm
by frank
It does not matter which assembler as long as it supports the proper 8052 variant. Check that you are assembling for the correct chip.

Posted: Sun Jul 23, 2017 9:52 am
by aparat
My chip is at89s52.
Is it correct?or i shoud adjust other chip?
Then can i speak with you into telegram?

Posted: Mon Jul 24, 2017 8:51 am
by frank
You need to check that your chip supports timer 2 and the associated registers and if it does then as the maker of the assembler why it is throwing errors. We can only help with the FV-1 its self.