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

Need Help on GPIO funtions of LPC2378

Hi,

I am new to ARM processor and i am working on Kit MCB2300 (LPC 2378 Processor). I am having a problem of sending the data on entire port like in other 8 bit microcontrollers(AT89c51). So what are the procedure to intialize the entire port of LPC 2378 in C or Assembly Language.

Thanks in advance..!!

Harpreet

Parents
  • 1) There are no specific requirements for accessing all 32 pins of a GPIO port or just accessing single bits. But if you have gone through the whole manual, you should be able to quote any sections that does say that there is a difference.

    2) Have you retrieved the User Manual for the processor? Have you tried to search for SCS or GPIOM in it? Really no references found?

    In the end - if you are going to use fast GPIO for first two ports (ports not pins) you must enable that. I did mention what register and what bit. The other ports are always in fast GPIO mode.

    You have then to figure out if you want the signals to be inputs or outputs.

    Then you can write to your outputs or read from your inputs. You can either write to all output pins. Or explicitly set pins. Or explicitly clear pins. Or you can use the mask feature to specify which pins that should be affected by changes.

    No need to read all of the user manual. The GPIO chapter contains of lots of nice information.

Reply
  • 1) There are no specific requirements for accessing all 32 pins of a GPIO port or just accessing single bits. But if you have gone through the whole manual, you should be able to quote any sections that does say that there is a difference.

    2) Have you retrieved the User Manual for the processor? Have you tried to search for SCS or GPIOM in it? Really no references found?

    In the end - if you are going to use fast GPIO for first two ports (ports not pins) you must enable that. I did mention what register and what bit. The other ports are always in fast GPIO mode.

    You have then to figure out if you want the signals to be inputs or outputs.

    Then you can write to your outputs or read from your inputs. You can either write to all output pins. Or explicitly set pins. Or explicitly clear pins. Or you can use the mask feature to specify which pins that should be affected by changes.

    No need to read all of the user manual. The GPIO chapter contains of lots of nice information.

Children