This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help Needed For AT89C2051

Hi to all, I am an advanced sortware engineer specialising in c compiler programs. By a guided book of " Projects in C for U" . I am building my latest project but I am having errors. I have tried attach all the files. I have compiled it in Keil uvision 4. Pls can anyone help me out to get the program working.

Any help would be really appreciated.

I am having this error in Keil :

Build target 'Target 1'
compiling LED Binary Counter.c...
LED BINARY COUNTER.C(29): warning C206: 'wait_a_sec': missing function-prototype
LED BINARY COUNTER.C(12): warning C1046: 'shoot_bred': missing function name is
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?WAIT_A_SECOND?LED_BINARY_COUNTER
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: WAIT_A_SEC MODULE: LED Binary Counter.obj (LED_BINARY_COUNTER)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: WAIT_A_SEC MODULE: LED Binary Counter.obj (LED_BINARY_COUNTER) ADDRESS: 082EH
Program Size: data=11.0 xdata=45212 code=54487
creating hex file from "LED Binary Counter"...
"LED Binary Counter" - 0 Error(s), 5 Warning(s).

Parents
  • You just demonstrated the worst possible way of implementing a delay.

    1) You don't know how many iterations it will take to get a one-second delay.

    2) You don't know how the delay will change depending on compiler version, or changed clock frequency.

    3) You don't even know if there will be any delay at all, or if the compiler will detect the meaningless loop and remove it.

    Seach with Google or on this site and you will find a large number of threads discussing how to implement delays.

Reply
  • You just demonstrated the worst possible way of implementing a delay.

    1) You don't know how many iterations it will take to get a one-second delay.

    2) You don't know how the delay will change depending on compiler version, or changed clock frequency.

    3) You don't even know if there will be any delay at all, or if the compiler will detect the meaningless loop and remove it.

    Seach with Google or on this site and you will find a large number of threads discussing how to implement delays.

Children