- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Folks
I'm doing a frequency measuremenst using the PSoC5 with a counter. Could someone help me with the example code for this. I've tried the EP64441 and having problems with it. It gives me the error code.
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
Regards
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably you made a typo in your program, this error usually is not the only one, check and correct any errors before (above) this one.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The project is giving me clock related problems. will forward them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ghautam
i juste send to u a mail for asking som information, but i had delevery mail error!
i need some help plz
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i want counter program for rpm measurement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might help -
http://www.cypress.com/?docID=33528
and
http://www.cypress.com/?app=forum&id=2232&rID=53631
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi DANA, i juste mail u too
realy need some help plz
thank you ^^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PULSE COUNTNG FOR 1SEC COUNTER USING PSOC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
good morning evry one
Am working on a project with psoc 4, i want to pilot a motor brushless with a drive carte "BLHD30K", and i want to calculat the speed motor!!
this drive carte give a Pulse signals (pulse width: 0.3 ms) of 30 pulses per revolution of the motor output shaft are output in synchronism with the motor drive.
Motor speed can be calculated by measuring the SPEED output frequency.
Motor speed [tr/min] =(SPEED output frequency (hz)*60)/30
SPEED output frequency =1/T
like that i can also calculat the position of the motor by using an interruption every 30pulse -----> one revolution (tour),
but i dont khnow how to calculat that? any idea !!
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can read the counter value at any time and calculate from its value the actual position. In case of overflow you may maintain an integer counter within an interrupt handler.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also having trouble with frequency measurement. I have set up the schematic and components as in the frequency counter application note. The interrupt simply clears the interrupt and sets a flag like below.
In the code I clear the "countDone" flag and wait for it to be set again (which it does) but the value I read in Count is always "1". I verified on scope the input (DAT pin) is square wave at 125 kHz. I also verified the desired sample time for measurement (10ms) is correct at "pwm". The code is going to the interrupt routine ok.
void ISR_Compare_Interrupt(void){
PWM2_ReadStatusRegister();
countDone = true;
}
uint16 GetFrequency(void){
uint16 count;
countDone = false;
while(!countDone){}
count = Counter_ReadCounter();
return count;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I wonder if posting a new message to this very old thread is right...
I hacked my version of frequency counter for 125kHz with CY8CKIT-050
The left side is my frequency coutner,
the right-upper is 125KHz PWM generator,
the right-bottom is our friend UART 😉
To test please connect puls_out and puls_in.
The TeraTerm log is something like below
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I'll try it in the morning.
Works a treat!