Originally I used mode 5 because that was the way my code ran for the 1257 DAC. I took another look at the MCP4922 datasheet though and on pg. 19 it shows the clock idles low and somewhere I think I read that the data gets latched on a low to high clock pulse. What would DEFINE SHIFT_PAUSEUS xx do ? I'm more concerned about the way I tacked the configuration bits on to the front of my variable. I have to send the DAC 16 bits. The first four are the configuration bits the next twelve bits are the output. Should I add/or a 16 bit configuration value with my output variable and then only Shiftout a single 16 bit number? Or should it work the way I've got it?
Bookmarks