element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
  • About Us
  • 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
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog Controlling LED Brightness by PWM on Minized
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mu.udhay
  • Date Created: 11 Dec 2018 1:00 PM Date Created
  • Views 777 views
  • Likes 1 like
  • Comments 0 comments
  • controlling led brightness with pwm
Related
Recommended

Controlling LED Brightness by PWM on Minized

mu.udhay
mu.udhay
11 Dec 2018

Hi Friends , in the Previous post we have Created our own Custom PWM IP in Vivado and just Integrated it in our Design.

In this Post we will run it On Minized Board.

In the Next Post , I will show the Debugging Routes we will trace : For these functionalities we have added Integrated Logic Analyzer Core and JTAG to AXI master cores in our Block Design , I will Clear how these work in the Next post.

 

image

After Creating the Block Design with Our Custom IP added in Design this is no new Task for Us :

1.) Just Generate the Bit Stream !

2.) Export the Hardware (along with Generated Bit Stream by checking the Box "Include Bitstream") to any Target location for further working in SDK.

3.) Launch SDK (file->launch SDK) and then selected the Path that we Exported the Hardware and then Select the Workspace Path for SDK

 

SDK Part:

In SDK,

1.) At first Create New Board Support Package(File -> New -> Board Support Package -> Finish -> OK)

2.) Then Import the Previously created Applications(if required, In our Case - We added these files as shown in below Fig. for UART ,Running BRAM functionalities)

For Importing : Select File -> Import -> General -> Existing Projects into Workspace  -> Finish.

image

 

Now we Create Led Dimmer Application which will relay on the PWM block.

1.) File -> New -> Application Project -> Next

2.) Name it as LED_Dimmer_Int and Select Use Existing BSP ->Next

3.) select Empty Application -> Finish

4.) Under 'src' directory of "LED_Dimmer_Int" Right Click -> Import ->Under General Select Filesystem -> Browse to the Directory of my Attached "LED_Dimmer_Int.c" ->Select the file Check Box -> Finish

 

We can Create a new Program if we want instead of using the Attached "LED_Dimmer_Int.c" , what it requires is seeing Memory Map of PWM and calling PWM by referencing to that Address and similar other Functionalities.

 

5.) Then Connect the Minized Board and Then Click On Program FPGA option as shown:

image

Click "Program FPGA" Button.

 

Now We Required to Run Program on the PS :

1.) First Listen to the Serial Port by Means of PUTTY or Teraterm by connecting to the Serial Port at 115200 baud rate

2.) In SDK, Right Click On "LED_Dimmer_Int" under Project Explorer and select Run As -> Launch on Hardware(System Debugger) .

3.) You should be seeing PUTTY or Teraterm Screen as Shown:

image

4.) On the Minized Board , Observe the "PL LED" by giving Input values from 0 to 9 in the Teraterm or Putty window

    Brightness of PL LED will increase by Increasing the Input value

That's It , we Successfully Run our Custom PWM IP block and Programed it On Minized Board.

 

In the Following Post , we will see how we can Debug or even see the Logic Values(or Data similar to Logical Scopes ) at the various Blocks by means of Integrated Logic Analyzer.

Thank You image !

  • Sign in to reply
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