Post Go back to editing

ADM106x Headerfile

Hello

I´ve to program a ADM1062 for a project.

And now my idea was to write a headerfile thats offer me the possibility to write something like

VP1.PS1OVTH = 0;

VP1.SFDV1CFG = 10US;

Has someone allready made a headerfile with this definesor something similar. I don´t want to write 100 or more macros.

Thanks in advance

René

Parents
  • Hi René,

    So if i understand it correctly, the long trace/wire would case ground offset on your monitoring inputs and the setup can change so you don't know the exact boundary of the input supply before powering the board up?

    If that is the case then you may need to use the micro to configure the RAM of the ADM1062 after powering up then. You can widen the limits on default power up (stored in EEPROM) and narrow it after you have the reading.

    I don't have any macro code that would allow you change the threshold values on the run, but it shouldn't be too hard. everything else (hysteresis, glitch filter, sequencing engine etc) should be configured beforehand in EEPROM and after power up all micro need is to change the threshold values of each inputs.

    The register addresses for input threshold are documented in

    http://www.analog.com/static/imported-files/application_notes/AN-698.pdf

    http://www.analog.com/static/imported-files/application_notes/AN-698.pdfyou should only need to write two bytes (UV and OV) of data for every input you want to adjust. 

    Ren

Reply
  • Hi René,

    So if i understand it correctly, the long trace/wire would case ground offset on your monitoring inputs and the setup can change so you don't know the exact boundary of the input supply before powering the board up?

    If that is the case then you may need to use the micro to configure the RAM of the ADM1062 after powering up then. You can widen the limits on default power up (stored in EEPROM) and narrow it after you have the reading.

    I don't have any macro code that would allow you change the threshold values on the run, but it shouldn't be too hard. everything else (hysteresis, glitch filter, sequencing engine etc) should be configured beforehand in EEPROM and after power up all micro need is to change the threshold values of each inputs.

    The register addresses for input threshold are documented in

    http://www.analog.com/static/imported-files/application_notes/AN-698.pdf

    http://www.analog.com/static/imported-files/application_notes/AN-698.pdfyou should only need to write two bytes (UV and OV) of data for every input you want to adjust. 

    Ren

Children
No Data