This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

programing and interrupts on custom PCB using nrf51822

Hey,

I am designing a custom PCB with the nrf51822. I would like to use the reference layout that Nordic provides, specifically nrf51x22_qfaa. My project involves reading an accelerometer and gyroscope via TWI and transmitting certain measurements via BLE. I am designing this PCB in Altium Designer and I am using the reference files Nordic provides and footprints from their libraries.

I'd really appreciate it if any of you could help me clear up a few things:

1.) To program the chip on my custom PCB I am planning on including in my design the same 10 pin SWD header Nordic uses for the development boards with J-Link. Currently I am connecting SWDIO and SWCLK directly to the chip with a 12k pulldown resistor on SWCLK. Is this ideal? I'm confused about nrf_RST.

2.) When I connect my accelerometer and gyroscope to the nrf51822 via TWI can I use any GPIO pins I want? I am planning on connecting SCLK and SDA to GPIO pins 8 and 9 and then connecting interrupts to GPIO pins 10-13. I also need to be able to wakeup on interrupts. (I think I remember seeing something in the user guide about restrictions on these pins when Softdevice is enabled but cant find it). Also I am planning on not including any external resistors and just using the internal pull ups. Is this advisable?

Are there any other suggestions you have given the nature of my project? I'm a student and this is the first PCB I've designed.

Thanks for the help!

Related