You are here

PSoC 6 Components and PDL Drivers | Cypress Semiconductor

PSoC 6 Components and PDL Drivers

[re-printed from Cypress Developer Community by Jim Trudeau - to learn more about PSoC 6 join the Cypress PSoC 6 EAP Community]

In this article I want to go a bit deeper into the difference between using a PSoC Creator component, and using the PDL directly. Most PSoC 6 peripherals have a corresponding PSoC Creator Component. You drag the Component into your design and configure it inside PSoC Creator. Based on your design and configuration, PSoC Creator generates the code required to configure the peripheral. It generates an API for that specific component. All of this is unchanged for PSoC 6 and the PDL.

PDL Component Configuration

Here's what's new. The PSoC 6 Component is built on top of the PDL.

In the past, the Component API was the only option. For PSoC 6, the Component API uses the PDL. PDL 3.0 is a separate entity. That means you have a choice. You can use the Component API, or you can use the PDL API directly. The PDL is designed to work with, or without, PSoC Creator.

Here’s an example. Your PSoC Creator design might include a PWM component, which you could name “MyPWM.” You would at some point write code modify the compare value in the PWM to change the duty cycle. Here’s the Component API code that sets the compare value for that Component.

PDL API Format

Notice that the generated Component API calls the PDL API. Let’s start with the PDL API call. This function has three parameters. The first is the base hardware address for the peripheral. (Read PDL 3.0 - Designed for Flexibility to learn about base hardware addresses.) Because the PWM actually has multiple counters, you also specify which counter to use. And of course there is the actual compare value.

By contrast, the Component API call has only one simple parameter: the value. That’s because PSoC Creator “knows” which base hardware address to use, and which counter, based on the system design and pin assignments you set up in the tool.

These two APIs, Component and PDL, are fully compatible. You can mix and match as you see fit. The Component API is often simpler, but adds a level of indirection (a function call to make a function call). In many cases the overhead is trivial or non-existent, and might even be optimized away. In other cases it might be more significant.

The table summarizes some of the key differences.

Comparison of PDL and Component Instance APIs

There is absolutely no requirement to use PSoC Creator. If you do not use PSoC Creator, then you make PDL API function calls directly, providing all parameters. You get the Component API whenever you use PSoC Creator to generate code. You can use it even if you import the code into your preferred IDE.

One neat thing about the Component API in the generated code is that it is often just a wrapper on top of the PDL API. Even if you don’t want to use PSoC Creator as a production tool, you can use it as a learning tool. You will be able to explore the generated code to see how it makes PDL function calls, and learn how to use the PDL effectively.

 

Comments

cherylfaye92_2600196's picture

There is definitely no necessity to utilize PSoC Creator. In the event that you don't utilize PSoC Creator, at that point you make PDL API work calls specifically, giving all parameters. You get the Component API at whatever point  Custom Essay Service | essayChamp you utilize PSoC Creator to produce code. You can utilize it regardless of the possibility that you import the code into your favored IDE. Very informative information, appreciate it.

jimmymeraz89_2615916's picture

This is an very informative article about PSOC 6 COMPONENTS AND PDL DRIVERS. I don't have knowledge about this drivers but after reading this article I get some useful knowledge in this post. Thanks for sharing the nice topic. Visit here website content writing service

cutecharu1991_2647616's picture

So allow's take a look at what Microsoft supplies You could purchase sweepstakes tickets for an opportunity at winning Microsoft items like the Surface Book as well as Xbox One S. You can also redeem rewards like a Windows Shop present card, Xbox gift card, and also Skype debts. Not surprisingly, many of the Bing Rewards alternatives used are Microsoft items or those from their other brands, consisting of Microsoft Installment plan, discounts on Bing as well as Microsoft garments, subscriptions to Microsoft OneDrive or superior Microsoft Outlook, Skype debt, or Xbox subscriptions as well as gift cards. Keep in mind that the restriction of 10 credit scores is throughout all gadgets (mobile, desktop computer, tablet, laptop computer etc.) as well as internet browsers where you might have signed in with your Bing rewards account.

CiastPatricia24258854574_2681701's picture

Your post is something special for me. My eyes have been opened by you. I couldn't believe that there are so many troubles in regard to this issue. Nonetheless, you've got proved me wrong introducing those data. I'm impressed. I am able to suggest to visit to you a site gradexy

l371467_2687626's picture

While reading through the post, I came to know about the PSOC 6 and its components in detail. You have managed to share details regarding the difference of PSoC 6 Components and PDL Drivers in an effective way. Thanks for the details. tabletrental.com

mariadenial1123_2689661's picture

There's surely no requirement to use PSoC writer. in case you do no longer use PSoC creator, then you definately make PDL API characteristic calls without delay, supplying all parameters like Writing Service - Assignment Ninja. You get the component API on every occasion you operatePSoC creator to generate code. you may use it even if you import the code into your selected IDE.

reneegoins887_2700456's picture

