OCMO25664-3 OLED 显示模块 ========================= 概述 ---- OCMO25664-3 是一款 OLED 显示器,控制器为 SSD1322,显示 256×64 点阵,显示对比度强烈。 **主要特点:** - 供电电压 VDD = 2.7V ~ 3.5V(亦可生产 5V 供电版本) - 电流 120mA(50% 像素点亮),256 级对比度亮度电流控制 - 行重新映射和列重映射 - 支持 8 位 6800 和 8080 并口,三线和四线 SPI 串口 - 工作温度 -30℃ ~ 85℃,保存温度 -40℃ ~ 90℃ - 显示模式:黑底绿字(购买时请向业务说明) 文档信息 -------- .. list-table:: :widths: 30 70 * - 型号 - OCMO25664-3 * - 控制器 - SSD1322 * - 分辨率 - 256×64 * - 厂商 - `肇庆金鹏实业有限公司 `_ 直流特性 -------- VDD = 3.3V,TA = 25°C。 .. list-table:: :header-rows: 1 :widths: 12 25 22 10 10 10 11 * - 符号 - 参数 - 测试条件 - Min - Typ - Max - 单位 * - VDD - 逻辑供电电压 - -- - 2.7 - 3.3 - 3.5 - V * - VOH - 高电平输出电压 - IOUT=100μA, 3.3MHz - 0.9×VDD - - VDD - V * - VOL - 低电平输出电压 - IOUT=100μA, 3.3MHz - 0 - - 0.1×VDD - V * - VIH - 高电平输入电压 - - 0.8×VDD - - VDD - V * - VIL - 低电平输入电压 - - 0 - - 0.2×VDD - V * - IDD - VDD 供电电流 - Contrast=0x7f, DisplayON - - 120 - - mA 极限参数 -------- .. list-table:: :header-rows: 1 :widths: 30 15 15 15 25 * - 参数 - 符号 - Min - Max - 单位 * - 供电电压 - VDD - -0.5 - 4 - V * - 工作温度 - Top - -30 - 85 - ℃ * - 存储温度 - Tstg - -40 - 90 - ℃ * - 工作寿命 - - - - 10,000 小时(80 cd/m²) * - 存储寿命 - - - - 20,000 小时(25℃, 50% RH) 光特性 ------ .. image:: /_static/images/ocmo25664-3/img_00.png :alt: 光特性参数 :width: 80% 交流特性 -------- VDD = 2.7V ~ 3.5V,TA = 25°C。 .. image:: /_static/images/ocmo25664-3/img_01.jpg :alt: 交流特性时序图 :width: 80% 引脚描述 -------- .. list-table:: :header-rows: 1 :widths: 8 12 8 72 * - 编号 - 名称 - 方向 - 功能描述 * - 1 - VCC - P - 电源 3.3V(5V 为可选) * - 2 - GND - P - 电源地 * - 3 - NC - -- - 悬空 * - 4~11 - D0~D7 - I/O - 数据 0~7。D0、D1、D2 为复用脚,SPI 模式时 D0=SCLK,D1=SDIN * - 12 - E/RD - I - 8080:读选通(上升沿);6800:读/写选通(下降沿) * - 13 - R/W - I - 8080:写选通(上升沿);6800:高=读,低=写 * - 14 - D/C - I - 高=显示数据,低=操作指令 * - 15 - /RES - I - 复位信号,低电平有效 * - 16 - /CS - I - 片选信号,低电平有效 接口模式选择 ------------ .. image:: /_static/images/ocmo25664-3/img_02.png :alt: 接口模式选择表 :width: 70% .. list-table:: :header-rows: 1 :widths: 15 15 15 15 15 * - 模式 - 3线SPI - 6800并口 - 8080并口 - 4线SPI * - BS0 - 1 - 1 - 0 - 0(焊-) * - BS1 - 0 - 1 - 1 - 0(焊+) .. note:: 出厂默认为 8080 模式(BS0 焊接,BS1 不焊接)。 6800 接口时序 ~~~~~~~~~~~~~ .. image:: /_static/images/ocmo25664-3/img_03.png :alt: 6800 接口时序图 :width: 80% .. image:: /_static/images/ocmo25664-3/img_04.png :alt: 6800 接口控制引脚 :width: 80% .. image:: /_static/images/ocmo25664-3/img_05.png :alt: 6800 读时序图 :width: 80% .. image:: /_static/images/ocmo25664-3/img_06.png :alt: 6800 写时序图 :width: 80% 8080 接口时序 ~~~~~~~~~~~~~ .. image:: /_static/images/ocmo25664-3/img_07.png :alt: 8080 接口时序图 1 :width: 80% .. image:: /_static/images/ocmo25664-3/img_08.png :alt: 8080 接口时序图 2 :width: 80% .. image:: /_static/images/ocmo25664-3/img_09.png :alt: 8080 接口时序图 3 :width: 80% .. image:: /_static/images/ocmo25664-3/img_10.png :alt: 8080 接口时序图 4 :width: 80% .. image:: /_static/images/ocmo25664-3/img_11.png :alt: 8080 接口时序图 5 :width: 80% .. image:: /_static/images/ocmo25664-3/img_12.png :alt: 8080 接口时序图 6 :width: 80% .. image:: /_static/images/ocmo25664-3/img_13.png :alt: 8080 接口时序图 7 :width: 80% 4 线 SPI 接口时序 ~~~~~~~~~~~~~~~~~~ .. image:: /_static/images/ocmo25664-3/img_14.png :alt: 4 线 SPI 接口时序图 1 :width: 80% .. image:: /_static/images/ocmo25664-3/img_15.png :alt: 4 线 SPI 接口时序图 2 :width: 80% .. image:: /_static/images/ocmo25664-3/img_16.png :alt: 4 线 SPI 接口时序图 3 :width: 80% .. image:: /_static/images/ocmo25664-3/img_17.png :alt: 4 线 SPI 接口时序图 4 :width: 80% 3 线 SPI 接口时序 ~~~~~~~~~~~~~~~~~~ .. image:: /_static/images/ocmo25664-3/img_18.png :alt: 3 线 SPI 接口时序图 1 :width: 80% .. image:: /_static/images/ocmo25664-3/img_19.png :alt: 3 线 SPI 接口时序图 2 :width: 80% .. image:: /_static/images/ocmo25664-3/img_20.png :alt: 3 线 SPI 接口时序图 3 :width: 80% 指令表 ------ .. image:: /_static/images/ocmo25664-3/img_21.png :alt: 指令表 1 :width: 80% .. image:: /_static/images/ocmo25664-3/img_22.png :alt: 指令表 2 :width: 80% .. image:: /_static/images/ocmo25664-3/img_23.png :alt: 指令表 3 :width: 80% .. image:: /_static/images/ocmo25664-3/img_24.png :alt: 指令表 4 :width: 80% .. image:: /_static/images/ocmo25664-3/img_25.png :alt: 指令表 5 :width: 80% .. image:: /_static/images/ocmo25664-3/img_26.png :alt: 指令表 6 :width: 80% .. image:: /_static/images/ocmo25664-3/img_27.png :alt: 指令表 7 :width: 80% .. image:: /_static/images/ocmo25664-3/img_28.png :alt: 指令表 8 :width: 80% 初始化代码 ---------- .. code-block:: c wr_lcd(comm, 0xfd); // Command Lock wr_lcd(dat, 0x12); wr_lcd(comm, 0xae); // Sleep In wr_lcd(comm, 0xb3); // Set Display Clock Divide Ratio/Oscillator Frequency wr_lcd(dat, 0x91); wr_lcd(comm, 0xca); // Set Multiplex Ratio wr_lcd(dat, 0x3f); wr_lcd(comm, 0xa2); // Set Display Offset wr_lcd(dat, 0x00); wr_lcd(comm, 0xa1); // Set Display Start Line wr_lcd(dat, 0x00); wr_lcd(comm, 0xa0); // Set Re-Map & Dual COM Line Mode wr_lcd(dat, 0x14); wr_lcd(dat, 0x11); wr_lcd(comm, 0xB5); // Set GPIO wr_lcd(dat, 0x00); wr_lcd(comm, 0xab); // Function Selection wr_lcd(dat, 0x01); wr_lcd(comm, 0xb4); // Enable External VSL wr_lcd(dat, 0xa0); wr_lcd(dat, 0xfd); wr_lcd(comm, 0xc1); // Set Contrast Current wr_lcd(dat, 0x7f); wr_lcd(comm, 0xc7); // Master Contrast Current Control wr_lcd(dat, 0x0f); wr_lcd(comm, 0xb9); // Select Default Linear Gray Scale Table wr_lcd(comm, 0xb1); // Set Phase Length wr_lcd(dat, 0xe2); wr_lcd(comm, 0xd1); // Enhance Driving Scheme Capability wr_lcd(dat, 0x82); wr_lcd(dat, 0x20); wr_lcd(comm, 0xbb); // Set Pre-Charge Voltage wr_lcd(dat, 0x1f); wr_lcd(comm, 0xb6); // Set Second Pre-Charge Period wr_lcd(dat, 0x08); wr_lcd(comm, 0xbe); // Set VCOMH Deselect Level wr_lcd(dat, 0x07); wr_lcd(comm, 0xa6); // Set Display Mode (Normal Display) wr_lcd(comm, 0xaf); // Sleep Out delay1(100); 外型尺寸 -------- .. image:: /_static/images/ocmo25664-3/img_28.png :alt: 外型尺寸图 :width: 80% 资源下载 -------- * :download:`OCMO25664-3 说明书 (DOC) `