- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I am using CY8C5467AXI-LP108 chip.
I am having difficulty to compile these analog pins:
P4_3/PIN81
P15_4/PIN93
P15_5/PIN94
Receiving this error message:
"apr.M0003:Unable to find a solution for the analog routing."
I have looked up in the datasheet and didnt see any problem using these pins as analog pins.
This is my schema, all the other analog pins are good and fully functional:
Thanks,
Roy Roif
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Motoo,
I have removed pin assignments of DOUT6, DOUT7 only and I could compile successfully, thank you very much for this solution.
Is there a way to solve it without changing the pin assigment for DOUT6, DOUT7?
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I added similar analog page to my previous post.
schematic (analog page)
Pins
Note: I assigned all AIN_Ox but I left the pin for GND as Pin_1 and let PSoC Creator assign it.
PSoC Creator assigned Pin_1 to P2[4] in my case.
Then I could generate application and the project with "ADC_SAR_1_Start()" could be compiled.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Motoo,
I have downloaded your design and I managed to configure AIN_O7M and AIN_O7P according to my design:
1. AIN_O7M - P15[5]
2. AIN_O7P - P15[4]
I have no idea why it doesnt work in my design 😞
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This solution doesnt work, after multiple compile retries I managed to compile P4[3] successfully but I still cant compile P15_4 and P15_5.
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Would you let me know if you could compile the project I attached in my previous response?
If so and if your project can not be compiled, the reason is not the "solution"
but the difference between your project and my sample project.
I think that you are having some other component(s) which prevent P15_4 and P15_5 from being utilized.
You can test it by copying your project to a test project and try removing other component(s) one by one to tell which one is causing the resource bottle neck.
Hopefully you can modify that component to use different port(s) or use different ports for ADC.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I swapped between P15[4] to P15[5] and compiled successfully.
By swapping these 2 pins it means I need to change the schematics and PCB layout of my board.
Is there a way to modify something in the configuration or FW so I can have use my design?
1. P15[4] connected to positive signal.
2. P15[5] connected to negative signal.
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As I am not a hardware expert, this is my guess,
but I wonder if in case positive signal received is lower than the negative signal
you only need to invert (change the sign of ) the measured value of that port.
Or may be we need to wait for the opinion(s) from those hardware experts 😉
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello RoRo.
You could add a second AMux_1 for the diff-pair pins. The output of this AMux_1 goes into the diff-pair of the original AMux_0. Not an elegant solution, but workable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi BiBi,
Is there another FW solution? because this solution going to make my code complicated 😞
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Complicated?
There are always many ways to do the same thing.
You could connect a second AMux in parallel with the first AMux at the ADC_SAR diff-pairs. The first AMux is 'disconnected' before connecting the second AMux paths (and vica-versa).
The GPIO diff-pair input signals could be converted to single ended signals before connecting to single AMux using internal op-amps, would require external resistors.
Moto has offered several good suggestions.
Does internal routing not allow you to swap pos/neg?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi BiBi,
Unfortunately I couldnt succeed to compile using these pin configuration, But I compiled these pins successfully with Motoo's project. I dont understand why this compile error happens.
I have attached my project to this post, please let me know if you managed to compile in accordance:
1. P15[4] connected to positive signal [AIN_O7P].
2. P15[5] connected to negative signal [AIN_O7M].
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I'm not able to run your project since I use Creator 4.0, not 4.3.
I did create a project just like your original screen capture with the same ports as you assigned. It compiled without errors. So, similar result as Moto's project.
As Moto suggested, copy your project to a test project and start deleting functions till it compiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
With your attached project, I could see the problem.
The "Term" is using USB, which uses P15[4] and P15[5] exclusively.
Meantime, Analog Output DOUT16 and DOUT17 (and may be GND) were preventing the Analog routing.
So I modified your project as below
(1) Replaced the USB2.0 Term with a UART
(2) Remove pin assignments of GND, DOUT16 and DOUT17 and let the compiler assign them.
(3) commented lines for USB.
Then I could compile your project.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Motoo,
I have removed pin assignments of DOUT6, DOUT7 only and I could compile successfully, thank you very much for this solution.
Is there a way to solve it without changing the pin assigment for DOUT6, DOUT7?
Thanks,
Roy Roif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm glad to hear that you could compile the project.
> Is there a way to solve it without changing the pin assigment for DOUT6, DOUT7?
Off my head, I don' know any.
But if you take a look at
Design Wide Resources > Analog
you can see the Analog routing and placements,
which may be able to provide you some hints.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok thanks 🙂