How do I go about picking the library item that I need to generate code to interface with a GPIO line?
What I need to do is configure a GPIO to send a signal to trigger a buzzer when a button is pressed. I look at the Components Library and I am not sure where to begin. I have inherited the code from previous developer so there are a number of LDD's already in the components list but I am not sure how they were created. I noticed that they all have names which do not match anything in the Components Library, so I assume you can name these items what you like which I also hope to learn.
I have programmed GPIO lines on my own when working with other development systems this is the first time that I have had to interface with another application to create the interface.
Hello Harold,
For example , when you want use the GPIO_LDD component , you only need double click it , it will add under the project :
then configure it
If i misunderstand your meaning , please tell me your problem in detail.
Hope it helps
Alice
Hello Alice Yang,
Thank you for responding to my question.
It is kind of a two part question.
1. How do I know what item to pick from the ‘Components Library’ for the task that I wish to perform?
2. Is there a manual or some documentation that explains the Processor Expert and the Components Library and Inspector?
What I am trying to do is as follows:
I need to set up a GPIO line which will be attached to a buzzer. I will have to send a square to the buzzer (of a to be determined frequency) every time a button on the unit is pressed. Would also like to know how to interface with the code that is generated by ‘Processor Expert’?
Thanks for the help.
John Vogel
Hello John,
For the questioin 2, you can find the explains on "help->contents" :
For the question 2, the components are most the chip's peripherals , it should refer to the requirement of your project ,
for example , if you want blink one led , you can add the GPIO component. And there is "Typical Usage" about the components,
when you use the component, you can refer to :
About the buzzer. i think you only need one GPIO component or BitIO component ,
then you can also add one timer , through the timer interrupt control the GPIO pin output to High and low .
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------