點擊/回復 | 標題 | 最後回復 | 發表時間/侃吧 |
971/18 |
【实验】使用定时器的外部时钟模式对多谐振荡器的性能进行评估
【实验时用到的程序】 #include <stm32f10x.h> const uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99,... |
4-2 | 4-2 |
1383/6 |
【教程】给lwip添加计算机名(NetBIOS名称)
原始工程:https://zh.arslanbar.net/post.php?t=24584 【最终效果】 1.能够在PC端通过设定的计算机名ping通网卡。 2.能在PC端... |
4-1 | 4-1 |
604/5 |
【数据】在控制台中执行“ping 计算机名”时网卡收到的UDP数据包内容
【命令】 C:\Users\Octopus>ping CAR527 Pinging CAR527 [192.168.1.109] with 32 bytes of data:... |
4-1 | 3-31 |
891/9 |
【程序】lwip-2.0.2通过DHCP自动从路由器获取IP地址
原始程序: https://zh.arslanbar.net/post.php?t=24571 打开lwipopts.h,把#define LWIP_DHCP 0改成#define LWI... |
4-2 | 3-29 |
747/4 |
目前enc28j60的问题是
可以根据ip地址成功获取到网卡地址,也能成功收到数据包,但非广播数据包发出去就会丢失,电脑无法接收到。 |
3-31 | 3-27 |
655/0 |
【程序】AVR单片机通过硬件I2C(TWI)读写24C08存储器
#define F_CPU 11059200 #include <avr/interrupt.h> #include <avr/io.h> #include... |
3-26 | 3-26 |
728/4 |
【程序】窗口看门狗WWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
4-12 | 3-24 |
691/3 |
【程序】独立看门狗IWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
3-24 | 3-24 |
756/5 |
【程序】使用外部32.768kHz晶振作为RTC的时钟源(库函数版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
3-24 | 3-24 |
698/1 |
【程序】使用内部低速晶振作为RTC的时钟源(库函数版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
3-24 | 3-24 |
688/0 |
今天晚上写的串口控制的RTC时钟程序
#include <stdio.h> #include <string.h> #include <stm32f10x.h> #define BIT... |
3-22 | 3-22 |
716/7 |
【程序】在AVR单片机中使用printf函数
#include <avr/io.h> #include <avr/sfr_defs.h> #include <stdio.h> // 芯片型号:... |
3-23 | 3-22 |
543/2 |
DHCP出错了
******21/03/2017 9:05:41 PM****** dhcp_start(netif=20005fe0) en0 dhcp_start(): starting new DH... |
3-31 117.136.63.* |
3-21 |
966/11 |
【程序移植】STM32F103C8+ENC28J60网卡也能运行lwip协议栈!
STM32F103C8的Flash容量是64KB,RAM容量为20KB。这样小的芯片上也能运行lwip协议栈! 移植前的源程序是运行在STM32F103RC芯片上的: https://zh... ![]() |
3-20 | 3-19 |
2604/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 |
651/5 |
【驱动程序】ENC28J60网卡芯片驱动程序(不含lwIP协议栈)
【ENC28J60.h】 #define EIE 0x1b #define EIR 0x1c #define ESTAT 0x1d #define ECON2 0x1e... |
3-19 | 3-18 |
1124/13 |
【程序段】最简单的HTTP请求响应代码
err_t http_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) {... |
4-7 | 3-18 |
712/7 |
【截图】成功的uCOS-II移植
![]() |
3-17 | 3-17 |
675/0 |
在移植uCOS-II时,必须修改启动文件里面的SysTick_Handler和PendSV_Handler
不能单独定义这两个函数的跳转,如 void SysTick_Handler(void) { OS_CPU_SysTickHandler();... |
3-17 | 3-17 |
715/0 |
【应用】使用STM32定时器的Encoder模式驱动数字旋转编码开关
/* 本程序使用的是锐志电子六合一扩展板上的数字旋转编码开关 */ /* 注意:一定要把板子下面的JPBMA和JPBMB跳线插上 */ #include <stm32f10x.h... |
3-15 | 3-15 |
814/2 |
【程序】1602液晶使用FIFO缓冲区方式显示串口接收到的数据,同时6位数码管显示串口数据的累加和
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
3-11 | 3-11 |
474/0 |
今天晚上写的PCF8591的AD转换程序
int fputc(int ch, FILE *fp) { if (fp == &__stdout)... |
3-10 | 3-10 |
777/4 |
【程序】STM32通过AD转换读取PA6端口上输入的模拟量并在1602液晶上显示转换结果
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
3-6 | 3-6 |
764/0 |
【程序】STM32读取DHT11温湿度传感器的数据并在1602液晶上显示
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
3-5 | 3-5 |
814/2 |
【程序】STM32单片机通过DAC向1602液晶提供对比度电压,不使用外部电位器
/* LCD1602引脚2(VDD)必须接5V电压, 不可以接3.3V电压。其他引脚(包括引脚15-背光电源正)都可以接3.3V电压 */ /* 必须把J-Link设为不供电(更改内部跳线),... |
3-5 | 3-5 |
633/1 |
【程序】STM32使用DAC控制电压表指针位置的程序
#include <stm32f10x.h> void delay(void) { uint32_t i;... |
3-5 | 3-5 |
572/3 |
今天写的简单的单片机lwip套接字程序
【单片机部分】 #include <stm32f10x.h> #include "lwip/tcp.h" #include "CAR527_main.h" err_... |
3-3 | 3-3 |
495/0 |
今天吃早饭的时候又多刷了我两块钱
因为我每天早上都吃的是同样的东西,所以是否多刷我一眼就能看出来。 |
3-1 | 3-1 |
633/1 | 今天是2月的最后一天 | 2-28 | 2-28 |
786/2 |
【程序】STM32程序中使用printf和scanf函数读写串口
![]() |
2-26 | 2-26 |