Hi,Thanks for your visting.
When I write a value into DACCON, just like this:
DACCON = 0x50;
DACCON = 0x58;
there is no change in DACCON which always equal 0x0200.
Could you give me some suggestions?
Hi,Thanks for your visting.
When I write a value into DACCON, just like this:
DACCON = 0x50;
DACCON = 0x58;
there is no change in DACCON which always equal 0x0200.
Could you give me some suggestions?
Oh, I have found the cause.
Because I have not enable the clock source of DAC before writing DACCON.
It is ok now according the way below:
CLKDIS &= ~(0x01 << 7);
DACCON = 0x58;