- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
am trying to implement the voltage controlled oscillator example:-
http://www.cypress.com/%3FdocID%3D33522&ved=2ahUKEwiV7Oz6sqrkAhUGUR…
The problem:-
Psoc 4 is not straight forward configing the gpio pins following the above example.
Could someone please help with this ?
I found the following and I'm finding it difficult to follow:
http://www.cypress.com/comment/362321
How do I configure the following to implement the above example?
IDAC_1_Start();
for(;;)
{
/* Place your application code here. */
/* Connecting pin 1 to Amux bus where the 8 bit IDAC_1 is connected */
Pin_1_SetDriveMode(Pin_1_DM_ALG_HIZ);
CY_SET_REG32(Pin_1__0__HSIOM, (CY_GET_REG32(Pin_1__0__HSIOM) & ~(Pin_1__0__HSIOM_MASK)));
CY_SET_REG32(Pin_1__0__HSIOM, (CY_GET_REG32(Pin_1__0__HSIOM) | (0x06 << Pin_1__0__HSIOM_SHIFT)));
/* Delay for 1 second */
CyDelay(1000);
/* Removing Pin_1's connection from Amux bus and settin it to strong drive mode*/
Pin_1_SetDriveMode(Pin_1_DM_STRONG);
CY_SET_REG32(Pin_1__0__HSIOM, (CY_GET_REG32(Pin_1__0__HSIOM) & ~(Pin_1__0__HSIOM_MASK)));
/* Setting Pin_1 component to be operated by
Thanks
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks guys,
The way to solve this problem was to go in to the pins settings and set the pins manually.
Drag the pins across to the pin layout on the IC wait for the router to respond with a yellow or green coloured box. Then you know it's ok to use the selected pins. Saves time with the autorouting that can be quite tedious.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The configuration is best done in the component's (Pin) configuration dialog. As the description of the VCO says, no other settings are required. So the body of the main loop is empty and the VCO is running in hardware only. Do not forget to set the IDAC to 100µA.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still will not route doing it using the method you recommend.
Have you tried implementing this tutorial?
Will not route the analogue pin.
It's a pain!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I attach the zip file ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Click on file and then create Workspace bundle and the attach the file it creates ito a new comment and click on Use advanced editor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks guys,
The way to solve this problem was to go in to the pins settings and set the pins manually.
Drag the pins across to the pin layout on the IC wait for the router to respond with a yellow or green coloured box. Then you know it's ok to use the selected pins. Saves time with the autorouting that can be quite tedious.
Thanks