Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

XMC 4700 PORT 15 Output Problems

$
0
0
Hello I have got a Problem,

I will declare Ports as Output.

For example Port 5 works but on Port 15 it doesn’t work. I think I forgot a Register. Can somebody help me?



#define SETUPPAGE_2 (11UL)

volatile uint32_t *_Port_IOCR;
volatile uint32_t *_Port_OMR;

#define OUTPUT_PUSHPULL (0x10UL)
#define _Bit (9)




int main (void)

{

//GPIO DB1(5,8,OUTPUT_PUSHPULL);



_Port_OMR = &(PORT5->OMR);
_Port_IOCR = &(PORT5->IOCR8);


*_Port_IOCR &= ~(0x1FUL << SETUPPAGE_2);
*_Port_IOCR |= ((OUTPUT_PUSHPULL & 0x1FUL) << SETUPPAGE_2);


void timing_delay(void);




while (1)
{


*_Port_OMR |= (1<<_Bit);


} // while schleife

} //main schleife

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>