PSoC™ 5, 3 & 1 Forum Discussions
Hi,
We have recently (5 months back) developed a board that uses CY8C5268AXI-LP047 which is currently out of stock everywhere. We need 15 more pieces of the microcontroller and one of our suppliers has CY8C5246LTI-029 (which is obsolete) in stock. Can we use this as a replacement to the 5268?
The two microcontrollers are pin compatible and have mostly the same peripherals. There is a huge difference in the Flash and Ram size but we are using only 10kB of Flash, 3kB of SRAM, Stack 2048 bytes and heap 128 bytes so it seems that both the microcontrollers have more than enough capacity for out requirement.
Please let me know if there are any reasons why we can't/ shouldnt use the older micro (CY8C5246LTI-029). I understand it is obsolete but our volumes are low enough that redesigning is more expensive than replacing microcontrollers.
Also I could not find it on PSOC creator -4 do I need an older version to program CY8C5246LTI-029?
Thanks in Advance,
Sujoy.
Show LessHi,
There are already one I2C master and one I2C slave in our design. Can I add another I2C master (and the third I2C component can use any gpio pin, right?)? Is there a limitation on number of I2C components in PSoC 5LP?
Thanks,
Winston
Show LessHi,
The parts we are using is PSoC LP5: CY8C5467AXI-LP108.
We are trying to get information from a battery that only supports SMBus. Can I use I2c component as SMBus master to communicate to the battery? If yes, what should be the tricks and limitations, such as I cannot set data rate to 400k, right?
Thanks,
Winston
Show LessHi,
We are using PSoC 5LP: CY8C5467AXI-LP108.
We have implemented waking up PSoC from hibernation using one pin (button push down). Now we want to add two more buttons, each will wake up PSoC from hibernation.
My questions are:
1. Should we assign all three pins to same port? What is the difference for assign the three pins to one port or different ports for interruption implementation?
2. What is the meaning for "Dedicated interrupt" checkbox in pin configuration? In my case, the checkbox is checked but greyed out, why?
3. To save interrupt handler, can I enable interruption for each pin, and connect all the interrupts to a NAND gate and still wake up IO PSoC?
Thanks,
Winston
Show Less
@odissey1 have had a post about this subject (using the very same analog chip) but I cannot find it, apologies.
I need 8 control voltages (DC and AC below audio range) to drive an analog IC. The 8 sources have to be independent from each other in terms of frequency and amplitude. I want to be able to play repetitive wave forms and one-shots (envelope) from the flash, with flash-to-DAC DMA (courtesy of @odissey1). All good so far.
However, how do I change the frequency (or time in case of envelope segments)? I understand that I can 1. change the time it takes to play the waveform or 2. skip samples. In case of 8 sources and only one DAC, it seems changing the time is impossible. Is skipping a viable mean to change frequency or time? What I see is in other projects is the combination of sample skipping and changing the frequency to get a decent resolution. In other words, how do I arbitrarily change the frequency of 8 independent sources sharing one DAC?
Thank you for your kind help in advance.
Show Less
Hi,
I have a Miniprog3 and a product returned from the field where i need to read the parameter section of the memory. The program section is locked down (W) and the parameters section is unlocked (U).
I get:
Read to Hex Finished at 07:51:39 |
| FAILED! Device cannot be read. Some of flash rows are protected from being read.
Device set to CY8C29466-24PXI at 07:51:39 | 32768 FLASH bytes
Device Family set to 29x66 at 07:51:39 |
| Automatically Detected Device: CY8C29466-24PXI
| Silicon: 002A, Family/Die: 11, Major Rev: A
Read to Hex Requested at 07:51:38 |
I i read to log it is no problem and i get all values in the unlocked section and the locked section is just xx, so why is it that i cannot read to file but read to log works?
Can i do a partial read of just the addresses i need to avoid this problem?
Show Less
We are creating some test boards using an old Cypress chip (CY8C5566LTI-017), and we are wondering if there's any way to program this chip using PSOC Creator 4. I found the community post explaining that the LP equivalent of the CY8C5566LTI-017 is the CY8C5866LTI-LP022. Would we be able to program the old chip in PSOC Creator 4 by making the LP equivalent the target device?
Show LessHi,
Is there a API or some way to change I2C master component data rate programmatically? We have one I2C master component, that connects to two I2C slave, with one slave needs 400k data rage, another I2C slave needs 50k data rate. How to use one I2C master to deal with this case?
Thanks,
Winston
Show LessHi,
I have one component composed of a resistence connected to ground and in series to an inductor. My object is to control the voltage of a resistence. What i planned to do is to read the voltage from the resistence and use an ADC with 12 bit of resolution to convert this value. Then, this output should be compared whit a costant digital valure by means of a digital comparator. If the value of resistence's voltage is higher than digital constant value, the pin connected to the inductor (Pin_2) goes to zero (0 V) and if the voltage is lower than constant digital value the inductor's pin (Pin_2) goes to 1 (5V).I wanna know if this method permits to control the voltage properly. Also, what i noticed is that for low value of the digital constant ( max 800) the control seems to work. For all higher value, the resistence's voltage is 0,85V. Why does this happen?
I attached a screenshoot of the components for sake of clarity.
Thanks.
Show LessWhile I'm trying to learn to use PSOC interrupts, I started a project to trigger an interrupt with a timer and blink an LED. Needless to say, the LED never turns on. What am I missing? Thank you for the help in advance,
#include "project.h"
Cy_ISR(Timer_Interrupt){
LED_Write(~LED_Read());
LED_ClearInterrupt();
}
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
Timer_Interrupt_Start();
timer_clock_Start();
Timer_1_Start();
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
for(;;)
{
/* Place your application code here. */
}
}
Show Less