Good morning
Is there a way to memcpy from SFR's in the C51?
I have tried to memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8); but it doesn't work
Other things i tried
memcpy((char*)&buffer, CAN0IF2DA1L, 8); //error C214…
Good morning
Is there a way to memcpy from SFR's in the C51?
I have tried to memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8); but it doesn't work
Other things i tried
memcpy((char*)&buffer, CAN0IF2DA1L, 8); //error C214…
Hey everyone,
I recently purchased an ADuC847 eval board, and am very green when it comes to coding in assembly and/or C. I have several questions when it comes to figuring out the code syntax, and small details which I'm most likely missing. I'm trying…
Dear all,
Would you help me to identify which header file to use with Silabs EFM8LB12F64E?
I already tried to compile a very simple program , but, failed.
#include <SI_EFM8LB1_Register_Enums.h>
sbit LED_Green = P1^4;
sbit LED_Blue…
hey guys i hv just installed the keil c51 version 9.01 but when a
i try to build target files this error comes up
plz help me
Build target 'Target 1'
linking...
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT:
?DT?COUNTER LENGTH: …
i have written a simple UART code, my project is entirely depends upon the serial comunnication.
i have to control 4 to 5 stepper motor and sensor, for which lot
of subroutines r to be written,
i wanted to make small library which are classified into…
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…
I have been using code supplied by Keil to simulate I2C slaves and it works great......only problem.....its one device only. Using the VTREG's it does, I tried to modify the code by +1's on the call names, but that didn't work. I have at least 14 I2C…
I faithfully typed in all the I2C code from philips application notes, AN10155. I get the following when I compile in Keil:
Build target 'Target 1' assembling START900.A51... compiling demo.c... I2CEXPRT.H(65): error C141: syntax error near 'using…
I upgraded to the latest release of some libraries and now when I compile I get a few warnings but the "target not created" but I have no clue why not.
Here is the warnings:
Build target 'EZmotion' compiling EZMotion.c... EZMOTION.C(521…
I have seen some confusing information posted regarding "ADuC debug" using the Accutron "Spear" and "Uspear" products.
Quick history to clarify:
=======
1. ACE
=======
# the first single pin debugger from accutron.
#…
Hi,
I have a big project working with an AT89C51SNDC with severals files ( *.c and *.h)
I don't understand why in this project, I have these errors messages :
error C141: syntax error near '90'
error C281: illegal hex constant
error…
Hi,
I have an existing project which contains my code and code of a library and I would add again a little part from this same library (Atmel) 3 new files ( file.c, fs_varaiable.c and fat.c) at this project but after adding the fat.c file I have receive…
Hi,
I'm developing a project with micro
EZ-USB FX2LP CY7C68013A
When I try to build project, I get that message
Build target 'Target 1' compiling fw.c... assembling dscr.a51... compiling firmware.c... compiling clocksys.c... compiling SPI…
Dear Sir,
I am facing a problem in interfacing the AT89C51 with AT24C04 (External memory).
the code is as follows:
FADDR EQU 0A0h ; fixed address for AT24Cxx EEPROMs MEM_SIZE EQU 20h ; bytes per AT24C64 FILL EQU 53h ; example fill value SDA…
I used the SI Labs config 2 wizard to generate the following code and then added the interrupt at the bottom. The only thing I do in my main is try to set TI1 to 1 which should signal hardware to jump to the UART1 ISR. If I set a break point in main and…
I'm using the latest keil and philip's debugging tool (PDS51E) with a LPC900 emulator (PDS900). This may be more of a philips question, but I thought some of you may know.
I guess, I must not totally understand the process that takes place when…
I'm using a Philips P89C662 that provides In-system Application Programming (IAP) with have an entry address at 0xFF00.
I am trying to read proram boot vector information. I an not sure how to refer to registers R0 & R1. R0 register is set to FOSC…
Hi
This question is about serial interrupts on the 8051 based extended memory chip (P87C51Mx2).
The transmit interrupt TI_0 is supposed to be set when a character is written to S0BUF. This is not happening.
My initialization settings are as follows …
Hej
I am using uVision 2.37 with C51 version 7.05C.
I would like to set a break point in a stack overflow. Can anyone tell me how to set a break point on write access to I:0x7f
Thank you
How do I locate a constant variable at the end of code area using the Extended Linker ( LX51 ) ?
In myfile source, my constant table is declared as:
unsigned char code MyTable[10]=
{
...
}
I would like to locate this constant table (by the corresponding…
Hi, I have been working on a project which requires interfacing a keypad and a LCD to 8051 microcontroller using keil software(microvision version 5). I have difficulty resolving a C202 error, error statement being ‘PIN_Dx’: undefined identifier. (x…
Dear Sir, I have a problem about the union and bitfiled. I always
suffer a strange problem in my system.
After I check the M51 file, I start to doubt that it is the bitfield
and union problem in compile stage.
please see my code as below, I declare the…
Dear all,
Would you help me to identify which header file to use with Silabs EFM8LB12F64E?
I already tried to compile a very simple program , but, failed.
#include <SI_EFM8LB1_Register_Enums.h>
sbit LED_Green = P1^4;
sbit LED_Blue…
I'm using Simplicity Studio with Keil C51 v9.53...
I tried enabling c99 compatibility by adding "--c99" to the "Additional Flags" setting within the compiler settings in project properties. Long story short: it went from complaining about my unknown…
this is my source code
#include <REG51F.H> sbit sl1=P2^0; sbit sl2=P2^1; sbit sl3=P2^2; sbit led1=P2^3; sbit led2=P2^4; sbit led3=P2^5; sbit Rl1=P1^0; sbit Rl2=P1^1; bit kp1; bit kp2; bit kp3; void init_timer0(); void init_timer1(); void isr_t0();…