• Problem with function call
    In the following code: ******************************************** #include <REG51.H> unsigned char rem(unsigned char d1,unsigned char d2) { B=d2; ACC=d1; #pragma asm DIV AB; #pragma endasm...
  • Call functions
    Hi, I have some assembly routines located in ROM memory, for example asmfunc that is located at address 0xF700 - is absolute address of flash memory. The program memory is organized: ROM code...
  • CODE for Call void function with parameter?
    void PWM_Config(uint8_t TIM_PERIOD, uint8_t TIM_PULSE) { . . . } int main() { PWM_Config(); // THIS LINE SHOWS AN ERROR . . . } ERROR LIST: main.c(251): error: #165: too few arguments in...
  • Why the interrupt function never called
    I am working with Cypress ez-usb development board. The problem come to me is that a FIFO internal interrupt function never be called. What could be the problem? It supouse to write some data to enpoint...
  • call EZ-USB I2C function
    Hi everyone there is a mistake when I want to write address 0x1d with the data 0x0f after called EZUSB_WriteI2C (); and EZUSB_ReadI2C (); the detail operations are as below: BYTE xdata reg = 0x0f;...