Hello, I am using the DAC60096 on a board design, to be used with an ARM based controller. I was wondering if I could get a header file for the DAC.
Thanks,
Andrew
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I am using the DAC60096 on a board design, to be used with an ARM based controller. I was wondering if I could get a header file for the DAC.
Thanks,
Andrew
Hi Andrew,
Generally we do not provide sample code as our devices are, for the most part, very MCU peripheral-friendly and as such do not really require anything special to bring up. The closest we get to sample code, recently, is providing header files which contain register address and bit-field definitions to help avoid easy mistakes. We haven't done this for DAC60096 yet.
If you need help with configuring this device, I can help you with that.
Regards,
AK
AK,
Yes, I was wondering if the header file with register addresses and bit-field definitions could be made?
Best,
Andrew
HI Andrew,
I can try and write pseudo code header files for you if that helps.
I am not so good in software implementation with ARM based controllers.
Regards,
AK
AK,
It's not super relevant that they are for an ARM-based controller. Whatever would be standard for a general C/C++ application would be awesome. I appreciate it a lot.
Best,
Andrew
Hi Andrew,
In that case, I will write a pseudo code header files for you. May I know whats the configuration you are looking for ?
Regards,
AK
AK,
I'm not entirely sure what you mean by "configuration", and if you could expand on that, I might be able to provide a better explanation. However, the use of the chip needs to be adaptable and I will be using essentially all the functionality that the chip provides.
Thanks,
Andrew
Hi Andrew,
If you are looking for a full driver code to utilize entire device modes and configuration, I may not be able to provide the same immediately as it takes time to write the same.
Regards,
AK
AK,
If I could get just the header file with the necessary register addresses for its most basic form of operation (i.e. simply writing to all the DAC registers), I'm sure I can expand that to fit my needs adding on more modes of operation as I go. Just the basic stuff would greatly simplify things. Thank you for your time.
Best,
Andrew
Hi Andrew,
Please find the pseudo code.
// Config DAC// WRITE_GENERAL_CONFIG (0x04,0x1591) // LDAC enabled and all others in default state //Config subsytem and PTR // // Device has grouped into 4 subystem, //each substem has 24 DAC outputs which is grouped as 1&2 for subsystem 1, //3&4 for subystem 2, 5&6 for subsytem 3, 7&8 for subsystem 4// // Select subystem 1 & DACPTR for slecting DAC ( out of 24)// WRITE_PTR_CONFIG (0x06, 0x000) // this will select DAC 0 in subystem 1 // Now write DAC data into BUF A register// am writing FFFF WRITE_DAC_DATA (0x00,FFF) // Similar manner you can write into other subsystems as well// WRITE_PTR_CONFIG (0x06, 0x0001) // this will select DAC 1 in subystem 1 WRITE_DAC_DATA (0x00,FFF), WRITE_PTR_CONFIG (0x06, 0x0002) // this will select DAC 2 in subystem 1 WRITE_DAC_DATA (0x00,FFF)
Regards,
AK
AK,
I was looking through the datasheet and (per section 7.6.1) I came to the conclusion that in order to enable LDAC and configure others to default I would have to write something like:
WRITE_GENERAL_CONFIG (0x04, 0x8555)
I noticed that this was different than your configuration and I was wondering if you wouldn't mind double-checking just to make sure I didn't make a mistake. Thanks.
Best,
Andrew
Hi Andrew,
Some copy paste mistake.. It should be 0x8555.
Thanks for bringing this to notice.
Regards,
AK