PSoC™ 5, 3 & 1 Forum Discussions
Hello!
I'm trying to use a thermocouple of type T but I have no idea which settings to use for the ADC. Does anyone know about it?
Thank you, and have a great weekend.
Show LessHello!
I'm facing an issue that is quite annoying knowing that I'm trying to program a board that is supposed to stay on the field for months.
After programming my board with the MiniProg, data are collected normally (using an infinite loop) but after a while it stops and I don't know why. I have noticed that after plugging back the MiniProg to my board and computer, the program restarts. I mean, I don't even try to reprogram the board, as soon as I plug back the MP, the program restarts and data are collected again.
Any hint on what is wrong or should I create a case?
Thank you very much. Your answers are always helpful.
Show LessHello all,'
I am using PSOC controller cy8c3244pvi-133
i am putting it in sleep mode and wakeup only when PICU interrupt occures.
when it wakes up i start 1msec timer interrupt and set one flag which I use for changing the state in while(1) loop.
my sleep current is 40usec. and active current is 20mA
I have noticed that when there is any transition of pins other than external interrupt pins PICU, controller wakes up and current is also increases.
for this I wrote a code such as if by accident controller wakes up then start 1msec timer interrupt and again go back to sleep but my interrupt is not working and even if I directly put to sleep mode, it is not going to sleep.
why this is happening?
please guide.
Show LessSo i'm trying to use my FreeSoC mini to make a sonic screw driver. I'm a long time programmer, but this is my first time playing around with hardware. I've so far managed to get my device to be programmed, and run a little blue LED that turns on and off when I press a button. So I've not pressed on to making a buzzing sound. I've got a little TDK piezo speaker to make the sound. tested it by connecting my desktop's sound out to it. (3.5m to rca to bare wires. ^_^ ) so the speaker works. I wired it up with a WaveDAC on the PSoC, made sure the WaveDAC was started, got the pins right so far I can tell, But i'm not getting any sound.
The Pin is an anolog out over an OP Amp, strong drive. With the WaveDAC i'm just using a simple wave form at 1khz, a little above A5 on the piano. I've tried it's range selection at every choice I can that makes half a lick of sense (if 2ma doesn't work, why would 32ua?) Is it just to quiet? Do i need to make an amplifier outside the PSoC to get more power to the speaker? I have held my ear right up against the speark and haven't heard a thing. I was read to believe it was quiet and I would need an amp, but this is so quite I have a hard time believing I did it right.
Show LessHi,
I'm having a problem while trying to sample some signals when using an AMUX, a PGA and the SAR ADC.
I need to sample many light sensors that can receive light from various groups of LEDs.
The LEDs are controlled by PWM in the same PSoC. Only one LED is on at a time. To multiplex the PWM I'm using AND gates conected to the PWM output and to a control register. I've also tried using a demultiplexer.
Anyway, the problem is happens when I do this:
PWM_Out_Reg_Write(LEDPowerOrder[selectedLED]); //Select PWM output pin.
PWM_LED_WriteCompare(10); //Configure LED power
AMux_1_FastSelect(0); //Select sensor input
PGA_1_SetGain(1); //Set PGA gain
ADC_SAR_1_StartConvert();
ADC_SAR_1_IsEndConversion(ADC_SAR_1_WAIT_FOR_RESULT);
sample = ADC_SAR_1_GetResult16();
PWM_Out_Reg_Write(LEDPowerOrder[selectedLED]); //Select second LED output
PWM_LED_WriteCompare(0); // Turn it off.
AMux_1_FastSelect(1); //Select second sensor
PGA_1_SetGain(1); //Set the gain of the PGA
ADC_SAR_1_StartConvert();
ADC_SAR_1_IsEndConversion(ADC_SAR_1_WAIT_FOR_RESULT);
sample2 = ADC_SAR_1_GetResult16();
Well after that, I graph both samples and the second sample still gets part of the signal of the first sample but with less amplitude even when I've turned off the LED. I also tried not using the PWM and just using the pin ON OFF directly and I get the same results. The sensor is fast enough to keep up with the LED and I have no capacitors in the ADC inputs.
So, I would like to ask what could be causing this or if I'm doing something wrong or missing something, since this is my first project with PSoC 5.
How much time should I wait for the signal to settle between multiplexor selections?
I have the PGA configured to high speed and the datasheets says that it has 7pF of input capacitance. The ADC is running at 100000 sps.
Thanks in advance!
Show LessHi,
I would like my PSoC3 USB port to act as a mass storage device allowing a host PC to copy logged data from an onboard flash chip. Has anyone done this before? How must the USBFS be configured and how can I 'attach' the SPI Flash chip?
Thanks in advance,
Kris
Show LessI have used successfully DMA transfer to write 8bit ADC output data to 8bit control register. It should also be possible to use DMA to write 16bit ADC output data to two consecutive control registers. 8bit transfer uses destination register address ControlReg_Control_PTR. What is the destination address for 16bit transfer?
Show Less