⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ibercomp.bas

📁 82 sample programs written in BASCOM-8051 for 8051 developement
💻 BAS
字号:
'------------------------------------------------------------
'                   (c) 2000 MCS Electronics
' This example shows how to include some ASM code
'The DAC on the 537 board of Ibercomp serves as an example
'------------------------------------------------------------
'first tell the compiler about the ASM routine in the LIB
'The routine is located in the MCS.LIB file in the \LIB dir.
$external _dac_537


Dim Channel As Byte , Value As Byte

Channel = 0
Value = 1                                                     '1Volt
mov b,{value}       'load value
mov a,{channel}     'load channel
lCall _dac_537      'call ASM routine
End



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -