LPC2388 sample code library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC2388 sample code library

1,528 次查看
mohammadfaizan
Contributor III

Hi,

I am trying to implement a UART RS485 communication using a Custom board LPC2388 both for master and slaves, but before that I want to clear some concept by referring peripheral examples. I found a web base example at keil, but not for a  peripheral examples and other library source code for LPC2388. Can you please help me to get the library source code file for lpc2388 and for UART RS485 master slave communication.

warm regards

Mohammad Faizan

0 项奖励
回复
2 回复数

1,265 次查看
mohammadfaizan
Contributor III

Thanks jamesbone,

I get started with my custom board, so, first I tried to blink the LEDs which is connected on port4 P4.6 and P4.7 of my custom board.  Code is running well on a simulator but when I burn the hex code, not able to toggle the LEDs.

#include <LPC23xx.h>
int delay;

int main (void)

{

         PINSEL8 = 0x00000000;

         FIO4DIR = 0x0000F000;
       while (1)

      {

            FIO4SET = 0x0000F000; // Set Logic 1 to all the PORT4 pins i.e. turn on LEDs

            for (delay = 0; delay<500000; delay++);

            FIO4CLR = 0x0000F000; // Set Logic 0 to all the PORT4 pins i.e. turn off LEDs

            for (delay = 0; delay<500000; delay++);

      }
   return 0;

   }

please help me,

warm regards

Mohammad Faizan

0 项奖励
回复

1,265 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Mohammad,

You can download the complete Software Bundle drivers for Keil or IAR from the following link:

Arm7™ with 512 kB flash, 98 kB SRAM, Ethernet, USB 2.0 Device/Host/OTG, CAN, and 10-bit ADC|NXP 

Have a nice day!

TIC Support Team