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

last line always syntax error

I wanted to write a programs about traffic light,but the last line aiways say syntax error.
Help >> about µVision is display:

IDE-Version:
µVision V5.14.2
Copyright (C) 2015 ARM Ltd and ARM Germany GmbH. All rights reserved.

License Information:
156 186
561
LIC=----

Tool Version Numbers:
Toolchain: PK51 Prof. Develpers Kit Version: 9.54
Toolchain Path: C:\Users\PC39\Desktop\C51\BIN
C Compiler: C51.exe V9.54
Assembler: A51.exe V8.02c
Linker/Locator: BL51.exe V6.22
Librarian: LIB51.exe V4.30.1.0
Hex Converter: OH51.exe V2.7.0.0
CPU DLL: S8051.DLL V3.100.0.0
Dialog DLL: DP51.DLL V2.62.0.1

can you help me?

Parents
  • /*-------------------------------------------------- ç³»çµ±é˜æŽ§è¨ˆæ™‚ä¸­æ–·æœå‹™å¸¸å¼
    --------------------------------------------------*/
    #include <reg51.h>
    #include "system.h"
    #include "tick.h"
    #include "keypad.h"

    #define TICK_INTERRUPT_PERIOD_CNT (((XTAL*TICK_INTERRUPT_PERIOD_MS)/1000)/12)

Reply
  • /*-------------------------------------------------- ç³»çµ±é˜æŽ§è¨ˆæ™‚ä¸­æ–·æœå‹™å¸¸å¼
    --------------------------------------------------*/
    #include <reg51.h>
    #include "system.h"
    #include "tick.h"
    #include "keypad.h"

    #define TICK_INTERRUPT_PERIOD_CNT (((XTAL*TICK_INTERRUPT_PERIOD_MS)/1000)/12)

Children
No data