This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help Map pins from LPC1768 to nRF51DK

Hi, I have purchased a Nordic nRF51DK which works perfectly. Suddenly I purchased an EaEpaper and start to follow this tutorial developer.mbed.org/.../Homepage to map it to my board. The problem is that I can't map all the pins from LPC1768 to nRF51DK. I want to write the firmware for this awesome EaPaper screen also for the Nordic development kit but I am new to electronics and I can't fully understand all ports mappings. I am almost done but I miss few ports.

This is what I have accomplished so far

---------------------------------------------------------
| Screen   | LPC1768   | nRF51DK       | TYPE    | 
---------------------------------------------------------
| 1 GND         | GND         | GND         | GND     |
---------------------------------------------------------
| 2 3V3          | VOUT        | VDD         | 3.3
---------------------------------------------------------
| 3 SCK          | P7            | P29          | SCK
---------------------------------------------------------
| 4 MOSI        | P5            | P25          | MOSI
---------------------------------------------------------
| 5 MISO        | P6            | P28          | MISO
---------------------------------------------------------
| 6 SSEL         | P8           | ---            | GPIO
---------------------------------------------------------
| 7 BUSY         | P13         | ---            | GPIO
---------------------------------------------------------
| 8 BORDER     | P10         | ---            | GPIO
---------------------------------------------------------
| 9 SCL           | P27          | P7            | SCL
---------------------------------------------------------
|10 SDA          | P28         | P30           | SDA
---------------------------------------------------------
|11 PWM         | P26          | ---            | PWM
---------------------------------------------------------
|12 RESET       | P12          | ---            | GPIO
---------------------------------------------------------
|13 POWER      | P9            | ---            | GPIO
---------------------------------------------------------
|14 DISC         | P11          | ---             | GPIO
---------------------------------------------------------

I have two questions to complete my mapping and re-write the firmware for the EaEpaper for nRF51DK:

  • What is a GPIO port? What is a PWM port?
  • Does the nRF51DK expose 3.3 volt on VDD or are they all 5 volts?

I have also included the schema of nRF51DK

image description

and LPC1768

image description

Parents
  • Please have a look at Section 14: General-Purpose Input/Output (GPIO) in the nRF51 Series Reference Manual.

    The GPIO Port peripheral implements up to 32 pins, PIN0 through PIN31. Each of these pins can be individually configured in the PIN_CNF[n] registers (n=0..31).

    This means that you can choose whichever pin you want for the GPIO's. The same goes for the PWM, this can be configured to use any pin.

Reply
  • Please have a look at Section 14: General-Purpose Input/Output (GPIO) in the nRF51 Series Reference Manual.

    The GPIO Port peripheral implements up to 32 pins, PIN0 through PIN31. Each of these pins can be individually configured in the PIN_CNF[n] registers (n=0..31).

    This means that you can choose whichever pin you want for the GPIO's. The same goes for the PWM, this can be configured to use any pin.

Children
No Data
Related