Hi
once i receive a serial code i have to put it in a variable from right to left or left to right.If the bit-string is shorter than 32 bit it is easy ,it should work even in this trivial way:
unsigned int rx_bit_var,final_var;
for(i=0;i<bit_str_lngth;i++)
{
rx_bit_var=RecvFuction();
final_var |=rx_bit_var;
final_var <<=1;
}
but what if the string is 100 bits long?
In a 9S08 i would dare to rotate variables through carry.
Is there any hardware in low end Kinetis microcontroller that can ease ths process?
It would be possible to profite of some register in serial modules as SPI,I2C or UART?
Many thanks