PSoC™ 5, 3 & 1 Forum Discussions
I need a 32-bit counter with multiple compare outputs. I used the UDB editor to quickly generate a verilog file for a 32-bit counter with 1 compare output. I thought I'd edit the verilog file to add more compare outputs but I cant figure out how to access register A0 of the datapath.
Show LessHello everyone,
I'm using PSoC 5LP(CY8C586LTI-LP038) with PSoC Creator version 3.3.
Iam trying to capture the PWM from Futaba R617FS. As of now only one channel is connected as input to the PSoC.
The timer with period 16.043 ms is used. Trigger mode is Rising edge, capture mode is Falling edge,interrupt is enabled only on the Terminal Count. ISR will Send Character 'A' , whenever it is raised.
Pin_2 is been used to monitor the output.
The questions are:
1. In the attached project "Timer_1" configuration, how the Reset functionality works? I have followed the explanation provided in data sheet but not able to find the solution.
2. Irrespective of the Channel 1 input Terminal count interrupt should be raised or not ?
3. The APIs as given in the attached project Timer_1_STATUS, and Timer_1_EnableTrigger(), how are they functioning in the attached project?
please provide explanations for the same.
Thank you in advance.
Show LessI am using the USB-UART component for a project. Is there any way that the PSOC can tell which COM port the PC has assigned to it? I would like to show that value on a LCD screen that I have connected. I figure the PSoC should know which COM port it was assigned (although I am not a USB expert). I'm just trying to get that value.
Thanks!
jk
Show LessCan someone tell how do I measure frequency of a incoming sine wave using PSoC 1. I'm following the given procedure given by Dana.
At the most basic level you need a gate of known width in time,
and a counter that starts counting when gate is active (high),
from a known value (255 8 bit, 65535 16 bit), and stops counting
when gate goes low. You read the value of the counter, subtract
it from start value, and divide by gate period in seconds.
16 bit example, .1 sec gate period, f = (65535 – count value) / .1
To setup Gate
1) Timer, setup for .1 or 1 sec (resolution would be 10 Hz or 1 Hz
respectively). You set up period to be 2X desired gate period, and
compare value 1/2 period, so that high time of compare output =
gate period, low time = gate period.
2) Route timer compare out to counter enable.
To setup counter
1) Route pin, Fin, to counter clock
2) Route timer compare out to counter enable
Code
1) Load counter with its max allowed value, 255 for 8 bit, 65535 for
16 bit
2) Start counter
3) Enable timer ISR, on terminal count, that means gate is low, counter
not enabled to count
3) Start timer
When ISR occurs set a flag and return
1) If flag true read counter (gate is low so it is not enabling counter)
and compute frequency. Reload counter with its max value.
There are other optimizations that can be done, for example stop and reset
timer when ISR occurs so that gate low period is minimized, and measurement
frequency is increased.
If the frequencies you are measuring are very low, like less than 1 Hz,
use reciprocal counter technique.
But I'm unable to comprehend that how do I write the ISR on terminal count.
Any help would be appreciated
Thanks
Hi every body!
Did you do any project about Sensor Accelerometer and Magnetometer FXOS8700CQ (I2C or SPI)?
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FXOS8700CQ
I want understand clearly about ±2g/±4g/±8g mode. Is g = 9.81 m/s2 ?
Can you please tell me?
Many thanks!
Show LessHi ,
I have a board module with cy8c9560a with two LEDs connected to GPIO PORT 0. I am trying to configure them from atmel board using I2C. Can you please tell me the baic steps to be followed like.
1. start condition
2. which slave address ?
3. next which register address ? or before this step do i need to configure the pins as output pins
4. . .clock setting ?
I read the data sheet , i'm confused to how to start.
Please give me inputs.
Thanks and regards
R Madhu.
Show LessHI,
I am using CY8C28452-24PVXI Package on one Product.
There is a only 16K memory for flash. My Flash memory is almost full in half of the project completion.
can i use any external flash Chip with CY8C28452 for extend the programming flash memory??
Hi,
I am using CY8CKIT-001 - CY8CKIT-009. I have a problem.I want to use it as a single on-off capsense button. So when I press the button once will light up led,later I press the same capsense button again will turn off led. I use the following code:
if( statusButton0 == ON && onoff==0)
{
LCD_PrintString("On ");
Led1_Write(0x01);
onoff=1;
}
LCD_Position(1,3);
if( statusButton0 == ON && onoff==1)
{
CyDelay(200u);
LCD_PrintString("On");
onoff=0;
Led1_Write(0x00);
}
I do not know what I'm doing wrong but Led is flashing. Do you have a software error or hardware error? Thanks your answers.
Hello everyone,
I am wondering what is the best approach to program a PSoC5 without miniprog. I found different way to do it but I have several basic questions to choose the one which fit with my needs:
-Using a bootloader USB-UART
It means programming it once via a miniprog to put the bootloader, but can I use the same port USB to send data via USB-UART? There is no debug right?
-Using cy7c68013A
I found the schematic in attachment. How does the cy7c68013A convert the USB to SWD? The I2C EEPROM is only to store the VID/PID of the USB? There is also no debug?
-Using an other PSoC5 as the Freesoc 2
Do you have an idea of what is inside the second PSoC? A boatloader obviously, but how it allows to program and debug the other PSoC?
Thank you very much
Show Less