I have a parallel DAC that is hooked up to my mega32's PORTC. The problem I am having is that the MSB of the DAC is connected(via PCB) to PC0 the next MSB is connected to PC1 and so on. So I need to "flip the port" to output the correct value. Here is an example: after a conversion of the internal ADC the result is stored in a general purpose register. If the result is 0101 1001 I need to flip this number to 1001 1010 and output it on PORTC. any suggestions :?: would be helpful.
Joined: Thu. Oct 7, 2004
Posts: 20 View posts