Other Parts Discussed in Thread: CC2530, Z-STACK
Hi everyone,
I’m working on ZStack 2.3.0, SampleApp and CC2530. I would like to know where do you modify the code for GPIO on my CC2530? I tried to change my I/Os as output low in hal_board_cfg.h and HAL_BOARD_INIT() function, but I do not see any changes on the consumption of my battery board. I cannot reduce to some uA as said in the CC2530 specification.
I actually consume 105 uA with the SOCBBoard.
This is the code I wrote :
P0SEL &= ~0xFF;
P1SEL &= ~0x0F;
P2SEL &= ~0x1F;
P0DIR |= 0xFF;
P1DIR |= 0xF0;
P2DIR |= 0x1F;
P0 &= ~0xFF;
P0 &= ~0xF0;
P0 &= ~0x1F;
Is that correct ?
Thank you !