點擊/回復 | 標題 | 最後回復 | 發表時間/侃吧 |
484/4 |
目前enc28j60的问题是
可以根据ip地址成功获取到网卡地址,也能成功收到数据包,但非广播数据包发出去就会丢失,电脑无法接收到。 |
3-31 | 3-27 |
435/0 |
【程序】AVR单片机通过硬件I2C(TWI)读写24C08存储器
#define F_CPU 11059200 #include <avr/interrupt.h> #include <avr/io.h> #in... |
3-26 | 3-26 |
453/4 |
【程序】窗口看门狗WWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
4-12 | 3-24 |
428/3 |
【程序】独立看门狗IWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
425/5 |
【程序】使用外部32.768kHz晶振作为RTC的时钟源(库函数版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
409/1 |
【程序】使用内部低速晶振作为RTC的时钟源(库函数版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
352/0 |
今天晚上写的串口控制的RTC时钟程序
#include <stdio.h> #include <string.h> #include <stm32f10x.h> #defi... |
3-22 | 3-22 |
458/7 |
【程序】在AVR单片机中使用printf函数
#include <avr/io.h> #include <avr/sfr_defs.h> #include <stdio.h> //... |
3-23 | 3-22 |
337/2 |
DHCP出错了
******21/03/2017 9:05:41 PM****** dhcp_start(netif=20005fe0) en0 dhcp_start(): starting ne... |
3-31 117.136.63.* |
3-21 |
706/11 |
【程序移植】STM32F103C8+ENC28J60网卡也能运行lwip协议栈!
STM32F103C8的Flash容量是64KB,RAM容量为20KB。这样小的芯片上也能运行lwip协议栈! 移植前的源程序是运行在STM32F103RC芯片上的: https:... |
3-20 | 3-19 |
2255/11 |
【步骤】lwip-2.0.2在STM32F103RC+ENC28J60网卡上无操作系统移植(不使用STM32库函数)
【1】去lwip的官方网站下载最新的lwip-2.0.2.zip 【2】新建空白STM32工程,建工程时一定要在Manage Run-Time Environment对话框里勾选启动文件... |
3-31 | 3-19 |
484/5 |
【驱动程序】ENC28J60网卡芯片驱动程序(不含lwIP协议栈)
【ENC28J60.h】 #define EIE 0x1b #define EIR 0x1c #define ESTAT 0x1d #define ECON2... |
3-19 | 3-18 |
743/13 |
【程序段】最简单的HTTP请求响应代码
err_t http_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) {... |
4-7 | 3-18 |
387/7 | 【截图】成功的uCOS-II移植 | 3-17 | 3-17 |
322/0 |
在移植uCOS-II时,必须修改启动文件里面的SysTick_Handler和PendSV_Handler
不能单独定义这两个函数的跳转,如 void SysTick_Handler(void) { OS_CPU_SysTickHandle... |
3-17 | 3-17 |
391/0 |
【应用】使用STM32定时器的Encoder模式驱动数字旋转编码开关
/* 本程序使用的是锐志电子六合一扩展板上的数字旋转编码开关 */ /* 注意:一定要把板子下面的JPBMA和JPBMB跳线插上 */ #include <stm32f10x... |
3-15 | 3-15 |
481/2 |
【程序】1602液晶使用FIFO缓冲区方式显示串口接收到的数据,同时6位数码管显示串口数据的累加和
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-11 | 3-11 |
271/0 |
今天晚上写的PCF8591的AD转换程序
int fputc(int ch, FILE *fp) { if (fp == &__stdout)... |
3-10 | 3-10 |
493/4 |
【程序】STM32通过AD转换读取PA6端口上输入的模拟量并在1602液晶上显示转换结果
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-6 | 3-6 |
463/0 |
【程序】STM32读取DHT11温湿度传感器的数据并在1602液晶上显示
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-5 | 3-5 |
459/2 |
【程序】STM32单片机通过DAC向1602液晶提供对比度电压,不使用外部电位器
/* LCD1602引脚2(VDD)必须接5V电压, 不可以接3.3V电压。其他引脚(包括引脚15-背光电源正)都可以接3.3V电压 */ /* 必须把J-Link设为不供电(更改内部跳线)... |
3-5 | 3-5 |
357/1 |
【程序】STM32使用DAC控制电压表指针位置的程序
#include <stm32f10x.h> void delay(void) { uint32_t i;... |
3-5 | 3-5 |
317/3 |
今天写的简单的单片机lwip套接字程序
【单片机部分】 #include <stm32f10x.h> #include "lwip/tcp.h" #include "CAR527_main.h"... |
3-3 | 3-3 |
293/0 |
今天吃早饭的时候又多刷了我两块钱
因为我每天早上都吃的是同样的东西,所以是否多刷我一眼就能看出来。 |
3-1 | 3-1 |
436/1 | 今天是2月的最后一天 | 2-28 | 2-28 |
410/2 | 【程序】STM32程序中使用printf和scanf函数读写串口 | 2-26 | 2-26 |
347/5 | 【图解】放大器中的外部交流电压是如何叠加到直流电路中的 | 2-26 | 2-25 |
364/0 |
【程序】STM32使用SPI接口操作93C46存储器
/* 93C46选默认的16位模式 */ #include <stm32f10x.h> #define _BV(n) (1 << (n)) #de... |
2-25 | 2-25 |
579/2 |
【程序】STM32使用SPI接口(8位模式)读取93C46存储器上的数据
/* 93C46选默认的16位模式,但SPI总线上每次发送/接收8位数据 */ #include <stm32f10x.h> #define _BV(n) (1... |
2-24 | 2-24 |
525/4 |
【程序】STM32单片机操作ST93C46存储器的程序(3.2V电压)
#include <stm32f10x.h> #define _BV(n) (1 << (n)) #define CS_0 (GPIOA->BRR =... |
2-28 | 2-23 |