Hi. I'm currently trying to interface with a serial DAC. I have 16 bist of data, and I want to send these MSB first to the DAC. My question is: How do I access the MSB of 2 bytes of data, and then shift the whole "row" of bits to the left so I can access the next MSB? Rotating or shifting in itself isn't a problem, but I need to shift the MSB of the second byte to the LSB position of the first byte aswell. Does anyone have a solution to this? Or maybe I'm just going about it in the wrong way. Are there any easier way of sending this data to my DAC (Considering I do not have an SPI or microwire interface as an on-chip peripheral)... Thanks for any help. Oyvind
View all questions in Keil forum