一乐电子

 找回密码
 请使用微信账号登录和注册会员

QQ登录

只需一步,快速开始

微信扫码登录

手机号码,快捷登录

手机号码,快捷登录

搜索
楼主: bluefeel

五一奉献,免费AVR开发板,可移植nRF24L01程序,汉化版LCDSmartie,VFD2USB固件!

 火... [复制链接]
发表于 2012-1-29 22:16 | 显示全部楼层
留一个记号
回复

使用道具 举报

发表于 2012-2-18 14:17 | 显示全部楼层
我想买套成品啊,用来直接连接电脑驱动VFD2002,版主啊有货了啊?
回复

使用道具 举报

发表于 2012-2-18 14:20 | 显示全部楼层
版大,我想买套成品的驱动板,用来驱动VFD2002直接连在电脑USB口上,当成HTPC屏来用,有没有得卖啊?
回复

使用道具 举报

发表于 2012-3-11 13:02 | 显示全部楼层
一直找呢能不能用于简单的无线传输
回复

使用道具 举报

发表于 2013-3-6 23:15 | 显示全部楼层
我好像也有这个屏幕 正好试试
回复

使用道具 举报

发表于 2014-3-21 23:02 | 显示全部楼层
有人问怎么在开机冷启动状态下。设置成4bit模式。


//冷启动的时候从,6个Io从高阻全部到高电平。
void hd44780_4Bit_Reset( void )
{
unsigned  char i;
  DB7 = 0;
  DB6 = 0;
  DB5 = 0;
  DB4 = 0;
  Elcm = 0;
  RS = 0;

  DDR_RS = 1;
//  DDR_RW = 1;
  DDR_Elcm = 1;

  DDR_DB7 = 1;
  DDR_DB6 = 1;
  DDR_DB5 = 1;
  DDR_DB4 = 1;

  hd44780_4Bit_delay_ms(2000);  //预留时间给LCD模块启动时间

//预留2秒肯定够了,不够就是你的延时函数出了问题。




//折中刚好可以设置成4bit模式
//>>>
hd44780_4Bit_command(0x33);  
    hd44780_4Bit_delay_ms(100);
hd44780_4Bit_command(0x32);
    hd44780_4Bit_delay_ms(100);
///<<<<




#ifdef  LCD_4BIT
//设置为4bit模式
//相当于发送0b00100000 4bit模式命令
//4bit硬件下的LCD_FUNCTION_4BIT_2LINES命令的前半部分。
DB4=0;
DB5=1;
DB6=0;
DB7=0;
   hd44780_4Bit_lcd_e_toggle;
   hd44780_4Bit_delay_ms(100);
#endif



蓝字是一种【折中的办法】,
  00110000    0x30        //相当于发送#define LCD_FUNCTION_8BIT_1LINE  0x30   00110000
  00110000    0x30        //相当于发送#define LCD_FUNCTION_8BIT_1LINE  0x30   00110000

  00110000    0x30        //相当于发送#define LCD_FUNCTION_8BIT_1LINE  0x30   00110000
  00100000    0x20          //相当于发送0b00100000 4bit模式命令 LCD_FUNCTION_4BIT_1LINE
在切换模式之前,相当于发送了3次【LCD_FUNCTION_8BIT_1LINE】,一次【LCD_FUNCTION_4BIT_1LINE】



我喜欢用红字的方法,在冷启动的状态下,一次成功。
回复

使用道具 举报

发表于 2014-3-21 23:04 | 显示全部楼层
#define LCD_DISP_OFF             0x08  // display off      
#define LCD_CLR               0x01      //clear display
#define LCD_HOME              0x03      // return to home position
#define LCD_DISP_ON              0x0C   // display on, cursor off
/* function set: set interface data length and number of display lines */
#define LCD_FUNCTION_4BIT_1LINE  0x20   /* 4-bit interface, single line, 5x7 dots */
#define LCD_FUNCTION_4BIT_2LINES 0x28   /* 4-bit interface, dual line,   5x7 dots */
#define LCD_FUNCTION_8BIT_1LINE  0x30   /* 8-bit interface, single line, 5x7 dots */
#define LCD_FUNCTION_8BIT_2LINES 0x38   /* 8-bit interface, dual line,   5x7 dots */




#define LCD_FUNCTION_4BIT_1LINE  0x20   00100000
#define LCD_FUNCTION_4BIT_2LINES 0x28   00101000
#define LCD_FUNCTION_8BIT_1LINE  0x30   00110000
#define LCD_FUNCTION_8BIT_2LINES 0x38   00111000
回复

使用道具 举报

本版积分规则

QQ|一淘宝店|手机版|商店|一乐电子 ( 粤ICP备09076165号 ) 公安备案粤公网安备 44522102000183号

GMT+8, 2025-8-26 12:03 , Processed in 0.037824 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表