PSoC™ 5, 3 & 1 Forum Discussions
I have no idea where to ask this question. but can anyone tell me what is the price of the "chip" inside the CY8CKIT-050 PSoC® 5LP Development Kit?? I went through the site but all I could find was "contact sales". and the distributers search doesn't seem to find any thing. (please regard that I am in Egypt :))
Show LessI am creating a Verilog component which requires a clock. I would like this to be an internal clock, so that the user doesn't need to concern themselves with it.
I have seen some components (eg PWM) which have the option of an internal clock. This is implemented by using a schematic component containing the clock plus another verilog component.
Is it possible instead to simply instantiate a clock within the Verilog?
Show LessI am creating a 16-bit datapath component which can create different flashing patterns on an LED. The D0 and A0 registers are loaded with the bit pattern, and the component shifts the bits out of the A0 registers, into the LED until A0 is zero, then re-loads the bit pattern into A0 from D0.
However, I'm a little confused about the behaviour of the ZDET line. I assumed that the ZDET line would go high for one whole clock cycle until A0 was re-loaded from D0. I.E. like this:
CLK A0 SO ZDET Reload --- ------------ -- ---- ------ 0: 010100000000 1: 101000000000 2: 010000000000 HI 3: 100000000000 4: 000000000000 HI HI 5: 010100000000 Reload 6: 101000000000 7: 010000000000 HI 8: 100000000000
Instead, ZDET seems to go high for less than 1us (whereas the clock has a period of 100ms).
What is the correct behaviour for the ZDET line?
Show LessI'm using a CY8C5568LTI. I have pin 61 P15[5] connected to a 1K resistor, which in turn connects to the center point of a stack of 100K resistors from a regulated 2V down to ground.
I use instructions
PIN_SetDriveMode(PIN_DM_ALG_HIZ); // Set as Hi-Z input,
PIN_Write(0); // Really no impact since we're in Hi-Z input mode
To put this pin into high impedance mode. Neverthelss, I'm seeing a square wave at the center point of the resistor stack, varying from 0.9V to 1.1V. The resistor stack is seeking 1.0V, and the pin is injecting current to cause this +/- 0.1V change. The square wave period is about 120ms (8.3Hz). Whether I do DC analysis (101K to ground) or AC analysis (resistor network 51K), I come up with 1 to 2 uA of current coming out or going into this pin that's supposed to be high impedance.
So I check the CY8C55 Family Datasheet. Table 11-6 for GPIO DC Specifications says input leaking max 2nA. That's a far cry from 1 to 2uA. I do find more leaking on SIO pins, but this is definitely a GPIO pin.
So why do I seem to have 500 to 1000 times more current coming from/to the pin that the datasheet says?
Note also that I found a knowledgebase article at http://www.cypress.com/?id=4&rID=33792 about a similar subject. It says a resistor of "few tens of K" will fix the problem noted. But that also implies a leakage current much larger than the datasheet says.
So what's up and how can I fix this offensive pin?
Thanks.
Show Lesshi, m very new to this and i guess this sounds rather basic, but i really need help..
in my project i have just a pwm block that is used to activate the LED. It seems the pwm is executing just one cycle and then there is no change. LED remains off initially, goes on and then remains in the same state. the code:
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
#include "PWM8.h"
int val;
void GenerateOneThirdDutyCycle(void)
{
/* set period to eight clocks */
PWM8_WritePeriod(23);
/* set pulse width to generate a 33% duty cycle */
PWM8_WritePulseWidth(7);
/* ensure interrupt is disabled */
PWM8_DisableInt();
/* start the PWM8! */
PWM8_Start();
}
void main(void)
{
void GenerateOneThirdDutyCycle(void);
M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts
// Insert your main routine code here.
/* function prototype */
/* Divide by eight function */
for(;;)
{
GenerateOneThirdDutyCycle();
}
}
I tried the same with global interrupts disabled as well.. got the same result.. please help..
Show LessThis application note describes how to sense temperature by interfacing with NTC(negative temp. coeffecient) thermistors, in which resistance decreases with increase in temperature. Based on this principle, temperature is calculated by measuring the resistance.
http://www.cypress.com/?rID=2606
Show LessHello,
I measure a current with a ADC_delsig and I want to send the measure 16bit with the SPI.
I have an SPI-SLAVE that communicates with a PIC18F97J60. The communcication works with 8-bit words, and I would also send in my frame a 16-bit words.
Thanks for your answer
Show LessHi, i making a aplication when i need to generate 3 independients wave forms, and controlate the type of this waves, the problem is that the unic mode that i find to change the wave type is in the wizzard but after i can´t modificate this. I hope that some body can say me if is this posible and how can i do it, becuase i searched in many archives .h and .c i can´t find it.
Show Less