Browse By Tags

  • Error when using string pointers

    I have writtena function to display string of characters using pointer but it shows error. can anybody what is the error in it?

    void WriteString(char *Buff)
      {
         int nStringLength;
         int nLoop;
    
         nStringLength = strlen(Buff);
    
         for(nLoop…

  • simple printf causes L103 linker error

    I haven't received an answer that fixed my problem, so here is another example.

    I have a simple printf statement that causes a L103 error. No variables declared. Includes "stdio.h" and links in C51FPL.LIB. Others LIBs don't seem to link correctly…

  • Printf not working in PK51

    I am using printf statement in my projerct using PK 51 compiler for the target P89C668. But i found some trouble in it.

    My code is,

    
    void main(void)
      {
         SCON = 0x50;
         TMOD = 0x20;
         TH1  = 0xFD;
         TL1 = 0x00;
         TR1 = 1;
    
         SBUF…

  • Serial Modem communication.

    Hi ,

    I am trying to send data from my micro-controller to PC.
    I am able to detect incoming ring pick up the modem and send data. The Data that i am sending is received by the PC but If i send some thing from the PC i do not receive it at my contro…

  • Chipcon CC2510 on Keil

    Has anybody in this forum successfully built
    a project with chipcon CC2510 micro on Keil
    compiler? I understand that all libraries sets
    available at Chipcom website are written for
    IAR compiler. I am very curios to know if
    it is feaseable/possible to…

  • ADuC847 Flash download Failed - Target DLL has been cancelled

    Hello!

    I've installed Uspear driver flash downloading on my ADuC847 (from ">http://www.keil.com/download/docs/285.asp

    Compilation finishes with success. But I can't download the program on the board. The following message appears:…

  • C8051F120 Debug simulation on Keil

    Hi,

    I use Keil to simulate C8051F120 but I cannot view the all peripherals of MCU (No hardware debug). I can view all peripherals if I use C8051F005. Anyone know about it? Am I missing something?

    Thanks,
    pak

  • PWM and ISD

    I have downloaded the PWM project files CAPCOM_PWM. They compile and simulate correctly. I can also load the code into my MCB900 board (ver 2) using the latest FlashMagic with the jumper RESET installed. It runs OK when I move the jumper to RUN. If I…

  • xdata declaration result in uncertain output

    hi there, i am danish working on the project which included 2 X 8 7-segment display,AT89S52 microcontroller, v to f converter which act as ADC 24c04 eeprom etc. as step by step developing the code all thing are going smothly.but now when i want to add…

  • About SFR

    How to define TH2 and TL2 as a int
    I tried using data unsigned int Count _at_ 0xCD but it is giving error C274

  • How to Edit/change and save the value of Internal Memory

    Hi Friends,

    Am using 8051 for my Project...I just need to know how to edit/Change and Save the value in Internal Memory untill Reset. On Reset the original value will be backuped Automatically...Please say how to change and save values of Internal…

  • 8051 - external address more than 16 bit in C

    Is it possible to write a code in C which can be directly used to address more than 16bit for 8051
    compiler - uVison2

  • Warning 52: Value has been truncated into 8 bits

    Hi,

    In my program which initially works fine, after i initialize 1 or more memory space for variables, it shows "Warning 52: Value has been truncated into 8 bits"!

    Although it is just a warning, and won't affect the compilation, but it…

  • How extern is used?

    How extern can be used?

    In which file the variable without extern to be declared?

    Or there is no such restrictions?

  • Binary number

    How do I use a binary number so that the compiler understand it?

    This is what I've done:

    10101010b

    But the compiler gives an error: syntax error near 'b'

  • Controlling uV3 window position

    As installed, my version of uVision 3 permanently (I
    thought) docked the Project window in the upper-left corner
    of the application, and the Workspace to its right. This
    suited me fine.

    Last week while clicking around, I inadvertantly did
    something…

  • GARBAGE DATA IN XDATA VARIABLE

    Dear All,

    I am getting garbge value, in my xdata variable. I am using c8051f021 controller with internal xdata of 4K.I do not understood why such problem occurs suddenly. Whether this is because of interrupts clashing or any thing related to interrupts…

  • Using external oscillator on MCB900

    I am developing a system on the MCB900 dev.board and I want to use an external crystal to generate the clock @ 12MHz. What procedure do I have to follow to enable the crystal?

  • EZ-USB control panel problem

    Hello.

    I am using the EZ-USB control panel application from Cypress to download hex files.

    The buttons with the names "Get Dev", "Get Conf", "Get Pipes" etc are working fine, the download also works fine.

    My problem…

  • Can't make project for AT89C51ID2...?

    I've made KEIL projects for a variety of microcontrollers over the years, but I can't seem to make one for the ATMEL AT89C51ID2. Every time I try to the IDE crashes just after I select that part. I can still create new projects for other parts, but not…

  • How to make an AT keyboard using 89C51.

    Can anyone please help me how can I make a keyboard for my computer using 89C51. I must tell you the I want to make a device that can generate some keycodes itself on PS/2 and that will connect to the PC to perform some specific task for a little time…

  • write to serial port

    I have a keil uvision3. I run Hello example program in uvisin3 in simulation mode. but nothing write in serial port. what is reason?

  • Pointer to SFR

    How to define a pointer to the SFR,
    e.g.
    I want to define a pointer to a Port0

    unsigned char data *Sensor_Port = (unsigned char data * )0x80;
    

    void main()
    

    {

    while(1)
    

    {

                               *Sensor_Port    =       0xFF;
    
    
        

  • KSC

    I have a KSC4 Emulator that bought it from Infineon Co.
    whether uVision3 support it? How I can connect uVision to KSC?

  • _AT_ without the IDE

    I need to locate 3 modules above 0xe000 and I have find manr 'recipes' but all refer to the stupid IDE which i can not use.

    Anyone have (a link to) an example of doing it via commandline?

    Erik