这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 活动中心 » 板卡试用 » 【EFM8BB52单片机】温度采集项目(完结)

共4条 1/1 1 跳转至

【EFM8BB52单片机】温度采集项目(完结)

专家
2022-01-16 19:58:31     打赏

本来准备做lora无线温度传感器,现在到温度传感器部分,无线就是串口发送数据,这个比较简单,低功耗就暂时不调了,总结一下收获,熟悉了调试软件和例程。

            项目流程框图

图片1.png

功能简介:

采集温度传感器,通过串口发送数据


1.

【EFM8BB52单片机】温度采集(开箱升级软件和跑例程

2.

【EFM8BB52单片机】温度采集(熟悉软件基本操作,调试UART0打印串口

3.

【EFM8BB52单片机】温度采集项目(焊接温度探头,采集温度数据)

简单试用了一下,以后有时间再慢慢玩。



专家
2022-01-16 19:59:33     打赏
2楼

不错


高工
2022-01-16 21:25:12     打赏
3楼

//-----------------------------------------------------------------------------

// EFM8BB52_Blinky.c

//-----------------------------------------------------------------------------

// Copyright 2021 Silicon Laboratories, Inc.

// http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt

//

// Program Description:

//

// This program flashes the red/green/blue LED on the EFM8BB52 PK board about

// five times a second using the interrupt handler for Timer2.

//

// Resources:

//   SYSCLK - 24.5 MHz HFOSC0 / 8

//   Timer2 - 5 Hz interrupt

//   P1.4   - LED0

//

//-----------------------------------------------------------------------------

// How To Test: EFM8BB52 Explorer Kit

//-----------------------------------------------------------------------------

// 1) Connect the EFM8BB52 Explorer Kit to a PC using a mini USB cable.

// 2) Compile and download code to the EFM8BB52 Explorer Kit board.

//    In Simplicity Studio IDE, select Run -> Debug from the menu bar,

//    click the Debug button in the quick menu, or press F11.

// 3) Run the code.

//    In Simplicity Studio IDE, select Run -> Resume from the menu bar,

//    click the Resume button in the quick menu, or press F8.

// 4) The LED0 should blink at approximately 5 Hz.

//

// Target:         EFM8BB52

// Tool chain:     Generic

//

// Release 0.1 (RN)

//    - Initial Revision

//


//-----------------------------------------------------------------------------

// Includes

//-----------------------------------------------------------------------------

#include <SI_EFM8BB52_Register_Enums.h>

#include <InitDevice.h>


//-----------------------------------------------------------------------------

// Pin Definitions

//-----------------------------------------------------------------------------


//-----------------------------------------------------------------------------

// SiLabs_Startup() Routine

// ----------------------------------------------------------------------------

// This function is called immediately after reset, before the initialization

// code is run in SILABS_STARTUP.A51 (which runs before main() ). This is a

// useful place to disable the watchdog timer, which is enable by default

// and may trigger before main() in some instances.

//-----------------------------------------------------------------------------

void SiLabs_Startup (void)

{

  // Disable the


工程师
2022-01-16 23:18:39     打赏
4楼

设计的蛮好的


共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]