Other Parts Discussed in Thread: LM339
I created the Initial code with the pin Mux tool.
I need the analog comparator 0-2. But this comparator definition I cannot be find in the file pin_map.h. I use TivaWare_C_Series-2.1.0.12573.
The Pin Mux Tool create this code:
//
// Enable pin PC7 for COMP0 C0-
//
MAP_GPIOPinConfigure(GPIO_PC7_C0-);
MAP_GPIOPinTypeComparator(GPIO_PORTC_BASE, GPIO_PIN_7);
//
// Enable pin PL2 for COMP0 C0O
//
MAP_GPIOPinConfigure(GPIO_PL2_C0O);
MAP_GPIOPinTypeComparator(GPIO_PORTL_BASE, GPIO_PIN_2);
//
// Enable pin PC6 for COMP0 C0+
//
MAP_GPIOPinConfigure(GPIO_PC6_C0+);
MAP_GPIOPinTypeComparator(GPIO_PORTC_BASE, GPIO_PIN_6);
//
// Enable pin PL3 for COMP1 C1O
//
MAP_GPIOPinConfigure(GPIO_PL3_C1O);
MAP_GPIOPinTypeComparator(GPIO_PORTL_BASE, GPIO_PIN_3);
//
// Enable pin PC4 for COMP1 C1-
//
MAP_GPIOPinConfigure(GPIO_PC4_C1-);
MAP_GPIOPinTypeComparator(GPIO_PORTC_BASE, GPIO_PIN_4);
//
// Enable pin PC5 for COMP1 C1+
//
MAP_GPIOPinConfigure(GPIO_PC5_C1+);
MAP_GPIOPinTypeComparator(GPIO_PORTC_BASE, GPIO_PIN_5);
//
// Enable pin PP0 for COMP2 C2+
//
MAP_GPIOPinConfigure(GPIO_PP0_C2+);
MAP_GPIOPinTypeComparator(GPIO_PORTP_BASE, GPIO_PIN_0);
//
// Enable pin PP1 for COMP2 C2-
//
MAP_GPIOPinConfigure(GPIO_PP1_C2-);
MAP_GPIOPinTypeComparator(GPIO_PORTP_BASE, GPIO_PIN_1);
//
// Enable pin PD2 for COMP2 C2O
//
MAP_GPIOPinConfigure(GPIO_PD2_C2O);
MAP_GPIOPinTypeComparator(GPIO_PORTD_BASE, GPIO_PIN_2);
In the pin_map.h I find only this settings for my uP:
#define GPIO_PC4_U7RX 0x00021001
#define GPIO_PC4_T7CCP0 0x00021003
#define GPIO_PC4_EPI0S7 0x0002100F
#define GPIO_PC5_U7TX 0x00021401
#define GPIO_PC5_T7CCP1 0x00021403
#define GPIO_PC5_RTCCLK 0x00021407
#define GPIO_PC5_EPI0S6 0x0002140F
#define GPIO_PC6_U5RX 0x00021801
#define GPIO_PC6_EPI0S5 0x0002180F
#define GPIO_PC7_U5TX 0x00021C01
#define GPIO_PC7_EPI0S4 0x00021C0F
The problem are only the comparator Inputs. Comparator outputs are defined in pin_map.h.
Where is the problem? Do I have to write the specification myself or is there another problem somewhere?
Hope somebody has an answer or a hint how to do it.
Best regards
Franz