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!

Parents
  • Nice answer by mnhs here, but regarding the pull on SWDIO and SWDCLK. There are internal pulls on both, so you don't need the external (if you forget or don't want to add it).

    Q2: TWI can go to any pins, as stated by mnhs. I can't remember any restrictions with regard to wake up pins and softdevice, but the pins you are thinking of might be related to some code examples using pins for UART debugging? This would be application implementation and could easily be moved to other pins if wanted.

    I haven't gone into details on the guide from TI that mnhs is linking to, but it looks like a good place to get more information and to get some good points as to what to think about when designing.

  • Thanks for the info about pulls, good to know.

    I finally found the .pdf I wanted to post before but couldn't find it:

    www.ti.com/.../szza009.pdf

    This is an EMI guide. The topic is far more complicated but for the first PCB this should be enough Just a short note for MIchael Dietz - when making 2 layer PCB design, ground plane splitting cannot be fully avoided. But do the best to make it as uniform as possible, one additional hour when routing the PCB really pays off here.

Reply Children
No Data
Related