【MAX78000基础案例演示】

  • 1. MAX78000配套软硬件
    • 1.1 硬件
    • 1.2 软件
    • 1.3 demo例程
  • 2. ADC
    • 2.1 描述
    • 2.2 设置
    • 2.3 输出
  • 3. GPIO
    • 3.1 描述
    • 3.2 设置
    • 3.3 输出
  • 4. UART
    • 4.1 描述
    • 4.2 设置
    • 4.3 输出
  • 6.小结

1. MAX78000配套软硬件

有关使用 SDK 的详细信息,请参阅MAX78000 评估套件入门。

1.1 硬件

本文采用MAX7800羽毛板

板载资源

1.2 软件

windows下eclipse开发环境,搭建见教程:
【window下配置Maxim SDK环境】

1.3 demo例程

例程官网地址:https://github.com/MaximIntegratedAI/MAX78000_SDK/tree/master/Examples/MAX78000


下面是开发状态

Example GCC Status Eclipse Support Notes
ADC Complete Yes The overflow, low limit, and high limit are not reported properly in the example.
AES Complete Yes
CameraIF Complete Yes
CNN/cats-dogs_demo Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/cats-vs-dogs Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/cifar-10 Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/cifar-100 Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/faceid Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/faceid_demo Complete No
CNN/faceid_evkit Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/kws20_demo Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/kws20_v3 Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/mnist Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CNN/mnist-riscv Complete Partial Debug support for code running on the RISC-V is not yet supported in Eclipse.
CNN/mnist-streaming Complete Partial Debug support for code running on the RISC-V is not yet supported in Eclipse.
CNN/snake_game_demo Complete Yes The project can be imported into Eclipse, but cannot be created using the New project wizard.
CRC Complete Yes
DMA Complete Yes
ECC Complete Yes
Flash Complete Yes
GPIO Complete Yes
Hello_World Complete Yes
I2C Complete Yes
I2S Complete Yes
ICC Complete Yes
LP In Progress In Progress
Pulse_Train Complete Yes
RTC Complete Yes
SPI Complete Yes
TFT_Demo Complete Yes
TMR Complete Yes
TRNG Complete Yes
UART Complete Yes
Watchdog Complete Yes
WUT Complete Yes

本文会挑选ADC、GPIO、UART三个幸运的例程进行学习演示

2. ADC

2.1 描述

通过持续监控 ADC 输入通道(EvKit 上的 AIN0 和 featherboard 上的 AIN3)演示 ADC 的使用。将 AIN
输入上的电压从 0V 变为 0.9V,以观察来自 ADC 的不同读数。

任意设置上下限,分别演示过压和欠压情况的检测。如果 ADC 读数超过 0x300,该示例将报告已达到上限。如果 ADC 读数低于
0x25,该示例将报告已达到下限。

任何超过 ADC 满量程值的读数都会在该值后附加一个“*”。

2.2 设置

  • 新建ADC例程,选择相关

  • 新建成功如下

  • 编译

    -下载验证

  • 构建固件:

在构建固件之前,您必须在“project.mk”中为BOARD选择正确的值
,“EvKit_V1”或“FTHR_RevA”,具体取决于您用于运行示例的评估套件。

这样做之后,使用终端窗口导航到示例所在的目录。输入以下命令以构建运行该示例所需的所有文件。

  • 适配板载连接
  1. 如果使用标准评估套件 (EvKit_V1):

在 PC 和 CN1 (USB/PWR) 连接器之间连接 USB 电缆。 连接 JH1 (UART 0 EN) 接头连接器的引脚 1 和 2
(P0_1)。 在 PC 上打开一个终端应用程序并连接到评估板的控制台 UART,地址为 115200, 8-N-1。 将 0 到 0.9V
之间的输入电压施加到 JH3(ADC IN)接头连接器的引脚 A0。

  1. 如果使用 Featherboard (FTHR_RevA):

在 PC 和 CN1 (USB/PWR) 连接器之间连接 USB 电缆。 在 PC 上打开终端应用程序并连接到评估板的控制台
UART,地址为 115200, 8-N-1。 将 0 到 0.9V 之间的输入电压施加到 J8 接头上的 AIN0 引脚

2.3 输出

设备的控制台 UART 将输出以下消息:

******************** ADC Example ********************ADC readings are taken on ADC channel 0 every 250ms
and are subsequently printed to the terminal.0: 0x01af0: 0x01af0: 0x01af0: 0x01af...

3. GPIO

3.1 描述

本示例演示了基本的 GPIO 输入、输出和中断。