• Initialize bit variable when using (bdata + sbit) ?

    I have one question about bit variable initialization.

    Before I used below simple way to initialize bit vars:

    Ex.
    bit bvar_0=0;bit bvar_1=1;
    bit bvar_2=1;bit bvar_3=1;
    bit bvar_4=1;bit bvar_5=1;
    bit bvar_6=0;bit bvar_7=0;
    

    And then ?C_INITSEG …

  • spi

    dear all, i m interfacing 7366 with c8051f120.

    according to datasheet of 7366 its clock is 5Mhz (100nSec and 100nSec of SCK high and low pulse)

    pls tell me which lines of among 4 pins i.e mosi,miso,nss,sck are pushpull and open drain.

    because i…

  • Eclipse and UV3 intergration

    Hello All,

    Is it possible to integrate Eclipse and UV3?
    Eclipse has good code editing features such as auto complete,code hint?It would be better if two tools could be integrated.

    Manish

  • clock syncronisation

    hello everyone,
    i am using cygnal controller i.e c8051f020.
    i am running 3 motors all together
    all motors clock is of different timer
    each timer has its own priority
    i want to know is there any possibility to sycronization of clocks of all motors.
    because…

  • Lx51 Segments located using wildcard are not located together...

    Hi,

    I have a line in my linker control file:

    ?PR?*?PHTESTMODE_ROMCPUMX(C:0x01EA00),

    But when I build it I see the following segment locations:

    81E9FFH 81E9FFH 000001H --- --- **GAP**
    81EA00H 81EA24H 000025H BYTE INSEG ECODE_TM ?PR?_PHTESTMODE_ROM1…

  • I2C procedure questions

    Hi,
    i am interfacing DS1631 temperature sensor to P89V664. And i am trying out using the in built I2C peripheral.
    i have read through both the datasheets and have written the program.
    However i am not able to get the reading from the temperature registers…

  • Use an existing project to make a new project

    Hi...

    I have have a project, and i want to use it as the base/template for a new project...

    Where is the "Save Project As" in the project menu ?

    Also if you want to rename a project, you could use the "Save as New Project" if there was…

  • scanf problem

    Hi, im trying to do an SMS project using AT Commands , i wanna display what the mobile sends on LCD , something like when i write the correct AT command using printf("AT\r"); it gives OK , i wanna display that OK on LCD , so i used scanf to capture the…

  • PC Lint warning 413:

    Hello,

    I am having 8052 based project. I am using Keil Microvision 3 compiler and am using PC-Lint for error checking and debugging. I am using absolute memory access macros of Keil for memory mapping in my project, which is as follows:

    Project filename…

  • Is this a bug for KEIL C?

    Create a simple project, use 8051 chip;

    input a simple program

    void main(void) //1
    { //2 char a,b; //3 a=-1; //4 b=a/2; //5 while(1); //6
    }

    build and debug step by step
    Open watch window,notice local variable
    when it executed at the 6th line.
    varvariable…

  • Simulate Multiple I2C devices in Keil known code

    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…

  • 64k External NVSRAM + External IO

    Dear all,

    Please anyone can help me?

    Currenlty i have x2 32kB SRAM for data and code. I would like to add more External-IO port for my board. How can i connect the circuit? I have no problem for write data to External Output port but the External…

  • C8051F363 doc & UV3 disagree

    Uv3 Parallel Port 0 crossbar display disagrees with the Silabs data sheet Rev 1.0.7 for the 48-pin package. With UART0 enabled, Uv3 shows SDA and SCL mapped to PO.0 and P0.1 respectively. With UART0 enabled, the doc Fig 17.3 shows SDA and SCL mapped…

  • Self Bootloader.

    Hi,

    Currently i have success download the hex data to SRAM and running the program. Now I would like to save the CODE data on external eeprom whenever power is ON will automatically download the data to SRAM and start running the program without manualy…

  • Allocating initialised array in CODE section

    I need to store an initialised array in code area.

    The HW is so, that when modifying this array by the program the whole 256-byte page where the array is located must be first erased and then written.

    Therefore, I need to reserve 256-byte of code…

  • DS390:is it a simluator display bug?

    for example,inst390.uv2 project in the C:\Keil\C51\EXAMPLES\Dallas 390\Asm,in disassembly window ,the first instruction is displayed as "c:0x000000 020003 LJMP RESET(c:0003)".but after acon set,the disassembly window refreshed by PageUp and PageDown…

  • Step Into doesn't work in our own AGDI DLL.

    Step Into doesn't work in our own AGDI DLL for our own MCU with 22-bit contiguous mode compatible to DS80C390.

    StepInto works as Step Over does and AG_GoStep(...) get the same nCode in AGDI DLL when we push F11 or F10 in disassembly window disable…

  • Keyboard shortcuts storage location?

    Does anyone know where the new definitions for new or modified keyboard shortcuts are stored? I looked at 4 .ini files that were modified with the time code of when I made the changes in the UV3 folder and also check the /bin folder......but nothing…

  • DS390:"DB 02h ,DW Reset" and ljmp

    for example,inst390.uv2 project in the C:\Keil\C51\EXAMPLES\Dallas 390\Asm,in disassembly window ,the first instruction is displayed as "c:0x000000 020003 LJMP RESET(c:0003)" with source code :
    DB 02H ; LJMP in Classic 8051 Mode
    DW WORD0 R…

  • On-Chip XRAM Usage Problem

    Hello,

    We have an application running on DS89C450. We link the compiled objects by means of LX51 advanced linker and 'Linker Code Packing' of the linker is enabled with the optimization level of 9.

    Our application have not been using On-Chip…

  • How to Overlay idata for a bootloader

    I have a bootloader routine that once I call it, I'll never return (instead we'll go thru a watchdog reset once flash has been reloaded).

    The problem is that I am very code space limited and want to lock down the bootloader into less space…

  • header file for 89LP2052

    Hi, When I am trying to download 89LP2052 header filefrom keil site,everytime I am getting 89c2052 header file.Please tell me how to get the file.
    thank u,
    nag

  • Display values larger than a long.

    I need to work with values larger than what can be fit into the 32 bit long available in the compiler. I can store the values in 5 byte arrays, but I need user interaction via a numeric dispaly and keypad. I need to be able to convert value stored in…

  • General Programing Question

    I'm experiencing a problem that some of you may have seen. I have an application that executes without any problems. If I comment out a sprintf() or a printf(), however, the code executes to a point and hangs. The point where it stops is not always…

  • How to control external tools with #define directive?

    Hi community,

    on 'Options for Target' -> Tab 'Output' -> Groupbox 'After Make' -> 'Run User Program #1' and 'Run User Program #2' i can specify to run external tools after compiling and linking. Normally i start a *.BAT commandline batch file.…