aduc7026.h header file doubts
Dear Sir,
I am using full version CrossStudio for ARM Release-1.7, Build 20 for ADuC7026 Evaluation Board of Analog Devices. I could compile and run a few programs such as ADC, UART, PWM, Timer, etc without any problem. But when I tried I2C program, it is not going through. I have noticed a few points in the aduc7026.h header file which I have mentioned below
1) Registers such as I2C0CFG & I2C1CFG are defined as
#define I2C0CFG (*(volatile unsigned char *)0xFFFF082C)
#define I2C1CFG (*(volatile unsigned char *)0xFFFF092C)
But these registers are of 32bits. I could not assign any value to the higher bits(such as bit11) if we define these as char. Can I modify it and define as int
2) In I2C0MSTA register, the bit definition for Mater_Transmit_IRQ & Master_Receice_IRQ are not according to the ADuC7026 datasheet.
Please let me know how I shall go about it. My work got held up & I am not able to locate the problem. Kindly help me in this regard
Thanking you
Amit Biradar
Post is closed for comments.
Comments
1 comment