PSoC™ 4 Forum Discussions
How can i control the control bit of a tristate buffer ? tried connecting an output to it but keeps giving me an error. "Terminals "FM_PWM.oe_0,LM_PWM.oe_0,RM_PWM.oe_0,BM_PWM.oe_0" connected to signal "Net_2819" have mismatching types."
Show LessCan some one help me in using UART in Deep Sleep mode?
Wondering if anyone can point me in the right direction for this problem. I need to record the analog voltage level for 2048 pixels on a linear sensor. http://www.hamamatsu.com/resources/pdf/ssd/s11639_kmpd1136e04.pdf
My circuit for controlling and reading data from the sensor is working great. I can hardware trigger the ADC from a trigger signal from the sensor, and I can control the clock rate of the sensor between 200kHz and 10MHz, so I should be able to run the ADC fast enough to get data from each pixel.
What's the best(most efficient or fasted) way of storing that data from the sensor/ADC? For some reason it feels like my solution is bogging down responding to the ADC's interrupts. The slowest the hardware trigger for the ADC will run is 200kHz...and I need to get the data for every hardware trigger.
Thanks for any help/advice/whatever.
Aaron
Show LessHi All,
I'm having some troubles with reading data out of a linear sensor. I'll be posting later about the ADC step, but I need to figure out something else first. Basically I want to be able to either multiplex two clocks on a single digital IO line. I need a 10Mhz clock for part of the sensors cycle, but then, when it's time to read out the video signal, I need to slow down the clock (the minimum the sensor can run is 200kHz). The reason I need to slow it down is so that I can do ADC on the signal, and it has to be fast (10Mhz) so that I can have a low integration time.
I've been successful setting the fractional clock divider in an pwm interrupt to slow down and speed up the clock, but I'd rather have the PWM output change the clock without the interrupt.
Here's the linear sensor ( http://www.hamamatsu.com/resources/pdf/ssd/s11639_kmpd1136e04.pdf)
I have the driver circuit all developed, and everything is working, except that I now have to get the data out, and I know that I have to slow down the clock to allow the ADC to have enough time...
Thoughts?
Show LessSysTick feature is supported in Cortex M0 and hence can be used in PSoC4 as system tick interrupt to control task switching.
SysTick is Cortex Vector #15. System API functions CyIntSetSysVector() and SysTick_Config() have to be used to initialize the SysTick and control its frequency
Show Less
Hi,
I am fairly new to watchdog and brownout detection. I have a prototype project running on a PSoC 4, and in the case of a brown out I have to be able to respond in the following way:
Input voltage drops under 3 V -->
Send 'turn off' command to appropiat chip -->
Wait ~3 seconds before checking that the input voltage has stabalized at >3 V-->
If the input voltage is still < 3 V wait for another ~3 seconds -->
Else if input voltage > 3V reset PSoC board
From what i can see I should be able to use CySysLvdEnable(CY_LVD_TRESHOLD_3_00_V) to detect the input voltage drop. However it does not seem to reset as expected. Could someone nudge me in the right way of how to implement the above flow?
Any help is greatly appreciated.
All the Best,
Kat
Show LessSo I am trying to recreate the code in this application note (I can't find the link to the actual project)
I have read through all the PWM datasheet and I think I have everything setup right.. I am reading the status register as it says but when I step through my code it just never leaves the interrupt.. it goes off to read the status register and then just loops infinitely in the ISR routine..
I have attached my code if someone could help me make sense of where I am going wrong..
Show LessI noticed that there are Altium libraries for the PSoC3/5LP but couldn't see one for the 4.
For my upcoming project I am planning on using the chip on the Pioneer board, if anyone has an Altium component that would be grand!
Show LessI am having loads of trouble getting the ADC working on my PSoC 4 Pioneer board..
The values coming out of it are all wrong.. I am feeding in 3.9V and I am getting out 2047.. or sometimes other values..
3.9 if my calulation is right should be
3.9/(5V/4096) = 3194..
I have noticed that if I feed in about 2.5V and below that my 2047 value starts changing and it gets lower and lower the lower voltage I put in so it is tracking the input.. but as soon as I go over 2.5V it locks on at 2047.. I have checked and I have the channel set up for single input, and it says 0-5V on the ADC config page..
I really would like just the absolute most bare bones basic project which has a single input and an ADC which is set up to give 4096 for 5V (12 bits) and 0 for 0V..
All of the example ADC stuff supplied by Cypress is 0-1.024V which is useless for me..
Does anyone have an example project pretty please?
Show Less