- Name:
- readdac10
- Syntax:
-
READDAC10 wordvariable
Variable - is a word variable to receive the DAC value
- Description:
-
Read the DAC value into variable (10 bit resolution). The readdac command reads the current DAC level, which must have been already setup via dacsetup and daclevel commands. It can be considered as 'readadc10 on the DAC voltage level'.
Read DAC output level
Read the 10-bit DAC output level and report the result
- Code Example:
-
main: readdac10 w1 ; read DAC level into w1 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.