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的更多相关文章

  1. Memcached source code analysis (threading model)--reference

    Look under the start memcahced threading process memcached multi-threaded mainly by instantiating mu ...

  2. 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 ...

  3. 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 ...

  4. Apache Commons Pool2 源码分析 | Apache Commons Pool2 Source Code Analysis

    Apache Commons Pool实现了对象池的功能.定义了对象的生成.销毁.激活.钝化等操作及其状态转换,并提供几个默认的对象池实现.在讲述其实现原理前,先提一下其中有几个重要的对象: Pool ...

  5. Redis source code analysis

    http://zhangtielei.com/posts/blog-redis-dict.html http://zhangtielei.com/assets/photos_redis/redis_d ...

  6. linux kernel & source code analysis& hacking

    https://kernelnewbies.org/ http://www.tldp.org/LDP/lki/index.html https://kernelnewbies.org/ML https ...

  7. 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- ...

  8. 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 ...

  9. Top 40 Static Code Analysis Tools

    https://www.softwaretestinghelp.com/tools/top-40-static-code-analysis-tools/ In this article, I have ...

随机推荐

  1. python之开篇---hello world!

    (1)前沿 (2)python 简介 (3)python hello world 实现 (4) -------------qq:1327706646 ------------------------- ...

  2. shiro 实现自己定义权限规则校验

    <span style="font-family: Arial, Helvetica, sans-serif;">在系统中使用shiro进行权限管理,当用户訪问没有权限 ...

  3. GoogleMap-------API KEY申请流程

    前言:此文是关于Google Maps Android API v2 KEY的申请流程介绍. 1.首先访问https://code.google.com/apis/console/?pli=1#pro ...

  4. Java常用代码工具类相关

    1.HttpServletRequest转换成Map public static Map<String,String> parseXML(HttpServletRequest reques ...

  5. 不使用库函数,编写函数int strcmp(char *source, char *dest) 相等返回0,不等返回-1;

    答案:一. int strcmp(char  *source, char *dest) { /* assert的作用是现计算表达式 expression ,如果其值为假(即为0),那么它先向stder ...

  6. Java基础 - 变量的定义和使用

    变量定义 public class Main { public static void main(String[] args) { // 定义byte类型的变量 byte b = 10; System ...

  7. Delphi 64与32位的差异

    Delphi 64与32位的差异   最近,Delphi推出了64位预览版本, 我做为一个忠实的Delphier, 看到这消息后,第一时间学习,并写下这个做为以后的参考资料. 相同点: 在Delphi ...

  8. Linux踢出已登录用户

    1.使用w命令可以查看当前登录系统的所有用户 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 08:05 4:29 0.09s 0.09s - ...

  9. [转载]Java web应用中的常见字符编码问题的解决方法

    以下是 Java web应用的常见编码问题 1. html页面的编码 在web应用中,通常浏览器会根据http header: Content-type的值来决定用什么encoding, 比如遇到Co ...

  10. eclipse svn 分支合并到主干

    最近公司产品上线,整个系统架构包含有七八个子系统,并且子系统都是集群部署.所以每次升级维护都要确保尽可能不出问题.因为整个系统刚上线不久,意味着新系统不定期有BUG需修复,但新功能模块也在持续的开发中 ...