Tower K60N512 DAC weird behavior

Discussion created by Guest on Jul 31, 2012

I'm tinkering with Tower K60N512.

 

When I was testing DAC module and trying to initialize data buffers, weird thing happened.

For example, the following lines caused

 

                                                DAC0->DAT[0].DATL = 1;

                                                DAC0->DAT[0].DATH = 2;

                                                DAC0->DAT[1].DATL = 3;

                                                DAC0->DAT[1].DATH = 4;

                                                DAC0->DAT[2].DATL = 5;

                                                DAC0->DAT[2].DATH = 6;

 

0x400CC000: 01 02 03 40 01 02 03 04 05 06 00 00 05 06

 

In stead of

 

0x400CC000: 01 02 03 04 05 06 00 00 00 00 00 00 00 00 

 

Am I doing something wrong?

 

Young

Outcomes