本来准备做lora无线温度传感器,现在到温度传感器部分,无线就是串口发送数据,这个比较简单,低功耗就暂时不调了,总结一下收获,熟悉了调试软件和例程。
项目流程框图
功能简介:
采集温度传感器,通过串口发送数据
1.
【EFM8BB52单片机】温度采集(开箱升级软件和跑例程2.
【EFM8BB52单片机】温度采集(熟悉软件基本操作,调试UART0打印串口3.
【EFM8BB52单片机】温度采集项目(焊接温度探头,采集温度数据)简单试用了一下,以后有时间再慢慢玩。
本来准备做lora无线温度传感器,现在到温度传感器部分,无线就是串口发送数据,这个比较简单,低功耗就暂时不调了,总结一下收获,熟悉了调试软件和例程。
项目流程框图
功能简介:
采集温度传感器,通过串口发送数据
1.
【EFM8BB52单片机】温度采集(开箱升级软件和跑例程2.
【EFM8BB52单片机】温度采集(熟悉软件基本操作,调试UART0打印串口3.
【EFM8BB52单片机】温度采集项目(焊接温度探头,采集温度数据)简单试用了一下,以后有时间再慢慢玩。
//-----------------------------------------------------------------------------
// 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
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |