Other Parts Discussed in Thread: HALCOGEN
would like to read the ADC1 Group1 – one channel configured to it, ADC2 Group2 – one channel configured to it.
The values configured in HALCOGEN are FIFO size =0 as we don’t need Buffer, the value BNDB=1 , which is the minimum. SO a RAM size of 2 will be set.
I have defined macros like this,
#define adc1Group1_ReadFirst (*(volatile uint32 *)0xFF3E0000U)
#define adc1Group1_ReadSecond (*(volatile uint32 *)0xFF3E0004U)
#define adc1Group2_ReadFirst (*(volatile uint32 *)0xFF3A0000U)
#define adc1Group2_ReadSecond (*(volatile uint32 *)0xFF3A0004U)
#define adc1Group1FLAG (*(volatile uint32 *)0xFFF7C038U)
#define adc2Group1FLAG (*(volatile uint32 *)0xFFF7C238U)
In the application I can read the RAM address alternately each cycle, that is working ok from Application side.
I am setting the values of adc1Group1FLAG|=0x09U;, adc2Group1FLAG|=0x09U once a value is read from RAM.
The issues is I can get the values from RAM only two times from start of the code ( I think this is because the RAM SIZE of 2 is set with BNDB=1). After that there is no latest value available at 0xFF3E0000, 0xFF3E0004U, 0xFF3A0000U and 0xFF3A0004U.
The 0xFFF7C038U, 0xFFF7C238U are set to 0xA once the two cycles from start of the code are over.
The Halcogen project and dil attached for your reference.
Thanks
Sachin