本来准备做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
打赏帖 | |
---|---|
分享一种检测按键状态的方法被打赏20分 | |
周末总结一下,STM32C0系列的开发经验被打赏50分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下定时器配置被打赏20分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下PWM配置被打赏20分 | |
【Cortex-M】Systick Timer使用被打赏10分 | |
分享汽车防盗系统的组成与分类(一)被打赏5分 | |
VOFA+波形显示+JYD-31蓝牙发送和解析不定长数据被打赏10分 | |
【换取手持数字示波器】-STM32F4PWM控制LED灯管亮度被打赏22分 | |
【换取手持数字示波器】STM32F4驱动RPR-0521RS照度、接近一体型传感器被打赏23分 | |
宏定义和const关键字定义被打赏5分 |