社区导航

 

搜索
查看: 941|回复: 1

[求助] msp430fr4133 驱动 8 路复用(八条COM)的LCD 玻璃

[复制链接]

4

TA的帖子

0

TA的资源

一粒金砂(初级)

Rank: 1

发表于 2018-3-1 18:08 | 显示全部楼层 |阅读模式
10芯币
  参考  MSP430FR4133 LaunchPad™ Development Kit (MSP‑EXP430FR4133),可以获得 MSP430FR4133 驱动4路复用(四条COM)程序,但修改为8路复用的时候,总是不能正常显示,能否帮忙分析问题在哪里或者给个8路复用的案例?
     代码如下:

// L0~L25  pins selected
LCD_E_setPinAsLCDFunctionEx(LCD_E_BASE, LCD_E_SEGMENT_LINE_0, LCD_E_SEGMENT_LINE_25);

LCD_E_initParam initParams = LCD_E_INIT_PARAM;
initParams.clockDivider = LCD_E_CLOCKDIVIDER_3;
initParams.muxRate = LCD_E_8_MUX;
initParams.segments = LCD_E_SEGMENTS_ENABLED;
// Init LCD as 8-mux mode
LCD_E_init(LCD_E_BASE, &initParams);
// LCD Operation - Mode 3, internal 3.02v, charge pump 256Hz
LCD_E_setVLCDSource(LCD_E_BASE, LCD_E_INTERNAL_REFERENCE_VOLTAGE, LCD_E_EXTERNAL_SUPPLY_VOLTAGE);
LCD_E_setVLCDVoltage(LCD_E_BASE, LCD_E_REFERENCE_VOLTAGE_2_96V);
LCD_E_enableChargePump(LCD_E_BASE);
LCD_E_setChargePumpFreq(LCD_E_BASE, LCD_E_CHARGEPUMP_FREQ_16);
// Clear LCD memory
LCD_E_clearAllMemory(LCD_E_BASE);
// Configure COMs and SEGs
// L0 = COM0, L1 = COM1, L2 = COM2, L3 = COM3
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_25, LCD_E_MEMORY_COM0);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_24, LCD_E_MEMORY_COM1);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_23, LCD_E_MEMORY_COM2);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_22, LCD_E_MEMORY_COM3);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_21, LCD_E_MEMORY_COM4);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_20, LCD_E_MEMORY_COM5);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_19, LCD_E_MEMORY_COM6);
LCD_E_setPinAsCOM(LCD_E_BASE, LCD_E_SEGMENT_LINE_18, LCD_E_MEMORY_COM7);
// Select to display main LCD memory
LCD_E_selectDisplayMemory(LCD_E_BASE, LCD_E_DISPLAYSOURCE_MEMORY);
// Turn on LCD
LCD_E_on(LCD_E_BASE);



原理图如下:


显示用的程序如下:

LCDMEM[LCD_E_SEGMENT_LINE_0] = 0xFF;



回复

使用道具 举报

4

TA的帖子

0

TA的资源

一粒金砂(初级)

Rank: 1

 楼主| 发表于 2018-3-1 18:09 | 显示全部楼层
LCDMEM[LCD_E_SEGMENT_LINE_0] = 0xFF;         LCDMEM[LCD_E_SEGMENT_LINE_1] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_2] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_3] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_4] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_5] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_6] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_7] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_8] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_9] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_10] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_11] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_12] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_13] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_14] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_15] = 0xFF; LCDMEM[LCD_E_SEGMENT_LINE_16] = 0xFF;         LCDMEM[LCD_E_SEGMENT_LINE_17] = 0xFF;


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 论坛活动 E手掌握

    扫码关注
    EEWORLD 官方微信

  • EE福利  唾手可得

    扫码关注
    EE福利 唾手可得

Archiver|手机版|小黑屋|电子工程世界 ( 京ICP证 060456 )

GMT+8, 2019-5-27 19:22 , Processed in 0.094056 second(s), 17 queries , Gzip On, MemCache On.

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