;********************SPIEEWR******************** ;本程序实现向SPI类型EEPROM中写入多字节数据。 ;入口参数:数据在EEPROM中的地址在SADRH:SADR中,目标RAM的首地址为DADR,字节数在…
PORTB 源代码
探索portB技术的无限可能,这里是专为电子工程师打造的知识宝库。portB作为微控制器中的重要接口之一,广泛应用于数据传输、外设控制等多个领域,是实现硬件与软件高效交互的关键。无论您是在设计智能家居系统,还是在开发工业自动化项目,掌握portB的应用技巧都将极大提升您的工程能力…
ORG 00H PORTA EQU 7CFFH ;A口 PORTB EQU 7DFFH ;B口 PORTC EQU 7EFFH ;C口 CADDR EQU 7FFFH ;控制字地址 SJMP START O…
#include #include #define uchar unsigned char #define uint unsigned int #define ulong unsigned long #define adc_cs …
#include #define uchar unsigned char #define uint unsigned int #define ulong unsigned long #define adc_cs PB6 #defi…
/** Autor: Matthias Wei遝r Copyright 2005: Matthias Wei遝r License: QPL (see license.txt) */ #ifndef TOOLS_H_INCLUDED #de…
#include #include #include #define baudrate 0x0033 unsigned char flag1=0x00; //主模式标志 unsigned char flag2=0x00; //…
// T6963c.c // // #define _T6963C_C #include "includes.h" #include "avr/pgmspace.h" // 使用flash程序区 /*******************…
/*****************************************************/ /* File name : LCD.h …
//-------------------------------------------------------------------- //zlg7289.h // //有关zlg7289的一些子函数和子程序 //---------------…
#include #include const char table[240]={ 0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00, 0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00, …