AnsweredAssumed Answered

I am working with MM912J637 ibs. But I am not able to read the value that is the result of voltage conversion.

Question asked by Mrunal Joshi on Apr 2, 2015
Latest reply on Apr 7, 2015 by ZhangJennie

How do i read the value ? heres the code snippet;


void main(void) {

  /* put your own code here */

// int a;                                                                  //

volatile B_ACQ_VOLTSTR abcd;

volatile word read ;

abcd = _B_ACQ_VOLT ;



the sfr ACQ_VOLT has been defined as a union of type word , named ACQ_VOLTSTR like this :

/*** B_ACQ_VOLT - Voltage measurement result; 0x0000026C ***/

typedef union {

  word Word;


extern volatile B_ACQ_VOLTSTR _B_ACQ_VOLT @(REG_BASE + 0x0000026CUL);

#define B_ACQ_VOLT                      _B_ACQ_VOLT.Word




Can someone please help? Thank you.