infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: XMC 4700 PORT 15 Output Problems

  1. #1
    New Member New Member sandro is on a distinguished road
    Join Date
    May 2018
    Posts
    1
    Points
    30

    XMC 4700 PORT 15 Output Problems

    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

  2. #2
    Intermediate Intermediate frankvh2 is on a distinguished road
    Join Date
    Jan 2018
    Posts
    21
    Points
    325
    Check the PDISC register

  3. #3
    Beginner Beginner Alberto-g is on a distinguished road
    Join Date
    Oct 2017
    Posts
    15
    Points
    147.5
    Ports 14 and 15 can be used only for analog and digital input, no output. I guess it is because they are shared with the ADC.
    Unfortunately the pin placement tool tries as hard as it can to hide information from you.
    Last edited by Alberto-g; May 17th, 2018 at 11:57 PM.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.