• Busy flag of AT89C51ED2 is not getting cleared!!!

    Murali S
    Murali S

    Hi Keil,

    I have written the follwing code for writing the byte in EEPROM in ED2. The Problem is BUSY flag is not being cleared.

    while(!(EECON & 0x01)) ;
    EA = 0;
    EECON |= 0x02;

    XBYTE[0X0055] = 'C';

    EECON |= OxOO;
    EA = 1;

    Please provide…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • How to control Uart transmission by AGSI

    He Xi
    He Xi

    Hi..

    I write a DLL to simulate communication between an Serial instrument and 8051.

    my work is:
    1.DefineSFR SCON
    2.DefineVTR SIN, SOUT
    3.Add WatchSFR(SCON..., ReadWrite)
    4.Add WatchVTR(SIN, Read)

    in Watch SCON function:
    if the condition "TI.CurrentValue…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • "using 0" and R0 fun (repost with product field filled in this time)

    Spencer Doidge
    Spencer Doidge

    With apologies for my oversight, I repost this for the benefit of someone searching the forum by product.

    We just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Regarding dynamic allocation

    bagavathy  kumar
    bagavathy kumar

    iam working in 8051 microcontroller i want to know about the dynamic memory allocation in Keil c just operation of memset

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Regarding absolute address

    bagavathy  kumar
    bagavathy kumar

    Question:
    i want to place my fn()1 in xdata 0x0100 is it possible by absolute address?

    • over 14 years ago
    • Software Tools
    • Keil forum
  • "using 0" ==> weird bugs involving R0

    Spencer Doidge
    Spencer Doidge

    we just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells the compiler not to bother pushing/popping R0. Then it happily goes around writing to R0, doesn't pop…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Alternate controller for MSC1210Y5

    Xalph Sudonym
    Xalph Sudonym

    I m using MSC1210Y5 for some application
    Features i require:
    1. 1 uart(atleast)
    2. Keil UV2 compatibility
    3. Working on 5V supply
    4. 12 Port pins(atleast)

    Can any of you suggest me some other controller that has the above mentioned features but on the…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • How can I save Constants

    Stefan Kunz
    Stefan Kunz

    Hallo everybody,

    can anybody help me. I want to save Constants on the XRAM. How does this works?

    • over 14 years ago
    • Software Tools
    • Keil forum
  • lcd interface

    maria arshad
    maria arshad

    Hello!
    I am trying to interface an HD44780 lcd with 8051. I have successfully displayed a string on it but am having some problems in diplaying strings one after other.
    when I try to display a string after a string already displayed , the former…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • xdata data stroage

    Rajesh  N
    Rajesh N


    Hi,

    I am using AT89C51ED2 Micro controller,

    I have used "XDATA" for my buffer array, when the program is run , I am not able to get correct output, when the same array is used with "DATA" or "IDATA" as storage specifier it is working well...…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Does Keil support CALL BACK FUNCTIONS ?

    Rajesh  N
    Rajesh N


    Hi ,

    I tried to implement call back functions in my program, but unfortunatly it is not working and system is getting restarted as soon as the call is made to the specific function.

    I have used function pointers as specified in the data sheet.

    Does…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • UART interface

    Stefan Kunz
    Stefan Kunz

    I have the problem. I want to program the UART interface. When I simulate my program it works but if I flash it into the memory I alwase reseive the wrong datas. (the baudrate are always 9600 PC-µC)

    • over 14 years ago
    • Software Tools
    • Keil forum
  • integration and disintegration of float interms of charactor

    Satish Munot
    Satish Munot

    Dear friends
    we know that Float is four byte in length;
    I will like to know how to disintegrate Float in term of char and again I will likie to integrate(constrct)same vale for float from hose 4 byte
    Since I want to save float in eepromm
    best regards

    …
    • over 14 years ago
    • Software Tools
    • Keil forum
  • Moving average Routine for 24 bit ADC

    Ravi  P
    Ravi P

    Hi

    I working on a project where i have interfacing 24 bit ADC to AT89s52. I want to implement moving average window method for better resolution.

    Any one can suggest me how to implement moving average or if any one has the routine can you please share…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • EMP900 -> debug & download problems

    Joseph Joseph
    Joseph Joseph

    hi,

    why do I get now the following error when trying to debug or download firmware:

    "CRC Check failed on Command 'DownloadMonitor()'!

    I can not debug firmware and can not download firmware (using EMP900 -> ICP) to microcontroller (P89LPC932A1…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • integration and disintegration of float interms of charactor

    Satish Munot
    Satish Munot

    Dear friends
    we know that Float is byte in length;
    I will like to know how to disintegrate Float in term of char and again I will likie to integrate(constrct)same vale for float from hose 4 byte
    Since I want to save float in eepromm
    best regards
    satish…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • ADC in 8051F060

    Vamanan Kutty
    Vamanan Kutty

    Have anybody help me with the ADC interface code for C8051F060 ?. How to get the sign bit for the ADC output for the same.
    Thank You.

    • over 14 years ago
    • Software Tools
    • Keil forum
  • HOW TO USE UV2 SIMULATOR ........

    Amit Ghatwal
    Amit Ghatwal

    Hi all,

    I am writin here for the first time.
    I am not able to open the serial port debug window of my simulator from my keil uv2 IDE.
    I am using TI based MSC1210Y2 chip.
    I have a registered version of uv2 IDE.
    Whereas when i send some data on my serial…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • LCD simulation

    Julian Cox
    Julian Cox

    Does anyone have experience of the LCD peripheral device simulation from C51.de? (also available from the KEIL site)
    As my German is non-existant, it is a bit of a problem.
    The DLL works and the target code is OK - I can work out most of it - but I can…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Is 'unsigned' a datatype by itself?

    Ramya  Chakinarapu
    Ramya Chakinarapu

    Hi,
    I have seen that some of the example programs availbale in this site define/declare variables as unsigned.

    For eg: unsigned voltage; //A-to-D example program

    What type would voltage in the above case assume? If it just holds a numeric value between…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • rtos3

    rizal abd
    rizal abd

    ..continued..

    
    /******************************************************************************/
    /*        Task 1 'command': command processor */
    /******************************************************************************/
    void command (void) _task_…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • usnig Monitor51

    Ramya  Chakinarapu
    Ramya Chakinarapu

    hi,
    I want to use monitor51 to test my code that collects some analog data and feeds it to ADC on-board of 8051. I am using uVision2. I have read somwhere that it is necessary to download mon51.exe file on to the board before testing it. But I couldn…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • rtos3

    rizal abd
    rizal abd

    ..continued..

    
    /******************************************************************************/
    /*        Task 1 'command': command processor */
    /******************************************************************************/
    void command (void) _task_…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • KEIL and SiLabs IDE.

    Vamanan Kutty
    Vamanan Kutty

    How to configure KEIL in SIlabs IDE?. I configured as per the instruction in the pdf. But unsuccessful. If anybody working with both please help me.

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Port Pin toggle

    Mahesh M
    Mahesh M

    I wrote a code for to toggle the port that is given below
    #include<reg51.h>

    sbit CLOCK = P0^2;

    void main()
    {
    while(1)
    {

    CLOCK = CLOCK^1;
    }
    }
    its not toggling in the IDE please guide me
    Mahesh

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