• PUDN用户
    了解作者
  • C++
    开发工具
  • 2.9MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 14
    下载次数
  • 2013-12-13 12:58
    上传日期
新唐M058S发布的最新例程,根据个人改变了一些内部代码实现流水灯功能.
BSP_M058S.zip
内容介绍
M058S BSP Introduction: M058S is belonging to M051 series. It supports more GPIO pins then other M051 series MCU. In order to support the features of M058S, M051 series BSP is modified to M058S BSP to well support M058S. M058S BSP relative definitions, header file and file name are consistent with M051 series BSP. Therefore, user can apply M058S BSP when using M058S MCU or apply M051 series BSP when using other M051 series MCU. BSP Directory: Document -- Driver reference guide and change log file. LibM051Series -- Driver sources including CMSIS and standard drivers. Project -- A template for M051 series. SampleCode -- All driver sample code. Driver sample code: \SampleCode\Driver ACMP This sample code shows how ACMP works with internal band-gap voltage. ADC_BurstMode This sample code demonstrates A/D conversion with burst mode. In burst mode, ADC will sample and convert a specified channel continuously and store the conversion result in FIFO buffers. ADC_ContinuousScanMode ADC operates in continuous scan mode and finishes two cycles of conversion for the specified channels. ADC_PwmTrigger This sample code shows how to trigger ADC by PWM. ADC_ResultMonitor This sample code demonstrates how to use the digital compare function to monitor the conversion result of channel 2. ADC_SingleCycleScanMode In this example, ADC operates in single cycle scan mode and finishes one cycle of conversion for the specified channels. ADC_SingleMode In this example, ADC finishes the conversion of the specified channel with single mode. DIV This sample code shows how to user divider API and how to use hardware divider by control registers. FMC To show how to access embedded flash and switching between APROM and LDROM. FMC_IAP To show how to call LDROM functions from APROM. FMC_MultiBoot To show how to implement multi-boot system to boot from different applications in APROM. GPIO_EINTAndDebounce Check EINT0/1 interrupt functions with enabling interrupt de-bounce function. GPIO_INT Select two pins to test interrupt rising-edge and falling-edge functions. GPIO_OutputInput Select two pins to test GPIO input mode and output mode. GPIO_PowerDown Select one pin to test GPIO wake-up by GPIO interrupt. I2C_EEPROM To show how to access EEPROM by I2C interface I2C_GCMode_MASTER Needs to work with I2C_GCMode_SLAVE. To show how a Master use I2C address 0x0 to write data to I2C Slave. I2C_GCMode_SLAVE Needs to work with I2C_GCMode_MASTER. To show how to receive Master data in GC (General Call) mode. I2C_MASTER Needs to work with I2C_SLAVE. To show how a Master access Slave. I2C_SLAVE Needs to work with I2C_MASTER. To show how to set I2C in slave mode to receive the data of a Master. I2C_Wakeup_Master Needs to work with I2C_Wakeup_Slave. To show how to wake up MCU from power down. I2C_Wakeup_Slave Needs to work with I2C_Wakeup_Master. To show how to set I2C to wake up MCU from power down mode. PWM This sample code demonstrates PWM generate different frequencies(Tenor C Do ~ Si)waveform to PA.12. PWM_Capture This sample code demonstrates PWMA Channel 2(PA.14) capture PWMA Channel 1(PA.13) Waveform. SPI_LoopBackTest This sample code shows how to transfer data between a SPI master and a SPI slave. SPI_MasterFifoMode This sample code shows how to communicate with an off-chip SPI slave device with FIFO mode. SPI_SlaveFifoMode This sample code shows how to communicate with an off-chip SPI master device with FIFO mode. SYS This sample code shows how to change system clock to different PLL frequency and output system clock from CLKO(PB.8) pin. The CLKO clock frequency is system clock/4. TIMER_Capture This sample code is showing how to use capture function on timer-1 capture input pin. TIMER_Counter This sample code is showing how to use counter function on timer-1 counter input pin. TIMER_PeriodicINT Enable all timer with difference clock source and set to periodic mode then check the interrupt period time is reasonable or not. TIMER_PowerDown Use timer-0 toggle-out interrupt event to wake-up system. UART Contain all of the following function sample code: UART, IrDA, LIN and RS485. UART_Autoflow_Master Needs to work with UART_Autoflow_Slave. The sample code shows how to transmit and receive data using auto flow control. UART_Autoflow_Slave Needs to work with UART_Autoflow_Master. The sample code shows how to transmit and receive data using auto flow control. UART_IrDA_Master Needs to work with UART_IrDA_Slave. The sample code shows how to transmit and receive data in UART IrDA mode. UART_IrDA_Slave Needs to work with UART_IrDA_Master. The sample code shows how to transmit and receive data in UART IrDA mode. UART_LIN The sample code shows how to transmit LIN header and response. UART_RS485_Master Needs to work with UART_RS485_Slave. The sample code shows how to transmit and receive data in UART RS485 mode. UART_RS485_Slave Needs to work with UART_RS485_Master. The sample code shows how to transmit and receive data in UART RS485 mode. UART_UART The sample code shows how UART transmit and receive data from PC terminal through RS232 interface. WDT_PowerDown Use WDT time-out interrupt event to wake-up system. WDT_TimeoutINT Select one WDT time-out interval period time and check the time-out interrupt signal. WDT_TimeoutReset Check system can be reset while WDT time-out interrupt occurred. WWDT_CompareINT Select one WWDT window compare value then check the time-out period time and WWDT reset system can be work normally or not.
评论
    相关推荐
    • BSP_M058S_Series_CMSIS_EN_V1.00.002.zip
      Nuvoton(新唐)cortexM0 MCU M058S系列的开发固件,里面有详细的外设配置例程、文档和固件库,方便应用开发。
    • Proteus7.12.rar
      Proteus7.12完美破解版.rar电路仿真软件很好用可以仿真单片数字模拟电路
    • VHDL 的实例程序,共44个.rar
      经典VHDL 的实例程序,共44个!要下载的尽快
    • USBtoRS232Driver.rar
      USB转串口驱动程序,可以用在笔记本电脑上,方便的通过串口给单片机下载程序!
    • 模糊控制程序.rar
      模糊PID控制程序的源码,是作业,有讲解,
    • 串口编程源代码.rar
      这是本人最近几年所编写的串行通讯的代码集,可以供大家参考学习。
    • DELTA_PLC.rar
      台达PLC Modbus协议通信dll com控件
    • hongwaigooog.rar
      单片机红外遥控最全的资料,包含很多当前电视遥控专用芯片的解码方式,C语言和汇编语言编写的解码范例程序,看完了你就会了!
    • MF500绝密.rar
      非接触式IC卡开发板源程序,包括原理图/PCB图;源程序在KEIL环境下编译,打开压缩包后直接点击PRJ文件,即可编译使用。 这是个保密文件,做Mifare one卡开发人基本上都用过到这个源代码。
    • 20078251299410.rar
      C51实用程序(45个) I/O、定时器、中断、看门狗、计数器、软件AD、VB串口、93c06驱动、24c02系列驱动、7219、20045、软件陷阱、串口中断、码值转换、AVR通讯、IIC、DS1302、DS1820、SPI、1602、12232、12864、T6963、1330、PC键、键盘输入法、智能化、飞机游戏、贪吃蛇、多级菜单实例等