• MC51: Strange behaviour of sprintf
    Ok guys, I have run into something really strange, I hope you guys have the answer for that. How come this: void main() { U8 i; char aux[3]; U8 buffer[5]; buffer[0] = 0x0A; buffer[1] =...
  • Strange behaviour 89C52RD with printf()
    Hello, I have an application consisting of a atmel 89c51RD µC, 32k external SRAM and a memory mapped i/o device at adress 8000h (spc3 profibus controller). As the controller has integrated 1k xdata...
  • Strange Compiler behaviour
    Hello, I have to migrate from one type LCD to another. So, I cloned the project for the new LCD type. The problem is that almost identical code(software SPI) is compiled in very different manner. ...
  • Strange Float Behaviour
    Guys, I am having a problem with float division using PK51. I was wondering if anyone could explain this or has seen it before. I have a float, and want to divide it by 36000. If I do this directly...
  • Strange behaviour in TIMER0 ISR
    Hi all, I have a problem with the ISR of TIMER0. I'm using keil uVision2 and my target is SIlicon Laboratories C8051F040. I've tried to make a very simple project in assembler to use Timer0 ISR...