• C51 memcpy from SFR's

    RichardT
    RichardT

    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…

    • Answered
    • over 1 year ago
    • Software Tools
    • Keil forum
  • Help with code creation for ADuC847 in C

    mknoob11
    mknoob11

    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…

    • over 1 year ago
    • Software Tools
    • Keil forum
  • Which header file to use with Silabs EFM8LB12F64

    ibrahim hartavioglu
    ibrahim hartavioglu

    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…

    • over 3 years ago
    • Software Tools
    • Keil forum
  • target not created

    Shani s
    Shani s

    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: …

    • over 9 years ago
    • Software Tools
    • Keil forum
  • how to create library

    Swapnil Katre
    Swapnil Katre

    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…

    • over 9 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
  • Simulate Multiple I2C devices in Keil known code

    Chris B
    Chris B

    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…

    • over 11 years ago
    • Software Tools
    • Keil forum
  • philips AN10155

    Albert Gomez
    Albert Gomez

    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…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Target Not Created - but only unreferenced local variable warnings

    Eric Ryherd
    Eric Ryherd

    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…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • ADuC debug

    Jed Smith
    Jed Smith

    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.
    #…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • error messages for a big array

    Alli Bas
    Alli Bas

    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…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • too many Warnings and errors after file implementation

    Alli Bas
    Alli Bas

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • EZ-USB FX2LP CY7C68013A: target not created!

    emme emme
    emme emme

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Problem in Interfacing a 89C51 and ATMEL 24C04 (External Memory)

    Swananda Laha
    Swananda Laha

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Cant get to UART1 interrupt on F067

    Jeff Salisbury
    Jeff Salisbury

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Object File....Can't find "C_STARTUP"

    James Corbin
    James Corbin

    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…

    • over 17 years ago
    • Software Tools
    • Keil forum
  • IAP calls to read program boot vector (Phillips P89C66x chip)

    Vuppuladhadium Venkataramana
    Vuppuladhadium Venkataramana

    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…

    • over 17 years ago
    • Software Tools
    • Keil forum
  • Serial interrupts on Mx2 chip

    Sundeep  Subbarau
    Sundeep Subbarau

    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 …

    • over 17 years ago
    • Software Tools
    • Keil forum
  • Break on IDATA

    Dennis Jakobsen
    Dennis Jakobsen

    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

    • over 17 years ago
    • Software Tools
    • Keil forum
  • locate a code table at the end of ROM

    ZE tony
    ZE tony

    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…

    • over 17 years ago
    • Software Tools
    • Keil forum
  • resolving C202 error

    Harris Mathews
    Harris Mathews

    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…

    • over 2 years ago
    • Software Tools
    • Keil forum
  • bitfield in union and compile problem

    shihwen chou
    shihwen chou

    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…

    • over 2 years ago
    • Software Tools
    • Keil forum
  • Which header file to use with Silabs EFM8LB12F64

    ibrahim hartavioglu
    ibrahim hartavioglu

    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…

    • over 3 years ago
    • Software Tools
    • Keil forum
  • C51 FATAL-ERROR : NON-NULL ARGUMENT EXPECTED

    Clark Leach
    Clark Leach

    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…

    • over 3 years ago
    • Software Tools
    • Keil forum
  • charger.c(174): error C141: syntax error near ''

    Ankit Gupta
    Ankit Gupta

    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();…

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