标题:
松翰SN8P2758单片机设置128阶电流型模拟信号输出源程序
[打印本页]
作者:
huaxing
时间:
2019-10-22 17:18
标题:
松翰SN8P2758单片机设置128阶电流型模拟信号输出源程序
功能代码 设置128阶电流型模拟信号输出 汇编和C两种代码
chip sn8p2758
.data
.code
org 00h
jmp main
org 10h
//============================================================================
// DAC
//============================================================================
main:
mov a,#01111111b // Setting value as 0xxxxxxxb -->0~127
b0mov dam,a // Set DAB to a half of the full scale.
b0bset fdaenb // Enable D/A function
//============================================================================
//
// User code
//
//============================================================================
jmp main
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1