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…
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…
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…
#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…
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;…
#include <regx51.h> // standard 8051 defines
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=- Include files -=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#include <lcd.h>
#include <utils.h>
// -=-=-=-=-=-…
# 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…
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#(…
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…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…
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…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…
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…
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…
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…
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");
}
…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…