完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,所有,我有一个问题与T6963C LCD驱动器,我希望有人谁曾与芯片之前可能有答案。对于我正在做的项目,我有一个PIC32启动器套件(PIC32 MX570F512L)+ I/O扩展板连接到一个128x128 GLCD驱动的T6963C。我有PIC接口和写/读没有问题,但是T6963C的行为使我烦恼。我想使用外部字符生成器RAM来存储我自己的更大的字符。我的计划最初是使用四个8x8平方来创建一个16x16字符。但是,现在我发现16x16对于应用程序来说太宽了一点,所以我希望更小,理论上应该通过驱动字体选择(FS)引脚高,使每个字符单元是8x6而不是8x8来实现。我似乎无法找到如何布局Text/Graphics内存,从而在没有图形缺陷的情况下完成这项工作。我最初的(工作没有故障)内存设置如下:0x0000->0x07FF:Text Memory0x0800->0x0FFF:Graphics Memory0x1000->0x10FF:External CG RAMText.= 0x0000->16字节/行图形区域=16字节/行偏移量Reg=0x0002(根据T6963C规范,CG RAM起始地址的前5字节)使用这些设置,我可以显示我的16x16字符,并且画线没有问题。现在,我想使用16x12,因此我增加了每行的字符(字节)数量:0x0000->0x0AAA:Text Memory0x0AAB->0x1554:Graphics MemoryText.=21Bytes/Row(128/6)Graphics=21Bytes/RowOffset Reg=0x0002。当一切都破灭的时候。屏幕重叠,图形绘制出位置。我想我一定是做了一些错误的假设,不正确地设置了内存位置,或者做错了事情。有没有人有T6963C的经验,可以提示我,如果我想做什么是可能的,如果是,我哪里错了?感谢任何输入!
以上来自于百度翻译 以下为原文 Hi all, I've got an issue with a T6963C LCD driver that I'm hoping someone who has worked with the chip before might have an answer to. For the project I'm working on I've got a PIC32 Starter Kit (PIC32MX570F512L) + I/O Expansion board connected to a 128x128 GLCD driven by a T6963C. I've got the PIC interfacing and writing/reading with no issues, but the behavior of the T6963C is vexxing me. I'm looking to use the External Character Generator RAM to store my own, larger characters. My plan is was originally to use four 8x8 squares to create a single 16x16 character. However I'm finding now that 16x16 is a bit too wide for the application so I would like to go smaller, which in theory should be doable by driving the Font Select (FS) pin high so each character cell is 8x6 rather than 8x8. I just can't seem to figure out how to lay out the Text/Graphics memory to accomplish this without graphical bugs. My original (working with no glitches) memory setup is as follows: 0x0000 -> 0x07FF : Text Memory 0x0800 -> 0x0FFF : Graphics Memory 0x1000 -> 0x10FF : External CG RAM Text Area = 16 Bytes per Row Graphics Area = 16 Bytes per Row Offset Reg = 0x0002 (Top 5 bytes of beginning address of CG RAM according to T6963C spec) Using these settings I am able to display my 16x16 characters and draw lines with no problems. Everything is showing up where it should. Now I want to use 16x12, so I increase the amount of characters (bytes) per row: 0x0000 -> 0x0AAA : Text Memory 0x0AAB -> 0x1554 : Graphics Memory Text Area = 21 Bytes per Row (128/6) Graphics = 21 Bytes per Row Offset Reg = 0x0002 When I put in these settings is when everything breaks. Screen overlap, graphical drawings out of position. I figure I must be making some incorrect assumptions, setting my memory locations incorrectly, or otherwise doing something incorrectly. Does anyone out there have experience with the T6963C that could clue me in to if what I want to do is even possible, and if so, where I'm going wrong? Thanks in advance for any input! |
|
相关推荐
1个回答
|
|
好的,我想做个编辑,但是论坛似乎不想让我,也不想让我邮寄代码片段,所以我想我会尽我所能解释一些事情。S对齐到屏幕上,因为它们应该没有溢出。我仍然有自定义字符文本问题。我试图将CG RAM从内存的图形区段的末尾进一步移动,所以我将它放置在0x2000,这意味着偏移寄存器应该是0x0004。我在屏幕上获得了大量的垃圾,而不是我的自定义字符。好像自定义字符没有写到正确的位置,或者它们没有从正确的位置读取。我在初始化T6963C时设置外部CG模式,所以它应该使用我的偏移寄存器(设置为0x0004)来访问这些字符,除非我误解。关于偏移寄存器还是外部CG RAM?
以上来自于百度翻译 以下为原文 Okay, I wanted to make an edit but the forum doesn't seem to want to let me, nor does it seem to want to let me post code snippets, so I guess I'll try as best I can to explain things. I've got graphics working correctly, There was some overlap but as soon as I rounded up to 23 bytes per row graphics are aligning to the screen as they should with no overrun. I'm still having custom character text issues. I attempted to move the CG RAM further from the end of the graphics section of memory, so I placed it at 0x2000, which should mean the offset register should be 0x0004. I'm getting lots of garbage onscreen instead of my custom characters. It seems like either the custom characters are not writing to the correct spot, or they are not reading from the correct spot. I am setting External CG Mode upon initialization of the T6963C, so it should be using my offset register (set to 0x0004) to access these characters, unless I'm misunderstanding something about the offset register or external CG RAM? |
|
|
|
只有小组成员才能发言,加入小组>>
5055 浏览 9 评论
1938 浏览 8 评论
1877 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3094 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2161 浏览 5 评论
603浏览 1评论
470浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
323浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
497浏览 0评论
405浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-12 14:10 , Processed in 3.134140 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191