kommanche
Member level 4
- Joined
- Mar 18, 2007
- Messages
- 70
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,766
Hi,
I am newbie in PIC programming. I am using PIC12F1822 and XC8 compiler. Can you please help me with the following:
What I want to do is write a function for breaking 30 bit data into pieces and write them to target IC.
How to do such a thing:
char x=2DC6B2B3
asd(x)
void asd (char xx)
{
x1= "an expression to take MSB 8 bits of xx"
x2= "an expression to take next 8 bits of xx"
x3= "an expression to take next 8 bits of xx"
x4= "an expression to take last 6 bits of xx"
}
Thanks
I am newbie in PIC programming. I am using PIC12F1822 and XC8 compiler. Can you please help me with the following:
What I want to do is write a function for breaking 30 bit data into pieces and write them to target IC.
How to do such a thing:
char x=2DC6B2B3
asd(x)
void asd (char xx)
{
x1= "an expression to take MSB 8 bits of xx"
x2= "an expression to take next 8 bits of xx"
x3= "an expression to take next 8 bits of xx"
x4= "an expression to take last 6 bits of xx"
}
Thanks