Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/05 13:55
Read: times


 
#94447 - outsite main problem
Hello,

i have a problem with my mcu.

I use µVision2 (v2.40) as ide to develope my MCU, i write the Programms in c.

I use the i2c bus to read sensors and write to a lcd device. The i2c driver is working i use the driver from CodeArchitect, the i2c_transmit func i add a buffer pointer that transfer the data. i2c_transmit( address, char *buffer, unsigned int len );
it is working but i have a problem.

and on i2c_receve( device_address, char *buffer, char leng ) (is my i2c recv func)
when i recv 2 bytes from a LM75 sensor and than i calc the temperatur it shows 0.0. If i printf anyone from the buffer to the rs232 device it can calc than the buffer is not empty.

update:
now i can say more about the problem.
in the main function it can send and recv successfull data to and from i2c bus but outsite the main function it don't work. (the main funktion call a other funktion).

so no i have no more idee what the problem is.

What is the problem?
can anybody help me?

thanks

List of 7 messages in thread
TopicAuthorDate
outsite main problem            01/01/70 00:00      
   outsite main problem            01/01/70 00:00      
      found a prob            01/01/70 00:00      
         which uC?            01/01/70 00:00      
            re: which uC?            01/01/70 00:00      
         You need to find the problem!            01/01/70 00:00      
            You need to find the problem!            01/01/70 00:00      

Back to Subject List