Do you have a question? Post it now! No Registration Necessary
February 9, 2006, 6:27 pm
rate this thread
I am using PIC 16F877 and i have a little prob...Any code which is
datahi = donnee doesn't work...Actually the PIC blocks .....
It must normally work but it didn't...
I don't know where the error is...:-/
This is my code (I made a I2C communication):
The Slave took delivery from a 5 Byte Array (This program is in the
if(test_bit(sspstat,S) && !test_bit(sspstat,R_W) &&
test_bit(sspstat,BF) && test_bit(sspstat,D_A)) //&&
// each times I fill the Array with a char
donnee[idx] = sspbuf;
if(donnee == 0xAA)
valide = true;
// In my main programm, I try to read two value from my array
datalo = donnee;
datahi = donnee;
//unsigned char lo = donnee;
//unsigned char hi = donnee;
I tried a simple addition, but unfortunately it didn't work too...
Have someone an idea how i can soluce my prob ?
- » Looking for the right 8051 to use on your next project ?
- — Previous thread in » Microcontroller Discussions
- » Buchtip: Messtechnik mit einem ARM Cortex M0-Mikrocontroller
- — The site's Newest Thread. Posted in » Electronics (German)