• make new library

    I want to know the steps to make new C51 library and use it.
    If possible, please give out an example.
    Thanks.

  • P89C51RD2XX and Monitor-51

    I know the Phillips MCU P89C51RD2XX has good function ISP as self programming capability. However, in order to re-configure the target which I can use both functions (ISP and Monitor-51 for in circuit debegger) is very difficult.
    I don't know if I can…

  • Error on Command line function of Flash Magic in uVision2 IDE

    Hello,
    I have just used Phillips MCU P89C51RD2BN.
    I tested the ISP on independent Flash Magic successfully. I also want to use the command line function of flash magic on uVision2 IDE. But when I add arguments "DEVICE(89C51RD2XX, 12.000) COM(1, 19200…

  • Timer Interrupt

    I need a timer interrupt at periodic intervals.

    I understand that the timer will count from 0x000 to 0xFFFF before it overflows and activate the timer interrupt.

    However, if I need to have a longer count ie longer periodic interval. How can it be done…

  • How to debug an isr?

    Hi!

    I have written a simple uart driver for the nordic bRF24E1 (8051 with intergrated rf) and somehow i do not seem to be able to debug my interrupt service routine.

    EA is set to 1 and Serial Interrupt is enabled but when i set a breakpoint inside the…

  • About UART@16c554

    Im looking for interrupt driven routines for TL16c554 Uart bus with a 80c51, does anybody show some advice for me?

    TIA.

  • How to write code for debugging the DSP chip

    Its very helpful if anybody gives a tip about how to write a program in ( uvison) to convert usb signals to JTAG signals using
    microcontroller (Cypress CY7XX series).
    The JTAG signals r for debugging the DSP chip.

  • serial communication

    hi
    friends iam working on cygnal mcus silabs,
    i need c programme of serial communication
    pc to controller.ialready used hyperterminal iam getting results but iwant to make my own menu driven software in that iwannna call the serial programme as fucnction…

  • OPTIMISING CODE

    HI
    all iam working on cygnal mcus,we have limited keil programme space of 1000bytes
    now my programme is yet to cross the limit .
    how to reduce the code size , if any one knows please put a reply to me

    regards
    john e

  • (VARIABLE NOT HOLDING OVERFLOW IN CHECKSUM)

    Hello
    iam working on cygnal microcontrollers c8051f124,iam performing checksum as i written below.
    The datas are written in external memoryarea
    when iam performing checksum at 4th byte operation iam exeeding the 8 bit register value ie sum=7b+ff=17a(378…

  • Function in a fixed adress

    Hi,
    I'm trying to put a C function in a specific adress but I'm not having success to do it. Below I describe in some steps what I tried to do.

    1- First I create a source code with my special function in it. I called this source code as "switch…

  • C51

    Hello
    everybody,
    iam working on cygnal(sillabs)microcontrollers.i would like to write different data everytime starting from the memory location 0x20 of ram,can any one suggest me how to do it.
    eg:for ox20 address ---->>write 0xf9
    0x21…

  • ELF file format

    Hi all,

    Is it possible to get the C51 compiler output with ELF format ?.
    In other words
    Can i extract Map file or listing file with ELF file format using c51 compiler or any other embedded system C compiler?
    Thanks in advance.

  • _at_

    How can I write a specific value in a specif adress of my Flash?

    For example, I would like to write the value 0x55 in the adress 0x1fff of my flash, then if I use the command below:

    unsigned char code A = 0x55;

    I will write 0x55 in my Flash, but I…

  • I2C EEPROM 24LC16

    I need you generous help, Folks.

    The following is part of my code.
    What I want to do is to check if the bus is free, if it is, then I want to read out the data at the address 0.
    "Address 0" means page0 and word address also is 0.
    "RECACK_MEMO…

  • 24lC16 Device & Word Address

    Need you generous helps.

    Why my program only can read out the first block 's data of 24LC16?
    The other data have been read out are all 0xff.

    The following code is my program about how to set device address and word address.

    For page write:
    I plan…

  • BIN file

    How can I generate a .Bin file instead of .hex file using uVision ?

  • Trouble when simulate

    Why uVision2 does not simulate 8952. This compiler does not understand 8952 register(example TR2, T2MOD, T2CON...)

    Nguyen The Son

  • problem with puthcar()

    I am using puthcar( ) function to send a series of bytes serially thru UART. My problem is that i cannot see the output through serial window of simulator . its printing just some junk values. when i am doing the same with printf(). I am getting response…

  • Map I/O

    I use Dallas 390 and I want to map the device I/O into RAM which can be accessed by Dallas 390.I have the following solution:
    1.
    Using XSEG in Ax51 as the following example

    XSEG AT 08000h
    IO_PORT: DS 1
    
    The variable IO_PORT can be externed in head file…

  • Absolute address for FUNCTIONS in CODE-space

    Does anyone knows a methode, to declare a function in a specific CODE address in C51?
    Something lika a org xxxx in assembler !

  • How to implement " char * strcopy(char * DestStr, char * SourceStr, uchar StartPos, uchar Count

    "Keil C51 is very good."
    ===> "C51 is v"

    strcopy(DestStr, SourceStr, 6, 8) ?
    How to implement it ?

  • DOUBT

    In 8051

    1 machine cycles = 12 CLK cycles
    2 ALE pulse produced in 1 M/Cycle does it means that both opcode fetch and memy read can be performed in 1 m/cycle if needed?

    T state = subdivision of operation performed in 1 CLK cycle.

    Please clarify if my…

  • Interrupt using function issue.

    My Interrupt_1 C code

    void EXTERNAL_INT_1 (void) interrupt 2 using 1
    {
    TEST();
    }
    
    TEST()
    {
    if(A=B){
              if( C.K[0]==D[0]&&C.K[1]==D[1]&&
                  C.K[2]==D[2]&&C.K[3]==D[3]&&
                  C.K[4]==D[4]&&C.K[5]==D[5])
                    {
       …

  • Thank you

    Thank you...

    I have checked the application note 162 from DALLAS.

    I will update my progress.