stm32 1602

时间:2018-05-27 10:02:54
【文件属性】:

文件名称:stm32 1602

文件大小:267KB

文件格式:RAR

更新时间:2018-05-27 10:02:54

stm,32,1602

include "stm32f10x.h" #include "1602.h" #include "sys.h" #include "delay.h" //typedef unsigned char BYTE; //typedef unsigned char BOOL; unsigned char lcd_bz(void) { // ²âÊÔLCDæµ״̬ unsigned char result; LCD_RS(0); //0; LCD_RW(1); //1; LCD_EN(1); //1; delay_us(1); result = (GPIO_ReadInputData(GPIOB) & 0x8000)>>8; LCD_EN(0); // 0; return result; } /******************************дÃüÁî*************************************************/ void lcd_wcmd(int cmd) { // дÈëÖ¸ÁîÊý¾Ýµ½LCD while(lcd_bz()); LCD_RS(0); // 0; LCD_RW(0); // 0; LCD_EN(0); // 0; delay_us(1); //NOP(); GPIOB->BSRR = cmd<<8 & 0xff00; //½«Êý¾ÝË͵½P0¿Ú GPIOB->BRR = ((~cmd)<<8) & 0xff00;


【文件预览】:
stm32 1602
----HARDWARE()
--------1602()
--------LED()
----keilkilll.bat(399B)
----SYSTEM()
--------delay()
--------sys()
--------usart()
----STM32F10x_FWLib()
--------inc()
--------src()
----CORE()
--------startup_stm32f10x_md.s(12KB)
--------core_cm3.c(17KB)
--------core_cm3.h(84KB)
--------startup_stm32f10x_hd.s(15KB)
----USER()
--------stm32f10x_it.c(2KB)
--------main.c(2KB)
--------LED.hex(15KB)
--------1602.hex(15KB)
--------LED.Opt(6KB)
--------lcd 1602.Opt(6KB)
--------lcd 1602.Uv2(5KB)
--------system_stm32f10x.h(2KB)
--------stm32f10x_conf.h(3KB)
--------system_stm32f10x.c(36KB)
--------stm32f10x_it.h(2KB)
--------stm32f10x.h(619KB)

网友评论