Adc conversion hudge problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Initial info:

   

. ADC scanns 4 channels, one with single range detect, 2 with dif mode

   

.conversion triggered by software (ADC_startConv...) 4 sample averaging on all channels

   

.between conversions flash is written using API (EEPROM_WRITE..) into a single buffer ( interrupts not disabled)

   

.when entering intr read ADCSAR_SAR_INTR_REG, and written reg at the end

   

After few minutes of adc performace triggering interrups ( I can chatch this point) the interrupts stop firing anymore. reset is required and story repeats.

   

Conversion trigger bit is never cleared (acc. to TRM should be cleared by hardware). intr vector table is not modified during run.

   

I'm already contacting support case, but does not move thing forward.

   

Any ideas?

   

bob

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Just to make sure:

   

Are you using Creator 3.0 SP 7 and emulated EEProm version 1.10 (the former version had a bug)

   

 

   

Bob

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Oh, forgotten:

   

When possible, will you please create a Workspace Bundle and upload the project here, so that we all can have a look at or even reproduce the error.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This is a longshot, any variables modified in ISR not declared as volatile ?

   

 

   

Some additional info on volatile -

   

 

   

 

   

http://en.wikipedia.org/wiki/Volatile_variable

   

 http://www.barrgroup.com/Embedded-Systems/How-To/C-Volatile-Keyword

   

 

   

Regards, Dana.

0 Likes