• Arithmetic on numbers larger than 32 bits

    JeanMarc Delaplace
    JeanMarc Delaplace

    I need to add a 32-bit number to a 48-bit number. What I want to do is perform the first 32 bit arithmetic in C as follows:
    Wv.A += Wv.B ;
    And to propagate the carry to the most significant word as follows:
    __asm { ADDC WORD Wv+10,#0 }
    Unfortunately…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • array of variables in RAM

    Aw  S
    Aw S

    I need to plase a buffer of 128 byte to absolute address at RAM (e.g. 0xC7FE) with any time write/read access. It is array of unsigned int of 64 words. How to do it in C-code, not in linker? How to use pointers to array or i have to use macros HARRAY…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Cyclic Redundancy Check

    Jose ?Mario
    Jose ?Mario

    Does anybody has a code of Cyclic Redundancy Check implemented in assembly??

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Problems with ULINK USB-JTAG Adapter

    Aw  S
    Aw S

    Hello! The problem is when i tryed to flash download or enter i get message "Device cannot enter bypass mode. Connection to target missing or incorrect". I cant find a reason why and when it happens. For about 3 mounth it works good.
    1)Can i…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Add one character to printf() on ext. flash and CAN data not received.

    Darrell Werries
    Darrell Werries

    Keil Forum,

    I am using the uVision 3 tools with the ULINK debug module on a board which uses the Infineon XC167 microcontroller and has both internal and external flash. I do not believe that the exact data transfer described below is important, but…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • A RET instruction does not return correctly (problem only with flash) !!!

    Mikael Briday
    Mikael Briday

    I have a problem in the context switch function of an OS.
    the switch function saves the context of the task that is running. Then, it sets the appropriate registers and need to jump to the task_function. The adress of the task_function is set on top of…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Union pointer

    Tobias Ilschner
    Tobias Ilschner

    Hi guys,

    I use Keil µV3 for C16x for 1 year and today a problem came alive. I tried to solve it by myself, but not successfully. So I'm asking you - the experts of this forum - for any help (just a hint could be enough).

    First let me introduce the…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Drivers for the xc16x

    Markus Hauser
    Markus Hauser

    Does anyone know about drivers for the xc16x

    • over 15 years ago
    • Software Tools
    • Keil forum
  • How do I select the appropriate memory model?

    Darrell Werries
    Darrell Werries

    Hello,

    I am creating a solution using the C167 processor, and it is not obvious to me which memory model I should use. It does sound as though this might be a bit difficult to change later, so I would like to get it right the first time.

    This is to…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Behavior of idle

    Bert Weber
    Bert Weber

    Hi,

    whats the behavior of idle regarding CAPCOM units?
    I observed the following:
    I have a 1 ms timer and a Sleep function based on the timer. The sleep function checks the elapsed time and if not finished
    go to the idle mode. Every ms the interrupt weakes…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Difference between C166.EXE version 3.12 and latest

    Brad Holeman
    Brad Holeman

    We have been using the Keil compiler for about 7 years now. We do not use the uVision IDE (even though we paid for it), instead we use the MSDOS executables C166.exe, A166.exe, etc... We have always used version 3.12 of C166.EXE which is dated 4/27…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Sorry,I want to know why the HEX2BIN and BIN2HEX file downloaded from the http://www.Keil.com can't

    wang wei
    wang wei

    Sorry,I want to know why the HEX2BIN and BIN2HEX file downloaded from the http://www.Keil.com can't work ?the phenomenon:after opened,it disappears soon.
    And I want to know wheather it can transfer a file of 1M,thanks a lot!

    • over 15 years ago
    • Software Tools
    • Keil forum
  • there are only 16 segments in my programe,yet there is an instruction"exts 17h,#2"

    wang wei
    wang wei

    In my assembling programe why there is the following error?
    Athough there are only 16 segments in my programe,yet there is an instruction"exts 17h,#2"
    Thank you very much!

    • over 15 years ago
    • Software Tools
    • Keil forum
  • Can anyone tell me why there are the following errors in my asembling programe?

    wang wei
    wang wei

    Can anyone tell me why there are the following errors in my asembling programe?
    1)where there is a RETI instruction and it belongs to an interrupt sequence actually.

    warning A80: 'INTERRUPT RETURN' IN NON INTERRUPT PROCEDURE
    2)in a CALLS plus…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • C164- DPPx: how to find data in Memory window???

    hannes mahler
    hannes mahler

    Dear Sirs!
    I would like to observe data in Memory window. For example this line of code was build from the compiler:

    000002F4 F2F50AA2 MOV R5,DPP2:0x220A
    Where content of DPP2 is '3'.

    Does DPP2:0x220A means ( 3 <<14) | 0x220A ?
    Result…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • SDLM on XC161

    Rich P
    Rich P

    Does anybody on here know how the arbitration works with the SDLM on the XC161?

    I have some messages that are unable to be transmitted on the VPW bus, resulting in an Arbitration Lost interrupt being generated.

    Just wondered if anybody had handled this…

    • over 15 years ago
    • Software Tools
    • Keil forum
  • RTC example for XC167

    Michel Hendriks
    Michel Hendriks

    Hi,

    Does anyone have C example code on how to use the RTC module?
    Thanks

    • over 16 years ago
    • Software Tools
    • Keil forum
  • Problem with Keil Monitor 166

    anny z
    anny z

    hello,
    I meet a problem,when I use Monitor Program 166.
    I have created a Hex86-file from my Source Code(file.c)in uVision2.But when I start the Monitor Program(mon166.exe),the Hex-file(file.H86) cann't be loaded by the Monitor Program. What happens?…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • How to assemble a ".src" file that generated by "c166 filename src"?

    LI Xing kun
    LI Xing kun

    Who can give me an axmaple?
    I have tried sevral times, but all failed!

    • over 16 years ago
    • Software Tools
    • Keil forum
  • Memory estimation

    S V
    S V

    Hello,
    is it possible to see how much memory is still avaible. I have NDATA(0xC000 - 0xE7FF) and a program. Now I would add a data array but I should know what the memory size is still avaible. I've tried to use the memory window, but it works only with…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • problem with uvision2

    anny z
    anny z

    hi,
    i write a small programm with kitcon-161 in uvision2 and use this serial interface for kitcon-161 to send or recieve daten.Anytime when i debug and stop my programm,an error come out:
    serial interrupt is disabled
    Is that a problem with the monitor166…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • keil & pc-lint

    Leonhard Fuchs
    Leonhard Fuchs

    Hi,
    we started using pc-lint because of software quality requirements. Now I found a problem with some headers of C166.

    absacc.h

    #if (__MODEL__ == 0)
      #define MVAR(object, addr)   (*((object volatile *) (addr)))
      #define MARRAY(object, base) ((object…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • how many RS232

    Mikael Briday
    Mikael Briday

    Hello all,
    I use the uVision2 to debug many cards communicating through CAN. I have 2 RS232 connections on my PC and 2 uVision instances that drive 2 cards.

    does someone know how many connections are supported by uVision? In the configuration, I can…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • Controlling P4.5 and P4.6 on ST10

    Kitty Fields
    Kitty Fields

    I am trying to use Port Pins P4.5 and P4.6 on an ST10 chip. I've enabled the DP4.5 and DP4.6 bits, and the SALSEL field is set to 00 for 1Meg of memory. However, I can't write to these two pins. I can write to P4.4 and P4.7, but not P4.5 and P4.6. Does…

    • over 16 years ago
    • Software Tools
    • Keil forum
  • Getkey function

    Benoît CHARBONNEAU
    Benoît CHARBONNEAU

    Hello,

    I have a problem with the function _getkey.
    What i have to do for test this one because putchar is ok but not _getkey.

    Thanks for your help

    • over 16 years ago
    • Software Tools
    • Keil forum
  • View related content throughout Software Tools
  • More
  • Cancel
<>