• passing a port/pin to a function
    hi, i have a question regarding passing a port/pin to a function. i have written a piece of code as below #define LED_PIN P1_0 // bit LED_PIN = P1_0 also does not work void blink(bit...
  • passing function pointers as parameters
    Hi, I have written a simple 8051-application using uVision2 V2.37. I have defined a function which expects a pointer to a function which is then saved in an array of function pointers: int registerFunction...
  • Pass 1 dimensional array in function
    Passing any arrays by value or pointer does not work very well. I can try integrating an array into a structure, but that is not how I would do it. if I have: frame( unsigned char &mbrtubuf,...
  • Trying to pass pointers as arguemnts to a function
    Below is a code Snippet: I am trying to pass pointers through a function; And I am trying to get back the results. Does not work at this time? main() { static UCHAR ucRcvAddress, *ucMBFrame...
  • Problem passing variable to function in ISR
    So, I have a problem sending a value to a function at different parts of my code. Here is my code: void LongRightShift(unsigned char NumBitsShift) { // My Code Here NumBitsShift = NumBitsShift;...