• Error when using string pointers

    Gowri Shankar
    Gowri Shankar

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • simple printf causes L103 linker error

    Sutton Mehaffey
    Sutton Mehaffey

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Printf not working in PK51

    Gowri Shankar
    Gowri Shankar

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Serial Modem communication.

    Ajay s
    Ajay s

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • Chipcon CC2510 on Keil

    Jimmy   S
    Jimmy S

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • ADuC847 Flash download Failed - Target DLL has been cancelled

    Sergey Kryachko
    Sergey Kryachko

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

    • over 13 years ago
    • Software Tools
    • Keil forum
  • C8051F120 Debug simulation on Keil

    pak p
    pak p

    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

    • over 13 years ago
    • Software Tools
    • Keil forum
  • PWM and ISD

    Julian Cox
    Julian Cox

    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…

    • over 13 years ago
    • Software Tools
    • Keil forum
  • xdata declaration result in uncertain output

    hemant t
    hemant t

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • About SFR

    Mahesh M
    Mahesh M

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

    • over 14 years ago
    • Software Tools
    • Keil forum
  • How to Edit/change and save the value of Internal Memory

    Mohammed Idrish
    Mohammed Idrish

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • 8051 - external address more than 16 bit in C

    Sreenadh surendran
    Sreenadh surendran

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

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Warning 52: Value has been truncated into 8 bits

    perline chee
    perline chee

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • How extern is used?

    Sreenadh surendran
    Sreenadh surendran

    How extern can be used?

    In which file the variable without extern to be declared?

    Or there is no such restrictions?

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Binary number

    MC Potgieter
    MC Potgieter

    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'

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Controlling uV3 window position

    Gary Lynch
    Gary Lynch

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • GARBAGE DATA IN XDATA VARIABLE

    Mehul Bhavsar
    Mehul Bhavsar

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Using external oscillator on MCB900

    Meiring De Wet
    Meiring De Wet

    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?

    • over 14 years ago
    • Software Tools
    • Keil forum
  • EZ-USB control panel problem

    Bill Kostelidis
    Bill Kostelidis

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Can't make project for AT89C51ID2...?

    Dave Sudolcan
    Dave Sudolcan

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • Pointer to SFR

    Mahesh M
    Mahesh M

    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;
    
    
        

    …
    • over 14 years ago
    • Software Tools
    • Keil forum
  • How to make an AT keyboard using 89C51.

    Maaz Qazi
    Maaz Qazi

    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…

    • over 14 years ago
    • Software Tools
    • Keil forum
  • write to serial port

    a a
    a a

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

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

    a a
    a a

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

    • over 14 years ago
    • Software Tools
    • Keil forum
  • _AT_ without the IDE

    erik  malund
    erik malund

    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

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