- Name:
- readdac
- Syntax:
-
READDAC variable
Variable - is a byte variable to receive the DAC value
- Description:
-
Read the DAC value into variable. The readdac command reads the current DAC level, which must have been already setup via dacsetup and daclevel commands. It can be considered as 'readadc on the DAC voltage level'.
Read DAC output level
Read the DAC output level and report the result
- Code Example:
-
main: readdac b1 ; read DAC level into b1 debug ; report the result goto main ; and repeat
Copy Code Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.