欢迎访问ic37.com |
会员登录 免费注册
发布采购

EM78P418NP 参数 Datasheet PDF下载

EM78P418NP图片预览
型号: EM78P418NP
PDF下载: 下载PDF文件 查看货源
内容描述: 8位OTP微 [8-Bit Microprocessor with OTP ROM]
分类和应用: OTP只读存储器
文件页数/大小: 84 页 / 2325 K
品牌: ELAN [ ELAN MICROELECTRONICS CORP ]
 浏览型号EM78P418NP的Datasheet PDF文件第50页浏览型号EM78P418NP的Datasheet PDF文件第51页浏览型号EM78P418NP的Datasheet PDF文件第52页浏览型号EM78P418NP的Datasheet PDF文件第53页浏览型号EM78P418NP的Datasheet PDF文件第55页浏览型号EM78P418NP的Datasheet PDF文件第56页浏览型号EM78P418NP的Datasheet PDF文件第57页浏览型号EM78P418NP的Datasheet PDF文件第58页  
EM78P417N/418N/419N  
8-Bit Microprocessor with OTP ROM  
3. Set the ADWE bit, if the wake-up function is employed  
4. Set the ADIE bit, if the interrupt function is employed  
5. Write “ENI” instruction, if the interrupt function is employed  
6. Set the ADRUN bit to 1  
7. Write “SLEP” instruction or Polling.  
8. Wait for wake-up or for ADRUN bit to be cleared (“0” value)  
9. Read the ADDATA or ADDATA1H and ADDATA1L conversion data registers. If  
ADC input channel changes at this time, the ADDATA, ADDATA1H, and  
ADDATA1L values can be cleared to ‘0’.  
10. Clear the interrupt flag bit (ADIF).  
11. For next conversion, go to Step 1 or Step 2 as required. At least 2 Tct is required  
before the next acquisition starts.  
NOTE  
In order to obtain accurate values, it is necessary to avoid any data transition on I/O  
pins during AD conversion  
6.7.6.2 Sample Demo Programs  
A. Define a General Registers  
R_0 == 0  
PSW == 3  
PORT5 == 5  
PORT6 == 6  
RE== 0XE  
RF== 0XF  
; Indirect addressing register  
; Status register  
; Wake-up control resister  
; Interrupt status register  
B. Define a Control Register  
IOC50 == 0X5  
IOC60 == 0X6  
C_INT== 0XF  
; Control Register of Port 5  
; Control Register of Port 6  
; Interrupt Control Register  
C. ADC Control Register  
ADDATA == 0xB  
AISR == 0x08  
ADCON == 0x9  
; The contents are the results of ADC  
; ADC Input select register  
;
7
6
5
4
3
2
1
0
;VREFS CKR1 CKR0 ADRUN ADPD ADIS2 ADIS1 ADIS0  
D. Define Bits in ADCON  
ADRUN == 0x4  
ADPD == 0x3  
; ADC is executed as the bit is set  
; Power Mode of ADC  
48 •  
Product Specification (V1.0) 06.23.2005  
(This specification is subject to change without further notice)  
 复制成功!