A Metered Response
The PSoC 4 has two Current DACs (IDACs) each with slightly different specifications.
The component datasheet has all of the relevant information but suffice it to say that up to 612uA can be generated.
I put the the 8-bit IDAC to the test really quickly by connecting up an mechanical milliammeter.
All you have to do is;
- Place the IDAC of your choice on a schematic
- Set up the initial IDAC value in the IDAC component's property box.
- Connect an Analog Output Pin to the IDAC.
- Assign a physical output pin for the Analog Output pin
- Edit main.c and call IDAC_Start() function.
From this point on in your code you can set the IDAC value using the IDAC_SetValue() API.
To run;
- Build and compile.
- Connect up a milliammeter (or suitably ranged microammeter)
- Debug and run
If you have any questions on this please don't hesitate to leave a comment.
