LPC177x_8xCMSIS-CompliantStandardPeripheralFirmwareDriverLibraryRev1.17-12June2012ThisisthelistofexamplesthatsupportedinLPC177x_8xCMSISpackagePeripheralExampleDescriptionADCAdc_BurstShowshowtouseADCconversioninburstmodewithsingleormultipleinputAdc_DmaShowshowtouseADCconversionandtransferconverteddatabyusingDMAAdc_InterruptShowshowtouseADCconversionininterruptmode.Adc_PollingShowshowtouseADCconversioninpollingmode.BODBOD_DemoShowshowtouseBOD.CANCan_AflutShowshowtouseCANdriverfunctionsforsetupandchangeAFLUTtabledynamicallyCan_BypassShowshowtotestCANoperationbyusingbypassmodeCan_SelftestShowshowtotestCANself-testmodeCortex-M3Bit_BandingShowshowtouseBit-bandingfeatureofCortex-M3processor.MPUShowshowtouseMPUtoprotectmemoryregion.Privilege_ModeShowshowtochangeprivilegetounprivilegedmodeandviceversa.CRCCrc_DemoShowshowtouseCRCengineonLPC177x_8x.TheresultsarecalculatedbysomedifferentpolynomialsCrc_DmaShowshowtouseCRCenginewithDMAsupportDACDac_DmaShowshowtouseDMAtotransferdatatoDACperipheralDma_SineWaveShowshowtouseDACtogenerateasinewavesignalorpositive-halfsinewavesignalDMADma_Flash2RamShowhowtotransferdatafromFlashtoRa妹妹emorybyusingDMAengineEEPROMEeprom_DemohowtoworkwithEEPRO妹妹emoryonLPC177x_8xEMACEmac_EasyWebShowshowtoimplementansimplewebapplicationEmac_RawShowshowtotestEMACdriverwithrawpacketframeformatthatisnotrelatedwithanyupper-layer(i.e.TCP/IP...).Emac_uIPShowshowtohandleasinglenetworkinterfaceandcontainstheIP,ICMP,UDPandTCPprotocols.EMCEmc_NandFlashDemoShowshowtoworkwithNandFlash(ifavailable)byusingEMCcomponentofLPC177x_8xEmc_NorFlashDemoShowshowtoworkwithNorFlash(ifavailable)byusingEMCcomponentofLPC177x_8xEmc_SdramDemoShowshowtoworkwithSDRAM(ifavailable)byusingEMCcomponentofLPC177x_8xGPIOGpio_InterruptShowshowtouseinterruptfunctionofGPIOpins.Gpio_LedBlinkySetON/OFFfortheGPIOpinstodriveLEDsIAPIAP_DemoShowshowtoaccess/updateon-chipflashmemoryfromapplicationcodeI2CI2c_Pca9532DrvShowshowtouseI2CtodrivewithPCA9532andindicateviaLEDsthatconnectedtoPCAchipI2C_MasterShowshowtouseI2Cblockasamastertosend/receivedatato/fromaslave.I2C_SlaveShowshowtouseI2Cblockasaslavetosend/receivedatato/fromamaster.I2C_EEPROMShowshowtodriveEEPROMthroughI2C.I2SI2s_4WireShowshowtoconfigureI2Speripheraltorunin4wiremodeI2s_AudioShowshowtouseI2StotransferaudiodatathroughI2Spinstoplayashortmusicsoundandoutputtoheadphoneline.I2s_DmaShowshowtouseI2SwithDMAengineI2s_InterruptShowshowtouseI2StotransferdataininterruptmodeI2s_MclkShowshowtouseI2SmasterclockasI2SclocksourceLCDLcd_DemoShowshowtointeractwithGFT035A320240YLCDandQVGATFTLCD(ifit’savailable)MCIMci_CidCardShowshowtouseMultimediaCardInterface(MCI)onLPC177x_8xIC.Basicallyit’storeadCIDofthecardthatinputtothecardslot.MCI_ReadWriteShowshowtouseMCIonLPC177x_8xtoread/writedataonaSD/妹妹Ccard.MCI_FSShowshowtointegrateFatFSandEFSLopensourcetouseFATFileSystemonLPC177x_8x.MCPW妹妹CPWMSimpleShowshowtotestMotorControlPW妹妹oduleinLPC17xxNVICNvic_PrioritiesShowshowtoconfigureNVICprioritygroupingfortestingtheinterruptsintail-chainingandLate-arrivingmodeNvic_VectorTableRelocationShowshowtorelocationvectortableinanothersiteinRAMPWMPwm_DualEdgeShowshowtogeneratePWMsignalon3Channelsinbothedgemodeandsinglemode.Pwm_MatchInterruptShowshowtousePW妹妹atchfunctionininterruptmodePwm_SingleEdgeShowshowtousePWMsignalon6ChannelsinsingleedgemodePWRPwr_DeepPowerDownShowshowtoentersysteminDeepPowerDownmodeandwake-upbyusingRTC(Real-timeclock)interruptPwr_DeepSleepShowshowtoentersysteminDeepSleepmodeandwakeupitbyusingWDTInterruptPwr_PowerDownShowshowtoentersysteminPowerDownmodeandwake-upitbyusingNMI(Non-MaskableInterrupt)Pwr_SleepShowshowtoentersysteminsleepmodeandwake-upbyusingexternalinterruptQEIQei_VeloShowshowtouseQuadratureEncoderInterfacemoduletocalculatevelocityanddetectdirectionchangingRTCRtc_AlarmShowstheconfigurationstogenerateinterruptinSecondCounterIncrementInterrupt(1s)andgenerateAlarminterruptat10sRtc_CalibrationShowshowtodoreal-timeclockcalibration.Rtc_EvShowshowtodoeventmonitor/recorder.SSPSsp_DmaShowshowtoconfigureSSPperipheralwithDMAsupport.SSP_MasterShowshowtouseSSPblockasamastertosend/receivedatato/fromaslave.SSP_SlaveShowshowtouseSSPblockasaslavetosend/receivedatato/fromamaster.SSP_MicrowireShowshowtouseSSPperipheralwithMicroWireframeformat.SSP_TIShowshowtouseSSPperipheralwithTIframeformat.SYSTICKSystick_10msBaseShowshowtoconfigureSystemTicktimertogenerateinterrupteach10msSystck_StclkShowshowtoconfigureSystemTicktimeruseexternalclocksourceSTCLKTIMERTimer_CaptureShowshowtouseCaptureTimerfunction.Timer_FreqMeasureShowshowtouseTimertomeasurethefrequencyofthesignalinputTimer_MatchInterruptShowshowtoconfiguretheTimertogenerateMatchinterrupt.UARTUart_AutobaudThisisasimpleUARTexampleusingautobaudratemodeUart_DmaShowshowtouseUARTinDMAmodeUart_FullModemThisisasimpleUARTexampleusingUART1willFullmode妹妹odeUart_HWFlowControlShowshowtouseUARTinhardwareflowcontrolmode.Uart_InterruptShowshowtouseUARTininterruptmodeUart_IrDAReceiveShowshowtoconfigureUARTforreceivingdataviaIrDAprotocolUart_IrDATransmitShowshowtoconfigureUARTfortransmittingdataviaIrDAprotocolUart_PollingShowshowtouseUARTinpollingmodeUart_Rs485MasterShowshowtoconfigureUARTforRS485functionalityinMastermode.Uart_Rs485SlaveShowshowtoconfigureUARTforRS485functionalityinSlavemode.USBDEVUSBMassStorageShowshowtoimplementasimpleUSBMassStorageapplicationonLPC177x_8x.USB_AudioShowshowtoimplementUSBspeakeronLPCD177x_8x.USB_HIDShowshowtoimplementHIDdeviceonLPCD177x_8x.Usb_VirtualComShowshowtoconfigureUSBDeviceofasavirtualCOMport.USBHostLiteUsbHost_MassStorageShowshowtoconfigureUSBHostControlleronLPC177x_8x.WDTWdt_InterruptShowshowtouseWDTtogenerateinterruptafteraspecifictime.Wdt_ResetShowshowtouseWDTtogeneratechipresetafteraspecifictime.Wdt_WindowModeTesttheoperationofWindowModeofWindowWatchdogTimeronLPC177x_8x
2023/3/12 4:45:20 58.32MB LPC177x LPC178x CMSIS driver
1
主控芯片是STM32F103C8T6,WiFi模块用的是ESP-12F,用到了时钟芯片、按键、OLED显示屏。
bsp_usart1.c是用来串口调试使用,可以打印在电脑串口调试助手上显示;
bsp_SysTick.c是用来生成精准的延时函数,用于I2C通讯等对时序敏感的接口;
bsp_esp8266.c里面是对WiFi模块的一些初始化配置和WiFi的功能函数;
Common.c里面是一些辅助函数;
test.c里面是实现WiFi配网使用和API接口调用及解析;
oled.c里面显示屏的初始化配置和显示功能函数;
bsp_pcf8563.c里面是时钟芯片的初始化配置和读写时间功能函数;
bsp_key.c里面是按键的初始化配置、按键扫描功能函数和静态内容显示函数;
bsp_TiMbase.c里面是定时器函数,这里为什么用到定时器,因为一般天气和时间数据刷新的频率不会太快,这里设定的是5分钟更新一次,那么这里就需要用到定时器。
2023/3/11 22:20:18 217KB WiFi 网络授时 天气和时间 时钟设计
1
STM32的硬件I2C非常难以使用,调试成功的不多,这里的代码经过我们很长时间的开发才得到加速度传感器的使用倒是次要的了
2023/3/7 17:27:42 1.85MB STM32 硬件I2C 加速度传感器
1
TIPCM5242miniDSP配置源码简易的I2C通信协议适用于STM8STM32,源码内含I2C协议代码及PCM5242的源码,想要学习的可以直接下载做简单修正便可以启动
2023/3/4 5:03:18 22KB pcm5242 I2C源码
1
单片机开发,不能错过的精品文档,里面包含AM库文件芯片材料原理图,及所有的源代码。
2023/2/23 19:30:33 331KB LCM1602
1
KS104功能摘要:●IP67防水,收发分体式设计,针对KS106/KS106A/KS136/KS136A的双探头版本设计;
●主板与探头封装在一同,输出信号为数字量距离信号,与KS103类似;
●可软件配置的波束角50°或60°;
●探测范围:1cm-3m(常用1cm-1.5米。
1cm-5m范围可以订做但不常用);
精度:2cm;
●默认485接口(说明书第11页),可订做兼容KS103协议的I2C接口,可订做TTL接口
2023/2/23 16:14:31 5.16MB 导向机电 KS104 KS103升级
1
I2C通信模块时钟模块寄存器配置模块,代码有本人的详细正文,看一篇就懂,可以灵活修改
2023/2/22 19:44:52 387KB WM8731 I2C 配置
1
这是我修改优化后的FT2232D芯片的i2c通讯library,处理了些bug。
2023/2/20 14:47:55 27.87MB FT2232D FTI2C I2C通讯
1
分享些自己的实际项目资料。
之前曾用过2系列,最近也抽空看了看LaunchPad的资料,其实ValueLine可以当作2系列来看,再其实反正都是430,所以有些部分的移植还是比较快的。
这些天使用LaunchPad做的试验,是通过MSP430G2553的硬件I2C访问挂在同一I2C接口上的EEPROM和MFRC522,EEPROM使用模拟I2C接口、MFRC522使用模拟SPI接口的资料网上不难得到,针对430的硬件I2C接口的可能稍微少些,至少我看TI官网上的例程好像就没有跟EEPROM连接的,MFRC522就更别说了。
这回测试的难度可能在于两个器件并联挂在一个I2C接口上时的通讯,以及430的USCI模块的使用。
I2C协议就不用在这里赘述了,EEPROM选用Microchip的24LC02B,MFRC522接成I2C接口方式,MSP430G2553的I2C口配置在USCI_B0(UCB0SCL和UCB0SDA)上,接线示意图如下,图中只画出I2C接口相关接线,其他接线略去,MFRC522和24LC02B的用法详见芯片数据手册
2023/2/14 6:36:13 78KB MSP430 I2C Launch PAD
1
基于MPLABIDEV8.30,使用PIC16F913通过I2C控制PCF8574参考例程!留意硬件上输出灯亮度比较弱(仅靠8574引脚输出电流就几十uA吧),实际需要加上拉。
2023/2/11 19:51:27 373KB I2C PCF8574 PIC16F913 单片机
1
共 274 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