This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Modifying SimpleBLEPeripheral for pull down instead of pull up IO's

Hi, I have used the SimpleBLEPeripheral project as a starting point for our project and our hardware has been based around the same design. The only change that was necessary is that the button IO is used with pull down instead of pull up.

I've made the change of adding P2INP |= BV(5) which switched the pull and it functions great, however the device never seems to enter Power Mode 3 any more. If I remove this pull change line, although the interrupt doesn't work it enters PM3 as it should. (We also tried modding the board to get the IO to work and it does in fact work fine and enter PM3 when off).

 

So my question is this, is there somewhere else in the SimpleBLEPeripheral code that would need changing to reflect the change of pull?

It's as if the code isn't sleeping because it things the IO is still being interrupted.

 

Thanks