• C51/BL51: Upgrading the MCU

    Gary Lynch
    Gary Lynch

    I support an on-going project involving 5 MCUs running in
    parallel, which I build with uVision 3 (C51 = V8.02; BL51 =
    V6.00).

    I am running out of code space in one of them. I currently
    use the SiLabs C8051F046, which has 32k of flash, and want
    to migrate…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Re: Sprintf error

    Gowri Shankar
    Gowri Shankar

    I have written a routine to update an array using sprintf statement but after the execution the array doesnt seem to update. I am clueless where i have made the mistake. Can anybody help me? The program is given below.


    #include<reg669.h>
    #include…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Starting LPC935 PWM

    joao martins
    joao martins

    I am having problem to start the PWM.

    I have downloaded:
    http://www.keil.com/download/docs/203.asp

    and run it at the simulator.
    The PWM signal ONLY starts if I tick the TCOU2 at the CCU window!

    If I also load TH2 and TL2 when loading TOR2:
    It seems…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • I2C

    hemant t
    hemant t

    hi to all from last two 3 day's i strucked with some the problem. i have already done the i2c routine for AT24c04. Which works fine i can read from that and can write in. now i am going to use the LCD and printing the string on that i also developed…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Incorrect line references in A51 error generation

    Richard Iverson
    Richard Iverson

    Hi,

    When A51 encounters an error during the expansion of a macro it gives error line references to the original source file that are wildy incorrect. These are in the output window in uV3. When you then go to the referenced line #s in the source file…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Debugging via USB

    Julian Cox
    Julian Cox

    Can any 8051-based devices be debugged via the USB interface rather than via the serial port? Alterrnatively, are there any 8051 devices that have a JTAG interface that is supported by Keil?

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Errors when assembling C51 enerated .src flle

    graham howell
    graham howell

    I have just revisited some old code which was compiled with the C51 C compiler - the code compiles ok (flow is C51->BL51->OH51). I now need to add some inline assembler. To check that the new flow (C51->A51->BL51->OH51) is ok before I make the changes…

    • over 12 years ago
    • Software Tools
    • Keil forum
  • keil cx51 for loop not working

    Sreenadh surendran
    Sreenadh surendran

    When I compiled my C program in keil cx51
    the "for loop" is not working what is the solution?

    • over 12 years ago
    • Software Tools
    • Keil forum
  • Timer 0 interrupt not getting triggered

    Xalph Sudonym
    Xalph Sudonym

    Hi,
    I tried this example but the isr doent seem to be getting executed.

    In the isr i m calling a function to display on 7-segment displays.
    Otherwise the normal program flow is based on Receiving and Sending data on UART0(using timer1 in 8-bit auto…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Keep getting error when I attempt to build example program

    Lloyd Frei
    Lloyd Frei

    As you will probably concluded I'm new to programming. I've purchased a MCB900 board and attempting to program. I've loaded Measure C sample program and attempted to build it.I keep getting an error messgae that it can't execute C:\LPC900KEIL\C51\BIN…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • C-to-C converter from IAR to Keil

    Ali Fakoor
    Ali Fakoor

    Is there any C-to-C converter available to convert source files (assembly and C code) in bulk mode from IAR Embedded Workbench for 8051 to format recognized by Keil? (such as #pragma, inline asm statements, etc).

    I heard that IAR has a similar C-to…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Bad HEX file

    Richard Edmonds
    Richard Edmonds

    uVision has generated a HEX file that it has trouble downloading via ULink. Very occasionally (1 out of 50), it will succeed. Other HEX files work reliably. Regenerating the file does not help. However, when I manually delete a line (record), seemingly…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • gloable variable change by interrupt

    JenTa Yang
    JenTa Yang

    I have a global int variable, and it will be change in ISR

    because 8051 is a 8-bit MCU

    I have a code
    if(a == 0) it needs to check lowwer byte= 0 and higher byte =0

    but interrupt a--;
    so if a=0x100
    lowwer byte =0
    interrupt happen a = 0x0ff
    higher…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • EM Microelectronics Processor

    JIMMY sayavong
    JIMMY sayavong

    Does anybody in this forum know if the KEIL
    tool can support a processor made by EM Microelectronics
    such as EM6812, EM6682. If not, is there
    away to get around the issues?

    Thanks in advance

    • over 13 years ago
    • Software Tools
    • Keil forum
  • In built blueooth in 8051

    Gowri Shankar
    Gowri Shankar

    Does any body know whether there is a inbuilt bluetooth module inside the 8-bit MCU?

    If not can anybody give some details regarding how to interface bluetooth module to 8051?

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Two problems in interfacing GSM Modem

    Maaz Qazi
    Maaz Qazi

    I am interfacing a Benq M22 module based GSM modem with my PC and making an application which perform different purposes for SMS. I need to know that which AT command can be used to receive the SMS delivery reports ? I've tried to search AT+CNMI in different…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Simulator issue with printf?

    Max Power
    Max Power

    While using the simulator, the values of i in the serial window are shifted by left 8 bits.

    #include "stdlib.h"
    #include "stdio.h"
    #include "reg51.h"
    
    void main (void)
    {
        unsigned char i;
        SCON  = 0x50;
        TMOD |= 0x20;
        TH1   = 221;
       …

    • over 13 years ago
    • Software Tools
    • Keil forum
  • more than one way to skin a cat

    erik  malund
    erik malund

    this project has 3 functions (a, b nad c) function g, when running (which will be twice a year) makes function a TOTALLY inactive.

    In this memory starved world we '51ers live in I am sharing some global (please it has to be - need no comments on that…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • INLINE ASSEMBLY

    hemant t
    hemant t

    hi

    i want to use the assembly code in my c file
    how can i do this
    i refered the link below
    but did not the clear idea

    http://www.keil.com/support/man/docs/c51/c51_cm_srcfile.htm i gone through following step's
    upto step 3 it is ok
    but after that…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Re: Long Integer Multiple Error

    He Xi
    He Xi

    Think you.
    I modified my source :

            printf("%lu * %bu = ", N, M);
            printf("%lu\n", Freq);
    
            Freq=25690112L;
            printf("%lu * %bu = ", Freq, 4);
            Freq*=4;
            printf("%lu\n", Freq);
    …

    • over 13 years ago
    • Software Tools
    • Keil forum
  • EZ-USB FX2LP IN/OUT (Read/Write) problem

    Rajesh N
    Rajesh N

    Hi Friends,

    I have been working on CY7C68013A EZ-FX2LP USB based micro controller, I have written code for IN/OUT operation i.e, Read and Write operation of USB.

    I am initially reading data from HOST a bulk 64 Bytes of data and storing it in a location…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • CY768013A USB VID/PID Problem

    Rajesh N
    Rajesh N

    Dear Frnds,

    I am using CY768013A USB microcontroller and when i connect my board to PC , I get my Vendor ID and product ID as 0x04B4 and 0x0082,

    1. I have not seen the product ID 0x0082,anywhere mentioned in manual given by cypress.

    2. After downloading…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • code explaination

    phil Jones
    phil Jones

    Hi can anyone tell me the basics of what this code is doing? I know it is writing to eeprom but is it writing a byte at a time and incrimenting the address?

    EECSN is the eeprom pin.

    
    #define EE_WRSR     0x01
    #define EE_WRITE    0x02
    #define EE_READ…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Software serial port

    phil Jones
    phil Jones

    Hi, has anyone any keil code for a software UART on an 8051? Leigh

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Re: Accessing 96KB memory in P89C669

    Gowri Shankar
    Gowri Shankar

    I created a project with main function whose code size is more than 64KB. Upon compiling there was error message,

       error C253 : 'main' :function exceeds 64kb code size
    

    The controller P89C669 is having 96KB flash memory but then why this…

    • over 13 years ago
    • Software Tools
    • Keil forum
<>