- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI everyone, I have some questions on using AMUX,
My design is a bidirectional controllable current source, so I use two IDAC in design, and one for source and one for sink(bidirectional), then using a AMUX to connect this two IDAC to one analog output pin. and also I need the PWM signal to control the AMUX, for forming the relaative waveform.
My initial concept is using the AMUXHW, cuz the AMUXHW has the hardware connection, it is easy to directly connect the PWM signals to its control pins, like the following design, but i know that AMUXHW can only be used to connect GPIOs, so this design has errors.
So i want to know is there any solutions instead, cuz in PSoC BLE only has this type of AMUXHW which can be controlled using HW connections.
Appreciation for help:)
HAN
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Han,
I checked your project and could see the error. I was working with a different device before you have attached the code. I am confirming whether " build completed" is an error from our side in that case. As AmuxHw is expected to work with only GPIOs, so this error expected. One solution for this is to use additional GPIOs, which might not be elegant or efficient. But this will surely enable hardware control with additional GPIOs.
Or next option is to use normal mux, but then hardware control might not be possible.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Han,
I could recreate and build the design you have added at my end.
Could you please check after unlocking the pins used in the design. Also could you please let me know the part number you are using ?
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Han,
I have problems opening the file you have attached. Could you please attach the file after following the steps. In PSoC Creator , go to File -> Create Workspace Bundle -> Select minimal. Please attach the generated file.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi vrs:
have you already checked my project file?
and i'm eager to know what's the difference,
thank u
best rgds,
HAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Han,
I checked your project and could see the error. I was working with a different device before you have attached the code. I am confirming whether " build completed" is an error from our side in that case. As AmuxHw is expected to work with only GPIOs, so this error expected. One solution for this is to use additional GPIOs, which might not be elegant or efficient. But this will surely enable hardware control with additional GPIOs.
Or next option is to use normal mux, but then hardware control might not be possible.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vrs:
I'm now trying using additional GPIOs to solve the problems, the compile is successful but also remains some problems when I test the output with oscilloscope. So may I see your configuration of the GPIOs, I mean the selection of the drive mode and initial state. Thank you.
HAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Wan,
Make sure that you are externally shorting these pins. As directly connecting the IDAC to AMUX was throwing the error, I added these GPIOs. I have kept these pins as analog pins. What is the response you are seeing ?,
Best Regards
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, vrs:
I short the two sets of GPIO pins correctly and the output is same as you, and I use a 1000 ohms resistance, I use oscilloscope to see the results, the source current I set is 600 uA (For example), the output voltage between the resistance (which is the output current) is about 2.62V, which is not matching with what I set in the PSoC creator, but I didn't know why. So are you successfully see the waveform output of your design?
Best rgds,
HAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Han,
There is additional routing and switch resistance involved in the case of analog routing. At what point did you probe the signal ? Is it at the mux output or the additional GPIO pins added. Additionally if you want to get an idea about routing resistance, you can use ohm meter option by right clicking on a pin in CYDWR-> Analog tab. Now this additional resistance will affect your output swing, as there is a drop across this.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also can you send me your file
I will compare it with my original one
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you also tell your exact requirement (inputs, output swing requirement etc)? I will try to find whether a different solution is possible to this problem.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi vrs:
thanks for your help
I double check my design and configuration. And change the output port (P1-4) to P1-7, and it works, i will find out the reason later,
thank you so much
Best rgds,
HAN