• C51 : What problem with my code using 8051 microcontroller (AT89S52)

    Muhamad Reduan
    Muhamad Reduan

    I want to ask. I use keil compiler. When I compiler the code, the software give warning and error. This is the warning and error.. How can I fix the error??

    The question is, if i burn this code into pic, is it the pic working well with the code and…

    • over 5 years ago
    • Software Tools
    • Keil forum
  • stc

    cao leon
    cao leon

    RC522.C(51): warning C206: 'nop': missing function-prototype
    linking...
    *** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS NAME: INIT_RC522/RC522
    *** ERROR L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: _ShowHZ1616 MODULE: main.obj (MAIN…

    • over 5 years ago
    • Software Tools
    • Keil forum
  • syntax error

    thanush suresh
    thanush suresh

    #include<stdio.h>
    #include<reg51.h>
    void main ()
    { int i;
    p1=0x0FF;
    while(1)
    { for (i=0;i<10000;i++);
    p1=0x0FF;
    for (i=0;i<10000;i++);
    P1=0x00;
    } }

    Build target 'Target 1'
    assembling blink.asm...
    C:\KEIL\C51\INC\STDIO.H(22…

    • over 5 years ago
    • Software Tools
    • Keil forum
  • erroe C141 and c202

    Vishal Patial
    Vishal Patial

    my program is this:

    #include <REGX51.h>
    #include <math.h>

    #define s_pin P2^0;
    #define w_sensor P2^7;
    #define red_led P3^0;
    #define yellow_led P3^1;
    #define buzr P1^0;

    main() { while(1) { if(s_pin==0 & w_sensor==1) { SET yellow_led;…

    • over 6 years ago
    • Software Tools
    • Keil forum
  • is it a correct keil v4 program or not

    indrajeet hirekurabaru
    indrajeet hirekurabaru

    #include <regx51.h> // standard 8051 defines
    // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    // -=-=-=-=- Include files -=-=-=-=-=-=-=
    // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    #include <lcd.h>
    #include <utils.h>

    // -=-=-=-=-=-…

    • over 6 years ago
    • Software Tools
    • Keil forum
  • i am getting syntax error in source code ..HELP plz

    Abdul Naveed
    Abdul Naveed

    
    # define LCD_DELAY 400
    
    # define LCD_PORT  P0
    # define RS        P0_0
    # define RW        P0_2
    # define EN        P0_1
    bit gbStatus = 0;
    
    /* *************************************************************************************** */
    void Delay(unsigned…

    • over 7 years ago
    • Software Tools
    • Keil forum
  • tiny home security project

    muhammet koksal
    muhammet koksal

    hi, I need your help please

    I have got C141 errors several times, followings

    error C141: syntax error near 'char'
    error C141: syntax error near '{'
    error C141: syntax error near 'void'

    in functions getkey() and column#(…

    • over 7 years ago
    • Software Tools
    • Keil forum
  • 89v51rd2 error 127

    dipali b
    dipali b

    I am using P89V51RD2 for my project I have choosen this IC because it have 1K Ram
    My programme is compiling but while linking I ma getting following errors.

    *** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
        SYMBOL:  ask_disp_key_val
        MODULE:  mc_ad1…

    • over 8 years ago
    • Software Tools
    • Keil forum
  • ARM

    simon lijin
    simon lijin

    when i use the Keil V4.24.00.0 compile my project based in R8051,some errors occures;

    *** ERROR L121: IMPROPER FIXUP MODULE: .\BIN\interrupt.obj (INTERRUPT) SEGMENT: ?PR?TIMER0_INT?INTERRUPT OFFSET: 0014H
    *** ERROR L121: IMPROPER FIXUP MODULE: .\BIN…

    • over 8 years ago
    • Software Tools
    • Keil forum
  • Operations using 16 bits for 8 bits variables

    Vitor Angelo
    Vitor Angelo

    Fellows,

    in the code below:

        unsigned char test1, test2, test3, dummy;
    
        if (test1 != (test2 + 1))
            dummy = 0;
        if (test1 != (unsigned char)(test2 + 1))
            dummy = 0;
        if (test1 != (test2 + test3))
            dummy = 0;
        if…

    • over 8 years ago
    • Software Tools
    • Keil forum
  • Trouble with linkers lx51 and bl51

    Ian Grissom
    Ian Grissom

    I have recently downloaded quicksense studios for use in a capacitive sensing application. After using their utility to generate a lot of the needed source code, I decided to try and assemble and build the project using c51. I used the ax51 assembler…

    • over 8 years ago
    • Software Tools
    • Keil forum
  • Delay routine problem

    vb dev
    vb dev

    I want to create delay functions in a separate c file. The code should be as perfect as possible without using internal timer. I read somewhere that 'Calling the routine takes about 22us' Though 22uS may be different for my cpu clock, if possible…

    • over 8 years ago
    • Software Tools
    • Keil forum
  • BOLD

    rajan bala
    rajan bala

    Hello,
    when trying to compile an C program with uVision2 v2.38a . compilation errors, following is the complete program,pls help me :
    #include <regc51.H>
    #include <intrins.H>
    void wrt_lcd(unsigned char*);
    void lcd_init(void);
    void cmd(unsigned…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • Generating check sum for 8051 code

    Fardad Siavoshi
    Fardad Siavoshi

    Hi,

    I am trying to use the Keil specified steps in http://www.keil.com/support/docs/494.htm to generate checksum after I compile the code. I get following messages from Keil and wonder what I am doing wrong?

    Program Size: data=50.5 xdata=0 code=2675…

    • over 9 years ago
    • Software Tools
    • Keil forum
  • Compiler optimisation

    Sheik mohamed mohamed
    Sheik mohamed mohamed

    Hello,

    1.when i use printf with no var_args then the compiler should call puts instead of printf.

    ex1:

    
    #include <REGX51.H>
    #include <stdio.h>
    
    void main(void)
    {
            printf("This must call puts instead of printf");
    }
    

    …
    • over 10 years ago
    • Software Tools
    • Keil forum
  • sim300

    Shital Kale
    Shital Kale

    hi
    I hv succefully intrfaced sim300 with 89c51
    nw m facing a problem while reading a msg
    actually for AT and AT+CMGF=1 its working fine, m printing it on LCD
    bt when I m sending AT+CMGL="REC UNREAD" there is no respons
    I hv return a fucn lyk…

    • over 9 years ago
    • Software Tools
    • Keil forum
  • I2C read write problem with 24c02 and 89c52

    Devang Dave
    Devang Dave

    Hello all, im trying to interface 24c02 with 89c52 but im getting a serious problem. I wrote a simple prog to write a string to memory and read it back and display on LCD.I used proteus i2c debugger to check the data that is being sent to memory. It…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • LX51 Linker Errors

    Aftab Sarwar
    Aftab Sarwar

    Hi,

    I am using a code from a vendor. The code is for sure OK. But my linker LX51 throws errors when I try to build the project.

    I have checked the "Linker control string", from which I deduce that the linker is pointing towards correct path. Then…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • compling error query

    VIVEK SHETTY
    VIVEK SHETTY

    hi Dis is my program..and its showing error saying 'IDATA' segment too large...does it depend on the version of kiel used ?

    #include <REG52.H>
    #define ST_CNTRL P1
    
    sfr ldata = 0x80;
    sbit rs = P3^7;
    sbit rw = P3^6;
    sbit en = P3^5;
    sbit busy…

    • over 10 years ago
    • Software Tools
    • Keil forum
  • warnings

    Timo Kuisma
    Timo Kuisma

    Hi,

    Why do I get these warnings?
    Are these warnings critical, and can they get the program to crash?

    assembling STARTUP.A51...
    linking...

    *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?SPPGETTIME?SPPTIMER
    *** WARNING…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • C51 V9.00 Linker Problem

    Raphael L�ffel
    Raphael L�ffel

    Hi

    We want to use the C8051F53xA MCU family from SiLabs for a new project. Therefore we installed the actual evaluation version of the C51 environment ( C51 V9.00 ). Plans is the use of the 2k flash version of the F53xA family. Therefore we use the…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • mrrkela

    Mire Mrdja
    Mire Mrdja

    code is:

    #include <AT89X52.H>
    #include "system.h"
    #include "displej.h"

    const uchar brojevi[] = {63, 6, 91, 79, 102, 109, 125, 39, 127, 111}; ispisuje odredjeni broj

    extern uchar vreme[6];

    void prikazi_vreme(char ofset…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • Program to write and read a byte between P89V51RD2 and ST M24C64

    Sandy Sandy
    Sandy Sandy

    Hello All,

    I am finding it really hard to perform write and read operations on the EEPROM connected to the MCU by two wires using the I2C Protocol.

    I've read the data sheets, written the code exactly matching the datasheet info, but it was of no…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • error C141 and error C202

    Juan Fernández García
    Juan Fernández García

    Hello,
    when trying to compile an small C program with uVision3 v3.53 I'm coming across some unexpected - at least to me - compilation errors, following is the complete program:

    #include <reg515c.h>
    #define H 1 /* H abk. von HIGH */
    #define L 0…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • do it have andy option for use "inc dptr" to optimize the pointer that pointer to xdata

    Figos Fu
    Figos Fu

    For keil c51, do it have andy option for use "inc dptr" to optimize the pointer that pointer to xdata.

    we can see the following c program, I use one pointer "dbuf", and the following value that assigned to this memory is sequential…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • View related content from anywhere
  • More
  • Cancel
<>