AnsweredAssumed Answered

twrk60n512, adc0- and adc1- Module

Question asked by Thomas Hülsmann on Apr 29, 2013
Latest reply on Apr 29, 2013 by Thomas Hülsmann

Hi,

 

based on the "security_webserver"- example in MQX 4.0 I'm trying to extend the application to the use of both "adc0" and "adc1". The twrk60n512.h- file only is dealing with "adc1". See below:

 

#define BSP_LCD_X_PLUS_ADC_CHANNEL  (ADC1_SOURCE_AD10) !!!!!!!!!!!!!

 

#define BSP_LCD_Y_PLUS_ADC_CHANNEL  (ADC1_SOURCE_AD13) !!!!!!!!!!!!!

 

/* ADC tchres device init struct */

#define BSP_TCHRES_ADC_DEVICE "adc1:"   !!!!!!!!!!!!!!!!!!!

#define BSP_TCHRES_X_TRIGGER ADC_PDB_TRIGGER

#define BSP_TCHRES_Y_TRIGGER ADC_PDB_TRIGGER

 

/*-----------------------------------------------------------------------------

**                      ADC

*/

#define ADC_MAX_MODULES                 (2)

 

#define BSP_ADC_CH_POT                  (ADC1_SOURCE_AD20) !!!!!!!!!!!!!

 

#define BSP_ADC0_VECTOR_PRIORITY        (3)

#define BSP_ADC1_VECTOR_PRIORITY        (3)

 

#define BSP_PDB_VECTOR_PRIORITY         (3)

 

/*-----------------------------------------------------------------------------


Does anybody know, what, where and how I have to extend mqx to make the adc0 modul work as well?

 

Thanks in advance for any idea or help.

 

Thomas

Outcomes