mahm150
Full Member level 1
- Joined
- Dec 14, 2010
- Messages
- 98
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Cairo, Egypt, Egypt
- Activity points
- 2,001
I think mikroC auto convert, unsigned char to unsigned long int.long_data =(unsigned int) data1 | data ;
You can usei not used mikroC. i use codevison
i think that my code now work good when i make this (unsigned int)data=EEprom_READ(address);
long_data = (long_data)|((unsigned int)data<<x) ;
i will try to comment in this casting then i wil tell u the result
---------- Post added at 19:38 ---------- Previous post was at 19:31 ----------
it work good ; that u mean i not need to make cast in long_data = (long_data << x)|data
although data unsigned char
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?