PSoC™ 5, 3 & 1 Forum Discussions
unsigned long value;
void main(void)
{
Counter24_1_start();
Counter24_1_ReadCounter(value);
}
W E:\YVRAO\psocexam\COUNTE~1\COUNTE~1\main.c(11):[warning] calling a function without prototype may cause runtime errors if the function does not return int or unsigned int
!E E:\YVRAO\psocexam\COUNTE~1\COUNTE~1\main.c(12): type error in argument 1 to `Counter24_1_ReadCounter'; found `unsigned long' expected `pointer to unsigned long'
C:\PROGRA~1\Cypress\Common\CYPRES~3\tools\make: *** [obj/main.o] Error 1
counter24bit - 2 error(s) 1 warning(s) 19:49:52
Guys,
Do you know the links for heaps of project examples for PSoC 1 on cypress website?
I saw at PSoC designer on the left box, and wondering if there're more out there on the website ?
Thanks
Show Lesshai frnds
i am trying to read value of counter 24 bit ,
but some error came i.e(type error unsigned long found pointer expected to unsigned long).
i write the prg as below
unsingned long int value;
Counter24_1_ReadCounter(value);
plz solve this coding.
Show LessWhat does the following instruction do?
AMD_CR0|=0x4;
I looked this up in TRM but couldnt arrive at a conclusion. This instruction has something to do with enabling the comparator's o/p bus ?
Please clarify,
RAM
Show LessHow can i configure the SC block as band pass filter at 40Khz ?
What is programming margin in flash
Hi,
I have a mimiprog3. it programs the 3210 eval board when the board is not powered externally using 12 v adaptor. But when 12 v supply is connected the miniprog doesnot recognizes the device. Also it becomeres very hot.
regards
Rocky
Show LessHi Team,
I've a situation where execution time is very critical. (branching to ISR - returning & stuff should occur very quickly.) I tried using normal C code,
void PDI(void)
{
peakdetect_EnableInt();
COMP_1_EnableInt();
COMP_2_EnableInt();
PRT1DR ^= 0x01; // just as a test to whether the comparator responds that quick or not.
}
I got a much delayed waveform on a DSO wherein my event occurs much before & even overlaps occur between consecutive events . Is there a wayout in assembly ? Would it decrease execution time ? If so, please provide sample code or snippets
Thanks 🙂
Show Less