完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我使用PIC16F87A。闪存是8KB,按1字节的概念有14位宽的内存位置。因此,(8192×14)/8=143K。根据计算,我将能够下载/下载任何HEX与大小LT;14,在我的情况下,我有十六进制大小的16K,它工作得很好。有人能解释一下是什么吗?谢谢你
以上来自于百度翻译 以下为原文 Hi All, I am using PIC16F877A. Flash memory is 8kb and as per the concept of 1byte has 14bit wide memory locations. Hence, (8192*14)/8=14.3K. As per the calculations I will be able to dump/download/flash any .HEX with size<14. In my case I have an .HEX sized 16K and it is working fine. Can someone explain what actually is? Thank you |
|
相关推荐
8个回答
|
|
每个PIC16指令是14位宽的,用十六进制数字表示,或者在HEX文件中用4字节表示。HEX文件的典型行代表16个数据字节或8个指令字。HEX文件的典型行由冒号(1字节)、字节计数(2)、地址(4)、记录类型(2)、数据字节(32个用于8个指令字)、校验和(2)和末尾(2)组成。每个记录行总共有45个字节,代表8个指令字。对于8K字节的闪存字,这将是1024行,并花费大约46K字节。添加EEPROM、ID位置、配置位等的记录。整个芯片的HEX文件占用大约47 K-48字节。
以上来自于百度翻译 以下为原文 Each PIC16 instruction is 14 bit wide, represented using 4 hex digits or 4 bytes in the hex file. A typical line of the hex file represents 16 data bytes or 8 instructions words. A typical line of the hex file consists of a colon (1 byte), byte count (2), address (4), record type (2), data bytes (32 for 8 instruction words), checksum (2), and end-of-line (2). That is a total of 45 bytes per record line, representing 8 instruction words. For 8K |
|
|
|
一个十六进制文件是数据的ASCII表示,因此需要4字节来表示内存中的每个字。在HEX文件中还有很多其他开销。
以上来自于百度翻译 以下为原文 You're calculations are way off. A hex file is an ASCII representation of the data, so it takes 4 bytes to represent each word in the memory. There is also a lot of other overhead in a hex file. Have a read at https://en.wikipedia.org/wiki/Intel_HEX |
|
|
|
谢谢你,你如何确定PIC16在闪存中有1024线?请解释如果你解释相同的18F45 K22。这将是有益的,我可以互相联系和理解它一次好。
以上来自于百度翻译 以下为原文 Thank You 1and0. How you determined that PIC16 has 1024 lined in flash memory? Please explain If you explain the same for 18f45k22. It would be helpful and I can co relate each other and understand it once for good. |
|
|
|
AbyTe是8位。你的图片的一个字是14位。你可以查阅“英特尔HEX”文件格式。它将解释为什么文件比它包含的十六进制图像要大得多。
以上来自于百度翻译 以下为原文 Abyte is 8 bits. A Word for your pic is 14 bits. You can look up the "Intel Hex" file format. It will explain why the file it so much bigger than the hex image it contains. |
|
|
|
那不是他说的话。注意单词,因此,1024是简单的8K(Flash的单词)除以8(HEX文件中每行的单词),这是HEX文件中有多少行需要表示8K字的闪存。
以上来自于百度翻译 以下为原文 That's not what he said. Pay attention to the words. So, 1024 is simply 8k (words of flash) divided by 8 (words per line in the hex file) which is how many lines in the hex file are required to represent 8k words of FLASH memory. |
|
|
|
|
|
|
|
那不是他说的话。注意单词,因此,1024是简单的8K(Flash的单词)除以8(HEX文件中每行的单词),这是HEX文件中有多少行需要代表8K字的闪存。你如何提到8个指令字?请解释
以上来自于百度翻译 以下为原文 That's not what he said. Pay attention to the words. So, 1024 is simply 8k (words of flash) divided by 8 (words per line in the hex file) which is how many lines in the hex file are required to represent 8k words of FLASH memory. How you mentioned 8 instruction words? please explain |
|
|
|
在这种情况下,HEX文件通常每行存储16个字节,等于8个字。
以上来自于百度翻译 以下为原文 The Hex FILE typically stores 16 bytes per line that is equal to 8 words in this case. |
|
|
|
只有小组成员才能发言,加入小组>>
5183 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3178 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2229 浏览 5 评论
739浏览 1评论
626浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
510浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 20:13 , Processed in 1.177089 second(s), Total 90, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号