- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am controlling the Duty cycle of PWM output using the API given.. and its working fine, but the problem is with the amplitude.. i am expecting it arnd 3.3V (digital-3.3 & analo-5V).. but i am getting around 5V even after using a didital o/p pin.
What might be the reason behind this behavior?
- Labels:
-
PSoC 3
- 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
There are 4 VDD at the 4 corners of the chip, each for different quarduan and ports. Check if you apply the right voltage to thoe pins.
- 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,
I was going through the application none AN58304 for selection of analog pins .. well, to my wonder i have always used Port 3 for digital purpose too.. and never observed ny irregularity. now when i am observing the trim voltage level i am observing irregular behaviour. All the four vdd voltage is set to 5v.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This application note recommends that we should use Port3 and Port0 for analog purposes.
But I thought these were GPIOs and can be configured as both analog or digital [as per our need].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
exactly... thats what i am saying.. how much SNR ratio will be effected if are using the analog pin for digital purpose?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All (most) of the pind are General Purpose IO. The recommendation to use Port 0 and 3 for analog purposes has to do with the chip-internal wiring and can assure that distortions cross-talked from digital lines to the analog signals are minimized.
So, feel free to use the pins as you like to and keep in mind that just for high-precision ( > 16 bit) some more thoughts regarding noise immunity, precision and stability have to be made.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be I missed something here. You have all VDD to 5V, would this means the output should be 5V and not 3.3V?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
according to my jumper settings... digital should be 3.3 and analog should be 5!!!
do we need to change the '.cydwr' -> system -> operating conditions too??
- 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
I never checked it out before...
On my PSoC kit, I have configured my jumper settings as : 3.3 digital, 5V analog.
After this, if I am working on PSoC Creator and if I go to : ProjectName.cydwr -> Systems, all four VDDD are configured as 5volts.
So if I try to programme this project, do I need to change these VDDD values to 3.3V.
Regards.
- 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
and to sum it up... I was exactly asking what you are not sure of 🙂 can anyone please tell me how it works??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@goose: what kit are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PSoC73.....I am asking in general......
If, my jumper settings say VDDD = 3.3Volts...
But .cydwr ->system say VDDD = 5volts...
Which one would take preference over the other?
Regards.
- 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
1. The setting in the .cydwr file should be set to the same as the voltage applied to the 4 Vdd.
2. You should be able to locate the circuit diagram for the kit and check what voltage is applied to the 4Vdds. or just tell us the kit you are using, People here may be able to check that for you as well.
- 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
The setting in the cydwr is to be change by the USER. You should change it to the same as the voltage applied to the VDD pins.
I think it changes some internal setting for I/Os but not 100% sure. May be thershold for inputs or some internal configuration for output pins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't have the kit you use, bu you should be able to find the circuit diagram with the kit or from the CD. That should show you what is actaully connected to the VDD pins.
May be some one here who has the kit be able to help.
- 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
Most kits with jumpers for setting Power rails are setting actual HW,
like selecting which regulator, setting G resistors to set regulator output
V........
When you set in Creator the voltage you are telling code base what HW
voltages are going to be present when PSOC is run. Stated another way
settings in Creator do not mean processor starts up and sets its own
primary rail supply. "Primary" because there are regulators in PSOC 3 / 5,
working off the externally supplied power voltages.
So in short both settings in Creator and HW on board must match.
PSOC 3 power -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Dana you said :
"So in short both settings in Creator and HW on board must match."
Suppose they are different, which one would take preference over the other?
[I think it should be the HW one...ryt!!!]
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The specifications given to Creator regarding the voltages are used to INFORM the chip about the outer world. As Dana told they are related to internal switching and settings and do not change any input-voltages. So they do not govern anything but are needed for internal calculations as stabilizing the oscillators and regulators.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now that clears my doubt.. Thank you all 🙂