The principal help with writing a dissertation fundamental component of an attractive card per user is the program pickup control (AGC), which consequently changes the adequacy of the info waveform to augment the dynamic scope of the framework. The adequacy of the waveform is exceptionally reliant on the card swipe speed. Speedier swipe speeds create waveforms with pinnacles of more noteworthy adequacy, and slower swipe speeds deliver waveforms with pinnacles of littler plentifulness.

sainianky835_2719406's picture

This online website has some very crazy games Mahjong connect online which are really incredible and gorgeous.Guys i cans say you should play games once on this game website 

lincyrose90_2704921's picture

This article helps me to understand about PSOC 6 components and PDL drivers. It also shares the difference between component API and PDL API very clearly. I want to know more in detail about this topic. Please update it soon.tours to paris

bonymax000_2731176's picture

I am grateful that you have shared the step by step procedure of how the software works. I have gone through the steps and it works successfully. The steps are very easy to follow and simple to understand.Orkopina cost effective cleaning

Nikhil Carmatec's picture

you are correct One neat thing about the Component API in the generated code is that it is often just a wrapper on top of the PDL API. Even if you don’t want to use PSoC Creator as a production tool, you can use it as a learning tool. You will be able to explore the generated code to see how it makes PDL function calls, and learn how to use the PDL effectively.

wb developer @ https://www.railscarma.com

Muneer Ahmed's picture

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. 7 wonders of the world

Muneer Ahmed's picture

ทางเข้าจีคลับ คาสิโนออนไลน์เปิดให้บริการสำหรับผู้ที่ต้องการเดิมพันกับคาสิโนออนไลน์ถ่ายทอดสดสัญญาณจากปอยเปตซึ่งเป็นชาติสิโนออนไลน์อันดับ 1 ในภูมิภาคเอเชียนอกจากนี้คุณยังสามารถเข้าถึงคาสิโนออนไลน์ผ่านระบบด้วยซ้ายหรือมือถือของคุณได้โดยง่ายโดยพิมพ์คำว่า gclub มือถือหรือ ทางเข้า gclub เพื่อให้คุณเข้าถึงล่ะสิโนออนไลน์ได้อย่างถูกต้องคุณสามารถพิมพ์คำว่า gclub บน google หรือพิมพ์คำว่าคาสิโนออนไลน์แจกเครดิตฟรีได้แล้ววันนี้หากคุณพบปัญหาในการเข้าใช้งานคุณสามารถติดต่อฝ่ายเทคนิคหรือฝ่าย support ผ่านระบบเว็บไซต์ของเราได้จากหน้าเว็บ

เทคนิคการแทงบอล

แน่นอนครับร้อยเปอร์เซ็นต์ผมเชื่อว่าคนไทยร้อยละ 50 ที่เล่นคาสิโนเป็นการพนันแทงบอลหรืออาจจะมากกว่า 50 เปอร์เซ็นต์ซะด้วยซ้ำไปเนื่องจากการแทงบอลจัดว่าเป็นประเภทกีฬาชนิดหนึ่งซึ่งในต่างประเทศให้การยอมรับว่าการแทงบอลนั้นเป็นการเดิมพันที่ถูกต้องตามกฎหมาย แต่สำหรับประเทศไทยการพนันทุกชนิดเป็นสิ่งที่ผิดกฎหมายถึงแม้จะเป็นการกีฬาก็ตาม สำหรับเทคนิคการแทงบอลแน่นอนคุณจะต้องศึกษามันมากพอเพราะมันเป็นการกีฬาด้านเฉพาะทาง แล้วคุณยังต้องอาศัยความรู้จากผู้ชาญหรือผู้ที่ติดตามข่าวสาร เพื่อไม่ให้คุณตกข่าวสารใหม่ๆอัพเดทเกี่ยวกับบอลเพราะนักโทษที่เปลี่ยนหรือการบาดเจ็บของนักโทษไม่สามารถลงแข่งขันได้ก็มีผลต่อการแข่งขันในแมตนั้น สำหรับ gclub online เรามีผลบอลหรือการวิเคราะห์บอลให้ดูให้ศึกษาซึ่งคุณสามารถค้นหาบน google ได้เลยโดยพิมพ์คำว่าวิเคราะห์บอลกับ gclub คุณจะเจอผลลัพธ์ทางด้านการวิเคราะห์ที่อาจจะช่วยให้คุณสามารถเดิมพันได้อย่างดีเยี่ยมหรือในทางตรงข้ามเพื่อเป็นข้อมูลพื้นฐานให้คุณตัดสินใจวิเคราะห์เกี่ยวกับข้อมูลทางด้านการแทงบอล

davidawalburn_2759856's picture

When you let creation investigators UK help you, you will Buy an Essay basically trade your weight to their shoulders. With their assistance, you will never again fear this puzzled errand and you will be all around dealt with to submit quality UK papers positively.

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

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 Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve 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.