查看: 1677|回复: 0

[5]正点原子-领航者.ZYNQ_PL_LCD

[复制链接]
  • TA的每日心情
    开心
    2020-9-28 22:37
  • 签到天数: 456 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2020-5-28 09:57:08 | 显示全部楼层 |阅读模式
    分享到:
      原子哥的4.3寸的屏幕显示效果还是刚刚的,800*480的高清屏。
    微信图片_20200527222707.jpg
      在RGB通信端口中,通过检测R7,G7,B7三个配置来识别相应的屏幕;
    微信图片_20200527222427.jpg
    捕获1.JPG
    捕获2.JPG
      并配置不同的时钟,相应的驱动
    1. always @(*) begin
    2.     case(lcd_id)
    3.         16'h4342 : lcd_pclk = clk_12_5m;
    4.         16'h7084 : lcd_pclk = clk_25m;      
    5.         16'h7016 : lcd_pclk = clk;
    6.         16'h4384 : lcd_pclk = clk_25m;
    7.         16'h1018 : lcd_pclk = clk;
    8.         default :  lcd_pclk = 1'b0;
    9.     endcase      
    10. end
    复制代码
    绘制“电路城”,生成字模
    电路城.jpg

    lcd_display.v
    1. always @(posedge lcd_pclk) begin
    2.     char[0 ]  <= 128'h00000000000000000000000000000000;
    3.     char[1 ]  <= 128'h00000000000000000000000000000000;
    4.     char[2 ]  <= 128'h00000000000000000000000000000000;
    5.     char[3 ]  <= 128'h00000000000000000000000000000000;
    6.     char[4 ]  <= 128'h00000000000000000000000000000000;
    7.     char[5 ]  <= 128'h00000000000000000000000000000000;
    8.     char[6 ]  <= 128'h00000000000000000000000000001000;
    9.     char[7 ]  <= 128'h000000000000C0000000040000001800;
    10.     char[8 ]  <= 128'h000000000001C00000001C0000000840;
    11.     char[9 ]  <= 128'h000000000001C00000183300000008E0;
    12.     char[10]  <= 128'h0003F80000018000067C3F8000C008E0;
    13.     char[11]  <= 128'h001FFF000001800005FC7F8001C00C40;
    14.     char[12]  <= 128'h001FFF000001BF000F8CE30001C00400;
    15.     char[13]  <= 128'h001FFF000067FF800F08830003000600;
    16.     char[14]  <= 128'h003FFF8000EFFF800E11C60003673F80;
    17.     char[15]  <= 128'h003FFF8000EF81800E61FC0007F7FF00;
    18.     char[16]  <= 128'h003FFF8001D3018006F078000FF6C600;
    19.     char[17]  <= 128'h003FFF800183E18007E03E001F840B00;
    20.     char[18]  <= 128'h003FFF800187E18003C06FE01E0C1360;
    21.     char[19]  <= 128'h003FFF80018FC30000C8C3FC0C0E7960;
    22.     char[20]  <= 128'h003FFF8000E3860000D9807C0C0DFD60;
    23.     char[21]  <= 128'h001FFF0000E70C001CF607800417FDC0;
    24.     char[22]  <= 128'h001FFF00006FF8001CEC9FE0042F9CC0;
    25.     char[23]  <= 128'h001FFF00003FF18018D17CE0044818C0;
    26.     char[24]  <= 128'h0003F800001F838008FB604004C819C0;
    27.     char[25]  <= 128'h00000000000700C008FB40C003887340;
    28.     char[26]  <= 128'h00000000000700800FF380800388F640;
    29.     char[27]  <= 128'h00000000000301800F818F800100CC20;
    30.     char[28]  <= 128'h000000000001FE000800BF8000001038;
    31.     char[29]  <= 128'h000000000000300000005F0000002018;
    32.     char[30]  <= 128'h00000000000000000000000000000000;
    33.     char[31]  <= 128'h00000000000000000000000000000000;
    34. end
    复制代码
    最后,仿真走起
    微信图片_20200527233542.jpg

    回复

    使用道具 举报

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

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    手机版|小黑屋|与非网

    GMT+8, 2024-11-19 16:35 , Processed in 0.107060 second(s), 16 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.