点击/回复 | 标题 | 最后回复 | 发表时间/侃吧 |
704/9 |
【程序】lwip-2.0.2通過DHCP自動從路由器獲取IP位址
原始程序: https://zh.arslanbar.net/post.php?t=24571 打開lwipopts.h,把#define LWIP_DHCP 0改成#define... |
4-2 | 3-29 |
493/4 |
目前enc28j60的問題是
可以根據ip地址成功獲取到網卡地址,也能成功收到數據包,但非廣播數據包發出去就會丟失,電腦無法接收到。 |
3-31 | 3-27 |
445/0 |
【程序】AVR單片機通過硬件I2C(TWI)讀寫24C08存儲器
#define F_CPU 11059200 #include <avr/interrupt.h> #include <avr/io.h> #in... |
3-26 | 3-26 |
471/4 |
【程序】窗口看門狗WWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
4-12 | 3-24 |
445/3 |
【程序】獨立看門狗IWDG的使用
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
441/5 |
【程序】使用外部32.768kHz晶振作為RTC的時鐘源(庫函數版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
423/1 |
【程序】使用內部低速晶振作為RTC的時鐘源(庫函數版)
#include <stm32f10x.h> uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,... |
3-24 | 3-24 |
371/0 |
今天晚上寫的串口控制的RTC時鐘程序
#include <stdio.h> #include <string.h> #include <stm32f10x.h> #defi... |
3-22 | 3-22 |
471/7 |
【程序】在AVR單片機中使用printf函數
#include <avr/io.h> #include <avr/sfr_defs.h> #include <stdio.h> //... |
3-23 | 3-22 |
343/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 |
712/11 |
【程序移植】STM32F103C8+ENC28J60網卡也能運行lwip協議棧!
STM32F103C8的Flash容量是64KB,RAM容量為20KB。這樣小的晶片上也能運行lwip協議棧! 移植前的源程序是運行在STM32F103RC晶片上的: https:... |
3-20 | 3-19 |
2257/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 |
487/5 |
【驅動程序】ENC28J60網卡晶片驅動程序(不含lwIP協議棧)
【ENC28J60.h】 #define EIE 0x1b #define EIR 0x1c #define ESTAT 0x1d #define ECON2... |
3-19 | 3-18 |
750/13 |
【程序段】最簡單的HTTP請求響應代碼
err_t http_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) {... |
4-7 | 3-18 |
404/7 | 【截圖】成功的uCOS-II移植 | 3-17 | 3-17 |
339/0 |
在移植uCOS-II時,必須修改啟動文件裡面的SysTick_Handler和PendSV_Handler
不能單獨定義這兩個函數的跳轉,如 void SysTick_Handler(void) { OS_CPU_SysTickHandle... |
3-17 | 3-17 |
401/0 |
【應用】使用STM32定時器的Encoder模式驅動數字旋轉編碼開關
/* 本程序使用的是銳志電子六合一擴展板上的數字旋轉編碼開關 */ /* 注意:一定要把板子下面的JPBMA和JPBMB跳線插上 */ #include <stm32f10x... |
3-15 | 3-15 |
494/2 |
【程序】1602液晶使用FIFO緩衝區方式顯示串口接收到的數據,同時6位數碼管顯示串口數據的累加和
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-11 | 3-11 |
283/0 |
今天晚上寫的PCF8591的AD轉換程序
int fputc(int ch, FILE *fp) { if (fp == &__stdout)... |
3-10 | 3-10 |
506/4 |
【程序】STM32通過AD轉換讀取PA6端口上輸入的模擬量並在1602液晶上顯示轉換結果
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-6 | 3-6 |
478/0 |
【程序】STM32讀取DHT11溫濕度傳感器的數據並在1602液晶上顯示
#include <stdio.h> #include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_B... |
3-5 | 3-5 |
474/2 |
【程序】STM32單片機通過DAC向1602液晶提供對比度電壓,不使用外部電位器
/* LCD1602引腳2(VDD)必須接5V電壓, 不可以接3.3V電壓。其他引腳(包括引腳15-背光電源正)都可以接3.3V電壓 */ /* 必須把J-Link設為不供電(更改內部跳線)... |
3-5 | 3-5 |
371/1 |
【程序】STM32使用DAC控制電壓表指針位置的程序
#include <stm32f10x.h> void delay(void) { uint32_t i;... |
3-5 | 3-5 |
321/3 |
今天寫的簡單的單片機lwip套接字程序
【單片機部分】 #include <stm32f10x.h> #include "lwip/tcp.h" #include "CAR527_main.h"... |
3-3 | 3-3 |
302/0 |
今天吃早飯的時候又多刷了我兩塊錢
因為我每天早上都吃的是同樣的東西,所以是否多刷我一眼就能看出來。 |
3-1 | 3-1 |
446/1 | 今天是2月的最後一天 | 2-28 | 2-28 |
424/2 | 【程序】STM32程序中使用printf和scanf函數讀寫串口 | 2-26 | 2-26 |
348/5 | 【圖解】放大器中的外部交流電壓是如何疊加到直流電路中的 | 2-26 | 2-25 |
376/0 |
【程序】STM32使用SPI接口操作93C46存儲器
/* 93C46選默認的16位模式 */ #include <stm32f10x.h> #define _BV(n) (1 << (n)) #de... |
2-25 | 2-25 |
592/2 |
【程序】STM32使用SPI接口(8位模式)讀取93C46存儲器上的數據
/* 93C46選默認的16位模式,但SPI總線上每次發送/接收8位數據 */ #include <stm32f10x.h> #define _BV(n) (1... |
2-24 | 2-24 |