• Arithmetic using numeric constants
    Hello, We came across a mystery/bug yesterday. This was tested with C51 v9.53 (Simplicity Studio) and 9.56 (uVision). unsigned char data c; unsigned int data d; // The values 0x7B and 0xFF7B...
  • sending numerical values to the hyper terminal
    hi, I am using a 8051 microcontroller in my project. The purpose of the project is to count the pulses using a controller. I have configured 8051 in the counter mode and the counted value is being sent...
  • numerical error handling with arm libraries
    It appears that the only math related system errors handled by errno in the arm C libraries are: EDOM, ERANGE, EILSEQ, The default behavior for divide by zero is stated as "not trapped, returns...
  • fopen fails after numerous successes
    Hello, I have trouble writing an file-copy function. My fcopy-function should read data from a file into a buffer, then write the buffer to another file. It works fine for several times in succession...
  • From C, inline assembly LJMP to Numerical Address
    How do I perform a long jump to a numerical address from my C code? I'm pretty sure I have to do this with inline assembly - however that seems complicated for C51. I figured in C I could do this: ...