Power saving

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
mmar
Experienced Member
Posts: 122
Joined: Fri Jul 05, 2013 5:55 pm

Power saving

Post by mmar »

I write aka in pdf https://www.xmos.ai/download/xCORE-200- ... l(1.0).pdf

write_tile_config_reg ( tile [0] , XS1_PSWITCH_PLL_CLK_DIVIDER_NUM , 1) ;
setps ( XS1_PS_XCORE_CTRL0 ,0 x10 );

but code seems dont work.

After this i found old biquad pdf

void save_power() {
// set_voltage(950);
write_sswitch_reg_no_ack(0x8001, 7, 10);
write_sswitch_reg(0x8003, 7, 10);
write_pswitch_reg(0x8003, 6, 10);
setps(0x010B, 0x10);
}

here 0x010B is other reg as XS1_PS_XCORE_CTRL0. WHAT IS RIGHT???

And primary question i plan reboot to low power mode or better say between two main codes and need help howto compile this

unsigned marker; //in RAM place untuched on reboot...

int main(void)
{
if( marker == 0xAAAA )
{
par
{
...main main
}
}
else
{
par
{
... save power
}
}

}


Post Reply