element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Infineon
  • Products
  • Manufacturers
  • Infineon
  • More
  • Cancel
Infineon
Forum Infineon Dave IDE - Ethercat Dev Kit V2.00 userbuttons in code
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Infineon to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 21 subscribers
  • Views 575 views
  • Users 0 members are here
  • dave_ide
  • ethercat-dev-kit-v2.00
Related

Infineon Dave IDE - Ethercat Dev Kit V2.00 userbuttons in code

daemoninformatica
daemoninformatica over 4 years ago

Greetings,

 

As I was selected to Roadtest the Infineon Optiga Trust M product, I'm currently in the process of writing, adapting and otherwise messing around with examples and materials published by Infineon and others.

As suggested in a lot of documentation, I'm getting aquainted with 'Dave IDE' and while I think I'm getting the hang of using Dave APPs, something is frustrating me:

 

The Dev-Kit has, besides the controller and a debugger interface, several other connectors (Arduino compatible shield and some headers) and a couple of buttons and leds.

Just about everything relevant is either coded in the silk-screen on which port and pin they're mapped, or this can be easily reverse-engineered from the schematics available.

Working to build a well-founded understanding of the technology, and following some steps I've set out to achieve in my Roadtest, I realised I needed to get some grasp of the method of working with the APP component system.

 

The 'getting started Blinky' over PWM is easy enough and answers some questions. But I all to soon ran into the problem: It seemed to be impossible to use one of the on-board leds (on the devboard) for the project.

Neither one (connected to P4.0 and P4.1 resp.) was mappable in the pin configurator. Fair enough, other pins were and those mostly were exposed over the Arduino interface. I wouldn't be much of a tinkerer if I didn't

have any leds in store (I could light a runway if I wanted to) so I had a blinky after that.

 

But deciding that I needed to continue experimenting on it and decided to add a button that would halt and continue the blinky by pressing it. Button 1 seemed a good idea so, as a true embedded engineer

(XMega, mostly) I decided to query the APP repo for an interrupt routine and work from there. How (much) hard(er) could it be? A simple Interrupt routine component is available, but when I tried to configure it

to use 'Button 1', it wouldn't allow me. Mapping it to P0.7, no problem and that basically worked, but I couldn't figure it out.

 

Adding the component Digital_IO and then using my (otherwise doing nothing) main-loop, I was simply able to poll the button state and update my PWM instance.

 

So mission accomplished, but I feel I'm missing something important.

  1. Why was I not able to map the user-led in my PWM component?
  2. Why couldn't I configure my button on an interrupt?

 

I found a datasheet https://www.infineon.com/dgdl/Infineon-XMC4700-XMC4800-DS-v01_01-EN.pdf?fileId=5546d462518ffd850151908ea8db00b3 about the pinout of the XMC4800 (starts at page 30) and while it has a Lot of pins, for example P2.2 (used for my PWM output) and P4.1 (The led I couldn't map) have very few distinct differences. But P2.2 has CCU peripheral connections P4.1 doesn't seem to have. I suppose that could the be reason for PWM limits?

 

But I have less success with understanding the Interrupt limitations. What symbol in the table denotes this one?

 

I'd appreciate it if anyone has any insights..

 

 

Kind Regards,

 

Martin.

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube