[M0+] LPC800-DIP Board开发板上手

[复制链接]
 楼主| gaoyang9992006 发表于 2021-12-15 22:06 | 显示全部楼层 |阅读模式
pc, AC, AD, LPC800, ar, ip
这个板子应该好多年前的了,NXP的。荷兰体系的,开发的库函数跟其他欧美的不同,跟日系的也不同。。。如果没用过需要查阅资料适应一下。
7656561b9edd0735cf.png
板子上的资源如下
lpc800-dip-board-details.png

6628961b9ef3920764.png
1433461b9ef4d8ccfd.png

烧录方式
8517461b9ef6e9a4c2.png
7543561b9ef885eaf2.png
经过测试使用该软件可以将开发板内出厂自带的固件导出来。
下载地址如下:
https://www.flashmagictool.com/d ... 3.45/FlashMagic.exe
基于Keil的开发资源
https://cache.nxp.com.cn/secured ... e0e874c5a716f587bb3
可能不注册账户无法下载,这里提供一下下载链接
LPC834_Example_Code_Bundle_Keil_r1.0.zip (773.17 KB, 下载次数: 16)
这里提供一下我下载的开发资料,经过阅读发现,这两个资料包是两套不同的体系资料,Keil的那个是基于寄存器的。
另外这个是官方的库函数的。比较奇特。感兴趣的大家下载资料慢慢研究吧。我还有点手生。刚做了给简单的LED和串口函数,基于keil那个包里的例子修的。

SDK_2_10_0_LPC834.zip (21 MB, 下载次数: 17)


LPC83X.pdf (1.75 MB, 下载次数: 17)





 楼主| gaoyang9992006 发表于 2021-12-15 22:38 | 显示全部楼层
  1. #include "LPC8xx.h"

  2. //#include <cr_section_macros.h>

  3. #include <stdio.h>

  4. #include "lpc8xx_gpio.h"
  5. #include "lpc8xx_syscon.h"
  6. #include "utilities.h"

  7. extern void setup_debug_uart(void);

  8. static void delay(void)
  9. {
  10.         volatile uint32_t cntr= 0x80000;
  11.         while(cntr>0)
  12. {
  13.         cntr--;
  14.        
  15. }
  16. }

  17. int main(void)
  18.         {

  19.   // Configure the debug uart (see Serial.c)
  20.   setup_debug_uart();
  21.        
  22.   // Reset the GPIO module and enable its clock. See peripherals_lib
  23.   GPIOInit();

  24.   // Config. ports (red LED), (blue LED), (green LED) as outputs,
  25.   // with LEDs off ('1' = off). See utilities_lib
  26.   Config_LEDs(RED | BLUE | GREEN);

  27.         while (1)
  28.         {
  29.                 printf("Hello\r\n");
  30.                 LEDs_On(RED);
  31.                 delay();
  32.                 LEDs_Off(RED);
  33.                 delay();
  34.                
  35.                 LEDs_On(BLUE);
  36.                 delay();
  37.                 LEDs_Off(BLUE);
  38.                 delay();
  39.                
  40.                 LEDs_On(GREEN);
  41.                 delay();
  42.                 LEDs_Off(GREEN);
  43.                 delay();               
  44.                
  45.                
  46.         }

  47. } // end of main
 楼主| gaoyang9992006 发表于 2021-12-15 22:41 | 显示全部楼层
  1. #define RED    (1<<15)
  2. #define BLUE   (1<<17)
  3. #define GREEN  (1<<16)
  4. #define red_led_port   P0_15
  5. #define blue_led_port  P0_17
  6. #define green_led_port P0_16
  7. #define TARGET_TX P0_4             // For the MBED serial port
  8. #define TARGET_RX P0_0             // For the MBED serial port
yljon 发表于 2021-12-27 07:59 | 显示全部楼层
谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:如果你觉得我的分享或者答复还可以,请给我点赞,谢谢。

2048

主题

16367

帖子

221

粉丝
快速回复 在线客服 返回列表 返回顶部