完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,在那里。我正在研究SPEC的计时器部分,并且总是看到这样的句子:TMR0H不是16位模式中的实际高字节的time0。它实际上是Time0的真正高字节的缓冲版本,它不是直接可读的,也不是写的,预分频器不是直接可读的或可写的。它的值是由PSA和T0PS位(T0CON)设置的“什么不是直接可读或可写”的意思,是否有间接的方式来读或写?什么是“缓冲版本”。我可能想问:我发现有这么多的术语规范,我不想继续质疑这样的疑问,有一些网上材料覆盖术语或知识的这一点?可以告诉我吗?
以上来自于百度翻译 以下为原文 Hi,there. I am studying the Timer section of SPEC, and always saw the sentence like this: TMR0H is not the actual high byte of Timer0 in 16-bit mode. It is actually a buffered version of the real high byte of Timer0, which is not directly readable nor writable or The prescaler is not directly readable or writable. Its value is set by the PSA and T0PS bits (T0CON) What "is not directly readable or writable" means, are there indirectly means to read or write? and what is "buffered version". I may want to ask: I found there are so many terminology in spec, and I don't want to keep asking the doubts like this way, are there some online material covering terminology or the knowledge of this? May refer me to ? |
|
相关推荐
12个回答
|
|
“缓冲”在这种情况下意味着(我记忆中),当计时器正在计数时,你没有读取它的“实况”值;当你在TMR0L上执行一个读时,TMR0H得到一个高字节的当前值的快照,并且它停留在那里直到下一个读。当你写到TMR0H时,这个值只是“保持某处”,当你写到TMR0L时,它被存储到定时器的真正高字节。这有助于16位在8位PIC上访问“原子”。至于预分频器,你通常不能读取它的当前值:你可以重置它。
以上来自于百度翻译 以下为原文 "buffered" in that case means (I go by memory) that you're not reading its "live" value as the Timer is counting; when you perform a Read upon TMR0L, TMR0H gets a snapshot of current value of the high byte and it stays in there till the next read. And when you write to TMR0H, this value is only "kept somewhere" and stored to the real high byte of the timer when you will write to TMR0L. This helps make 16bits access "atomic" on an 8bits PIC. As for the prescaler, you can't usually read its current value: you can just reset it. |
|
|
|
嗨,安迪,“它”指向了以前写的东西。“它实际上是一个缓冲的版本,它是Time0的真正高字节,它不是直接可读的,也不是可写的。”可以这样翻译:“TMR0H实际上是Time0的真正高字节的缓冲版本。Time0的真正高字节不是直接可读的,也不是可写的。有没有间接的阅读或写作方式?没有办法读取或写入计时器的实际值。在计时器的控制寄存器中,您可以设置预分频器以2或4或8或…256、没有办法将5或7或240写入预分频器。没有办法读取预分频器的值。当计时器被程序改变时,预分频器WLL被清除=0;“缓冲版本”意味着“通过缓冲器寄存器间接”。我的经验是除了阅读文本之外,它还帮助研究图表和图形。L文档,技术术语应该在文档中解释。对语言的一般理解是一个实践问题。参加语言课可能有帮助,但是阅读不同的关于相似主题的文档也可能是有效的。在线词典有:HTTPS://E.WikThanal.g/wiki/wikcript:Wikisaurusthen有许多主题的解释,也在计算中。例如:HTTPS://E.Wiki
以上来自于百度翻译 以下为原文 Hi Andy, "Which" is pointing back to what was written before. "It is actually a buffered version of the real high byte of Timer0, which is not directly readable nor writable." may be translated like this: "TMR0H is actually a buffered version of the real high byte of Timer0. The real high byte of Timer0 is not directly readable nor writable." "... are there indirectly means to read or write?" There is no way to read or write the actual value of a prescaler of a Timer. In the control register for the timer, you may set prescaler to divide by 2 or 4 or 8 or ... 256. There is no way to write 5 or 7 or 240 to the prescaler. There is no way to read the value of the prescaler. When the Timer is changed by the program, prescaler wll be cleared = 0; "buffered version" means "indirect by a buffer register" My experience is that it help to study diagrams and figures, in addition to reading the text. In a good manual or technical document, technical terminology should be explained in the document. General understanding of a language is a matter of practice. Attending language classes may help, but reading different documents about similar subjects, may also be efficient. There is a dictionary online: https://en.wiktionary.org/wiki/Wiktionary:Wikisaurus then there is Wikipedia with explainations on many subjects, also within computing. Example: https://en.wikipedia.org/wiki/Buffer Mysil |
|
|
|
嗨,安迪,我在PIC18F25K40上有同样的问题,但我没有真正解决。我配置了我的计时器在8位,写作成为可能在TMRH。如果你找到解决方案,那么我想知道。
以上来自于百度翻译 以下为原文 Hi Andy, I had the identical problem on PIC 18F25K40 but I didn't really resolve. I config my timer in 8 bits and the writing is became possible in TMRH. If you find the solution then I want well to know. |
|
|
|
|
|
|
|
|
|
|
|
对Raydiu:嗨,我找到教科书,它说:和TMR0H一样的机制。
以上来自于百度翻译 以下为原文 To Raydius: Hi, I found textbook and it says: and the same mechanism as TMR0H |
|
|
|
Raydius:我发现教科书解释了这个含义,但我不太清楚。等待别人帮助:
以上来自于百度翻译 以下为原文 To Raydius: I found the textbook explaining the implication, but I don't understand it clearly. Waiting for others helping out :) |
|
|
|
你的解释有什么困难?详细解释了该机制,当你读TMR0L时,16位定时器的8个高位位被写入一个8位锁存器。当你读TMR0H时,你正在读取被锁存的值,而不是现在计时器中的值,这可能在你读TMR0L时发生了变化。
以上来自于百度翻译 以下为原文 What part of the explanation are you having trouble with? It explains the mechanism in detail. When you read TMR0L, the 8 upper bits of the 16 bit timer are written to an 8 bit latch. When you read TMR0H, you are reading the value which was latched, not what is in the timer now, which may have changed since when you read TMR0L. |
|
|
|
QHB:教科书太夸张,无法理解,你比它好。我现在已经办妥了。
以上来自于百度翻译 以下为原文 To qhb: The textbook is too rhetorical to understand, you are better than it. I am cleared right now. |
|
|
|
对QHB &安迪:谢谢!最后,如果在16位中配置,我们可以在TMR0中写入吗?
以上来自于百度翻译 以下为原文 to qhb & Andy : Thanks! Finally, can we write in TMR0 if is configured in 16 bit? |
|
|
|
什么意思?PIC18F25K40数据表告诉您,这是由T0CON注册寄存器016BIT=0=& GT;8BITT016BIT=1=& 16比特8位模式控制的T016BIT标志,TMR0H寄存器充当周期计数。
以上来自于百度翻译 以下为原文 What do you mean? The PIC18F25K40 datsheet tells you that this is controlled by the T016BIT flag in the T0CON register T016BIT = 0 => 8-bit T016BIT = 1 => 16-bit In 8-bit mode, the TMR0H register acts as a period count. |
|
|
|
HTTP//WW1.MICCHIP.COM/DeLoSt/En/DeVICEDC/OC041843C.PDF查看第215页图18-1的“16位TMR0体图”,并仔细阅读“180 1.1.1”Time0在16位模式下的读写。
以上来自于百度翻译 以下为原文 http://ww1.microchip.com/downloads/en/DeviceDoc/40001843C.pdf Take a look at the "16-bit TMR0 Body Diagram" of Figure 18-1 on page 215, and read section 18.1.1.1 "Timer0 Reads and Writes in 16-Bit Mode" carefully. |
|
|
|
只有小组成员才能发言,加入小组>>
5184 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3179 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2229 浏览 5 评论
739浏览 1评论
626浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
511浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 09:01 , Processed in 1.479275 second(s), Total 103, Slave 85 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号