2018.6.21 HOLTEK HT49R70A-1 Source Code analysis
Cange note:

“Reading TMR1H will latch the contents of TMR1H and TMR1L counter to the destination”? For example < MOV a,TMR1H >, but accumulator only 8-bit, how can latch TMR1H and TMR1L
Read_Temp:
IFNDEF RELEASE_VERSION
mov a,lastram
mov temperature,a ;store calculated temperatur (table pos.)
ret
ENDIF
snz flag3.f_read_temp
;jmp read_temp_end
ret ;V05_Joey clr flag3.f_read_temp
mov a,4
mov temploop,a
clr ntcl
clr ntch
loop_ntc:
clr EMI ;disable all interrupts set outa.RV ;set all I/Os in normal pos
set outa.NTC
clr outa.TR
set outa.RS
mov a,outa
mov PA,a call delay_100us ;time to discharge cap
clr TMR1
clr TMR0
set TMR1C.4 ;enable TMR1
set TMR0C.4 ;enable TMR0 clr outa.NTC ;now test NTC time
set outa.TR
mov a,outa
mov PA,a nop
nop
wait_AD_NTC:
sz PA.Rs ;
jmp wait_AD_NTC
clr TMR0C.4 ;disable TMR0
clr TMR1C.4 ;disable TMR1 set outa.NTC ;discarge cap
clr outa.TR
mov a,outa
mov PA,a mov a,TMR0
addm a,ntcl
mov a,TMR1
adcm a,ntch
dec temploop
snz z
jmp loop_ntc
clr c
rrc ntch
rrc ntcl ;NTC / 2
clr c
rrc ntch
rrc ntcl ;NTC / 4



2018.6.21 HOLTEK HT49R70A-1 Source Code analysis的更多相关文章
- Memcached source code analysis (threading model)--reference
Look under the start memcahced threading process memcached multi-threaded mainly by instantiating mu ...
- Golang Template source code analysis(Parse)
This blog was written at go 1.3.1 version. We know that we use template thought by followed way: fun ...
- Memcached source code analysis -- Analysis of change of state--reference
This article mainly introduces the process of Memcached, libevent structure of the main thread and w ...
- Apache Commons Pool2 源码分析 | Apache Commons Pool2 Source Code Analysis
Apache Commons Pool实现了对象池的功能.定义了对象的生成.销毁.激活.钝化等操作及其状态转换,并提供几个默认的对象池实现.在讲述其实现原理前,先提一下其中有几个重要的对象: Pool ...
- Redis source code analysis
http://zhangtielei.com/posts/blog-redis-dict.html http://zhangtielei.com/assets/photos_redis/redis_d ...
- linux kernel & source code analysis& hacking
https://kernelnewbies.org/ http://www.tldp.org/LDP/lki/index.html https://kernelnewbies.org/ML https ...
- The Ultimate List of Open Source Static Code Analysis Security Tools
https://www.checkmarx.com/2014/11/13/the-ultimate-list-of-open-source-static-code-analysis-security- ...
- Source Code Reading for Vue 3: How does `hasChanged` work?
Hey, guys! The next generation of Vue has released already. There are not only the brand new composi ...
- Top 40 Static Code Analysis Tools
https://www.softwaretestinghelp.com/tools/top-40-static-code-analysis-tools/ In this article, I have ...
随机推荐
- CentOS 没有可用软件包 libmcrypt
[1]安装libmcrypt 提示:没有可用软件包 解决办法: 1.安装第三方yum源 1.1 wget http://www.atomicorp.com/installers/atomic 1.2 ...
- python pytest
之前一直用unittest ,现在学习pytest 看看那个好 1. 安装 pip install -U pytest py.test --version 2. 只需要按照下面的规则: 测试文件以te ...
- XSD文件详解
XSD (xml Schema Definition) Xml Schema的用途 1. 定义一个Xml文档中都有什么元素 2. 定义一个Xml文档中都会有什么属性 3. 定义某个节点的都有什么 ...
- jquery插件2
1.很全,好用的jquery插件库:http://www.jq22.com/ 2.素材:http://www.sucaijiayuan.com/ 3.不错:http://www.helloweba.c ...
- Python菜鸟之路:Python基础-模块
什么是模块? 在计算机程序的开发过程中,随着程序代码越写越多,在一个文件里代码就会越来越长,越来越不容易维护.为了编写可维护的代码,我们把很多函数分组,分别放到不同的文件里,分组的规则就是把实现了某个 ...
- ASP向上取整
<%Function Ceil(value) Dim return return = int(value) Cei2=value-return if Cei2>0 ...
- vue表单输入的绑定
vue的核心:声明式的指令和数据的双向绑定. 那么声明式的指令,已经给大家介绍完了.接下来我们来研究一下什么是数据的双向绑定? 另外,大家一定要知道vue的设计模式:MVVM M是Model的简写,V ...
- ABAP服务器文件操作
转自http://blog.itpub.net/547380/viewspace-876667/ 在程序设计开发过程中,很多要对文件进行操作,这又分为对本地文件操作和服务器文件操作.对本地文件操作使用 ...
- 保护眼睛,win7家庭版如何修改窗口的背景颜色
win7的窗口背景色为白色,长时间使用电脑对眼睛的刺激比较大,为了保护眼睛建议改成浅灰色或者淡绿.淡黄色等,可是win7的家庭版里没有[个性化]菜单,那么我们如何修改呢? 首先在[开始]处找到[控制面 ...
- CSS选择器(三)
九.CSS 伪类 (Pseudo-classes) CSS 伪类用于向某些选择器添加特殊的效果. CSS 伪类 (Pseudo-classes)实例: 1.向文档中的超链接添加不同的颜色. <s ...