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

PFS122-1J16A 参数 Datasheet PDF下载

PFS122-1J16A图片预览
型号: PFS122-1J16A
PDF下载: 下载PDF文件 查看货源
内容描述: [8bit MTP Type MCU with 12-bit R-Type ADC]
分类和应用:
文件页数/大小: 93 页 / 1946 K
品牌: PADAUK [ PADAUK Technology ]
 浏览型号PFS122-1J16A的Datasheet PDF文件第78页浏览型号PFS122-1J16A的Datasheet PDF文件第79页浏览型号PFS122-1J16A的Datasheet PDF文件第80页浏览型号PFS122-1J16A的Datasheet PDF文件第81页浏览型号PFS122-1J16A的Datasheet PDF文件第83页浏览型号PFS122-1J16A的Datasheet PDF文件第84页浏览型号PFS122-1J16A的Datasheet PDF文件第85页浏览型号PFS122-1J16A的Datasheet PDF文件第86页  
PFS122  
8bit MTP MCU with 12-bit R-Type ADC  
7.5. Bit Operation Instructions  
set0 IO.n  
set1 IO.n  
swapc IO.n  
Set bit n of IO port to low  
Example: set0 pa.5 ;  
Result: set bit 5 of port A to low  
Affected flags: NZ NC NAC NOV  
Set bit n of IO port to high  
Example: set1 pb.5 ;  
Result: set bit 5 of port B to high  
Affected flags: NZ NC NAC NOV  
Swap the nth bit of IO port with carry bit  
Example: swapc  
IO.0;  
Result: C ← IO.0 , IO.0 ← C  
When IO.0 is a port to output pin, carry C will be sent to IO.0;  
When IO.0 is a port from input pin, IO.0 will be sent to carry C;  
Affected flags: NZ YC NAC NOV  
Application Example1 (serial output) :  
------------------------------------------------------------------------------------------------------------------------  
...  
set1  
...  
pac.0 ;  
// set PA.0 as output  
set0  
swapc  
set1  
swapc  
...  
flag.1 ;  
pa.0 ;  
// C=0  
// move C to PA.0 (bit operation), PA.0=0  
// C=1  
flag.1 ;  
pa.0 ;  
// move C to PA.0 (bit operation), PA.0=1  
------------------------------------------------------------------------------------------------------------------------  
Application Example2 (serial input) :  
------------------------------------------------------------------------------------------------------------------------  
...  
set0  
...  
pac.0 ;  
// set PA.0 as input  
swapc  
src  
pa.0 ;  
a ;  
// read PA.0 to C (bit operation)  
// shift C to bit 7 of ACC  
swapc  
src  
pa.0 ;  
a ;  
// read PA.0 to C (bit operation)  
// shift new C to bit 7, old C  
...  
------------------------------------------------------------------------------------------------------------------------  
Set bit n of memory to low  
set0 M.n  
set1 M.n  
Example: set0 MEM.5 ;  
Result: set bit 5 of MEM to low  
Affected flags: NZ NC NAC NOV  
Set bit n of memory to high  
Example: set1 MEM.5 ;  
Result: set bit 5 of MEM to high  
Affected flags: NZ NC NAC NOV  
©Copyright 2020, PADAUK Technology Co. Ltd  
Page 82 of 93  
PDK-DS-PFS122-EN_V000-May 28, 2020  
 
 复制成功!