宏晶STC15系列单片机EEPROM驱动程序
/************************** ISP/IAP *****************************
IAP系列 可以在应用程序修改应用程序。
STC15F/L2KxxS2 扇区分配,512字节/扇区,从0x0000开始。
型号 大小 扇区数 开始地址 结束地址 MOVC读偏移地址
STC15F/L2K08S2 53K 106扇区 0x0000 ~ 0xD3FF 0x2000
STC15F/L2K16S2 45K 90扇区 0x0000 ~ 0xB3FF 0x4000
STC15F/L2K24S2 37K 74扇区 0x0000 ~ 0x93FF 0x6000
STC15F/L2K32S2 29K 58扇区 0x0000 ~ 0x73FF 0x8000
STC15F/L2K40S2 21K 42扇区 0x0000 ~ 0x53FF 0xA000
STC15F/L2K48S2 13K 26扇区 0x0000 ~ 0x33FF 0xC000
STC15F/L2K56S2 5K 10扇区 0x0000 ~ 0x13FF 0xE000
STC15F/L2K60S2 1K 2扇区 0x0000 ~ 0x03FF 0xF000
STC15F/L2K61S2 无EPROM, 整个122扇区的FLASH都可以擦写 地址 0x0000~0xF3ff.
*/
宏晶STC15系列单片机延时函数实现例程
/*---------------------------------------------------------------------*/
/* --- STC MCU International Limited ----------------------------------*/
/* --- STC 1T Series MCU Demo Programme -------------------------------*/
/* --- Mobile: (86)13922805190 ----------------------------------------*/
/* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/
/* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/
/* --- Web: www.GXWMCU.com --------------------------------------------*/
/* 如果要在程序中使用此代码,请在程序中注明使用了宏晶科技的资料及程序 */
/*---------------------------------------------------------------------*/
/************* 功能说明 **************
本文件为STC15xxx系列的延时程序,用户几乎可以不修改这个程序.
******************************************/
#include "delay.h"
//========================================================================
// 函数: void delay_ms(unsigned char ms)
// 描述: 延时函数。
// 参数: ms,要延时的ms数, 这里只支持1~255ms. 自动适应主时钟.
// 返回: none.
// 版本: VER1.0
// 日期: 2013-4-1
// 备注:
//========================================================================
void delay_ms(unsigned char ms)
{
unsigned int i;
do{
i = MAIN_Fosc / 13000;
while(--i) ; //14T per loop
}while(--ms);
}
宏晶STC15系列单片机串口驱动程序
宏晶STC15系列单片机串口驱动程序
#define COM_TX1_Lenth 128
#define COM_RX1_Lenth 128
#define COM_TX2_Lenth 128
#define COM_RX2_Lenth 128
#define USART1 1
#define USART2 2
#define UART_ShiftRight 0 //同步移位输出
#define UART_8bit_BRTx (1<<6) //8位数据,可变波特率
#define UART_9bit (2<<6) //9位数据,固定波特率
#define UART_9bit_BRTx (3<<6) //9位数据,可变波特率
#define UART1_SW_P30_P31 0
#define UART1_SW_P36_P37 (1<<6)
#define UART1_SW_P16_P17 (2<<6) //必须使用内部时钟
#define UART2_SW_P10_P11 0
#define UART2_SW_P46_P47 1
#define TimeOutSet1 5
#define TimeOutSet2 5
#define BRT_Timer1 1
#define BRT_Timer2 2
系统配置文件
CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
stm32f10xx.h
Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral register's definitions, bits definitions and memory mapping for STM32F4xx devices
S3C2440 寄存器映射头文件
S3C2440 基于ARM9 220T内核的处理器,2440addr.h文件是他的寄存器映射头文件
S3C2410 裸机初始化SDRAM
S3C2410 初始化SDRAM,适用于裸机开发S3C2410的嵌入式工作人员
Quartus ii 15.1 破解法
quartus ii 15.1 破解 ------------------quartus ii 15.1 --------------------