智能车制作

标题: k60 100脚不带z版使用***的库lptmr 不能用,怎么办? [打印本页]

作者: iderbao    时间: 2014-4-27 23:16
标题: k60 100脚不带z版使用***的库lptmr 不能用,怎么办?
k60 100脚不带z版使用***的库lptmr 不能用,怎么办?
作者: 恋May    时间: 2014-4-28 12:46

作者: 醒世恒言    时间: 2014-4-28 13:52
本帖最后由 醒世恒言 于 2014-4-28 13:56 编辑
恋May 发表于 2014-4-28 12:46

详情垂询
Low-power timer (LPTMR)
4.6.1 Impacted register
LPTMR_CNR
4.6.2 Features
The LPTMR has been updated to always ensure valid data when reading the LPTMR_CNR value.
4.6.3 Software impact
On each read of the LPTMR counter register, software must first write to the LPTMR counter register with any value. This
will synchronize and register the current value of the LPTMR counter register into a temporary register. The contents of the
temporary register are returned on each read of the LPTMR counter register.
4.6.4 Hardware impact
No hardware changes are required in order to execute existing code from Rev 1.x on Rev 2.x.
Universal asynchronous receiver/transmitters (UART)
4.7.1 Memory map comparison
There are a number of new registers added to the UART0 memory map to support new CEA709.1-B (LON) features. The
new features and control of those features are all implemented as additions to the memory map, so previously existing
registers and bits are unchanged.
The table below shows the memory map differences between revision 1.x devices and revision 2.x devices.
Table 11. Memory map comparison
Location Rev. 1.x devices Rev. 2.x devices
0x4006A021 N/A UART CEA709.1-B Control Register 6
(UART0_C6)
0x4006A022 N/A UART CEA709.1-B Packet Cycle Time
Counter High (UART0_PCTH)
0x4006A023 N/A UART CEA709.1-B Packet Cycle Time
Counter Low (UART0_PCTL)
0x4006A024 N/A UART CEA709.1-B Beta1 Timer
(UART0_B1T)
Table continues on the next page...


作者: 1249844726    时间: 2014-9-19 20:36
醒世恒言 发表于 2014-4-28 13:52
详情垂询
Low-power timer (LPTMR)
4.6.1 Impacted register

神马个意思?
作者: Tracy.小麦    时间: 2015-4-26 14:50
刚刚遇到了这个问题,后发现:On each read of the LPTMR counter register, software must first write to the LPTMR counter register with any value.
只要给其赋一个初始值就可以了:lol
作者: 灰帽子理工男    时间: 2015-4-27 22:19
Tracy.小麦 发表于 2015-4-26 14:50
刚刚遇到了这个问题,后发现:On each read of the LPTMR counter register, software must first write to ...

怎么赋值呢?求解

作者: Tracy.小麦    时间: 2015-4-28 12:19
灰帽子理工男 发表于 2015-4-27 22:19
怎么赋值呢?求解

给LPTMR_CNR赋个初始值

作者: 灰帽子理工男    时间: 2015-4-28 12:49
Tracy.小麦 发表于 2015-4-28 12:19
给LPTMR_CNR赋个初始值

在初始化LPT模块的时候吗?

作者: Tracy.小麦    时间: 2015-4-28 13:11
灰帽子理工男 发表于 2015-4-28 12:49
在初始化LPT模块的时候吗?

我只用了lptmr的计数模块,在调用的时候进行赋值





欢迎光临 智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2