ADuCM320 Hardware Reference Manual
CODE EXAMPLES
Code Example to Enter Power Saving Modes
SCB->SCR = 0x04;
pADI_PWRCTL->PWRKEY = 0x4859;
pADI_PWRCTL->PWRKEY = 0xF27B;
pADI_PWRCTL->PWRMOD = 0x3;
__DSB();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
__WFI();
__nop();
__nop();
__nop();
__nop();
__nop();
__nop();
Code Example to Achieve Further Power Savings
pADI_ADC->ADCCON = 0;
pADI_IDAC0->IDACCON = 0x1;
pADI_IDAC1->IDACCON = 0x1;
pADI_IDAC2->IDACCON = 0x1;
pADI_IDAC3->IDACCON = 0x1;
pADI_VDAC0->DACCON = 0x100;
pADI_VDAC1->DACCON = 0x100;
pADI_VDAC2->DACCON = 0x100;
pADI_VDAC3->DACCON = 0x100;
pADI_VDAC4->DACCON = 0x100;
pADI_VDAC5->DACCON = 0x100;
pADI_VDAC6->DACCON = 0x100;
pADI_VDAC7->DACCON = 0x100;
pADI_CLKCTL->CLKCON0 &= 0xFFFC;
pADI_CLKCTL->CLKCON1 = 0x505;
pADI_CLKCTL->CLKCON5 = 0x7B;
// sleepdeep mode
// key1
// key2
// Hibernate
// Power off the ADC
// Turn off IDAC0
// Turn off IDAC1
// Turn off IDAC2
// Turn off IDAC3
// Turn off VDAC0
// Turn off VDAC1
// Turn off VDAC2
// Turn off VDAC3
// Turn off VDAC4
// Turn off VDAC5
// Turn off VDAC6
// Turn off VDAC7
// Switch to 16MHz clock
// Slow down system clocks
// Turn off clocks to peripherals
Rev. C | Page 17 of 196
UG-498
Need help?
Do you have a question about the ADuCM320 and is the answer not in the manual?
Questions and answers