[英]What does the Timer1 RD16 bit do on PIC18 microcontrollers?
I'm really confused. 我真的很困惑 The manual says:
该手册说:
RD16: 16-bit Read/Write Mode Enable bit
1= Enables register Read/Write of Timer1 in one 16-bit operation
0= Enables register Read/Write of Timer1 in two 8-bit operations
However, there doesn't actually seem to be any way to R/W with one 16-bit operation! 但是,通过16位操作实际上似乎没有任何方法可以进行R / W! From what the datasheet says later, and from what I've read online, the 16-bit value must still be read as:
从数据表稍后所说的内容以及从我在线阅读的内容来看,该16位值仍必须读为:
foo = TMR1L;
bar = TMR1H;
And written as: 并写为:
TMR1H = bar;
TMR1L = foo;
Unless I'm just not seeing it, RD16 is not shown in the Timer1 block diagram, and seems to have no effect on anything whatsoever! 除非我只是看不到它,否则Timer16框图中未显示RD16,并且RD16似乎对任何东西都没有影响!
I know that can't be true, however, so here I am, asking: What does the Timer1 RD16 bit do on PIC18 microcontrollers? 我知道那不可能成立,所以我在这里问:PIC18单片机上的Timer1 RD16位有什么作用?
It's buffered internally. 它在内部被缓冲。 When set, then a read on the TMR1L register causes the actual 16 bit value to be buffered.
置1时,对TMR1L寄存器的读取将导致实际的16位值被缓冲。 TMR1L/H points to the buffer, not the timer.
TMR1L / H指向缓冲区,而不是定时器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.