- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi to all,
Greetings for the day.
I'm trying to implement the code for the #11 Buttons, while doing this I'm getting the following errors:-
!E E:\amit\myPRO\MY_CHK~1\MY_CHK~1\main.c(72): insufficient number of arguments to `Capsense_DisplayButtonState'
!E E:\amit\myPRO\MY_CHK~1\MY_CHK~1\main.c(73): insufficient number of arguments to `Capsense_DisplayButtonState'
make: *** [obj/main.o] Error 1
the display function is defined for the 2 BYTEs(#1BYTE-->#1-#8 Buttons, #2BYTE-->#9-#11Buttons)
//display button state
Capsense_DisplayButtonState(CSA_EMC_baSnsOnMask[0]);
Capsense_DisplayButtonState(CSA_EMC_baSnsOnMask[1]);
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should check the declaration for your Capsense_DisplayButtonState(). How many parameters did you declare?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bob, you got it right. I was taking the two variables for the #1 & #2 bytes.
While doing that I was specifying the Capsense_DisplayButtonState(), separately for the both.
Instead when I got the in single display function the errors got vanished.
Happy to reach the edge, now waiting for the boards to come; as to test them n the code.\
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob, another thing I wish to understand is about the Hardware. Here I'm attaching the User Guid for the same product I'm working on, go through it as it may help you answer my querry.
Q. What is the role, necessity & effect of the R33 & CMOD in the operation of the board.
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What board are you using ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dana, I'm using the standard board from Cypress as a reference. The H/W is mostly similar to it.
The Board used for the reference is:- CY3280-BK1.
The placing of the R33 & CMOD is same as Std. board.
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@ Dana, also the controller used is from the family - CY8C20X34
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, I have my board working properly when I switch it ON (Capsense Buttons sensing finger properly).
I have mounted the corresponding LEDs to indicate the o/p.
But when I keep it (the buttons ON & also corresponding LEDs) for >20 minutes the LEDs start fluctuating or blinking. Aslo after this when I try to operate them they do not respond.
After some time they start to ON & OFF on there own.
But when I remove the power supply & re-connect it the board works good again & follows the same as all above.
Why would that happen? What do I need to do to resolve this? Is this the problem of the H/W?
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks a bit like a pwer-supply / temperature problem.
Monitor the supply voltage for any changes. Check for glitches/Noise on supply (use a scope, set to ac and high gain to watch noise).
Check temperature of the PSoC.
Does a reset cure the error for another 20 minutes or is a power down required?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some more questions:
How many LEDs ?
What is the supply voltage?
What is the value of the series resistor for the LEDs?
Are there other devices connected except buttons and interfaces?
What is the total current consumption of your board?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob, I haven't worked on the RST since I don't have the provision for it.
Some more questions:
How many LEDs ?
8 LEDs for 8 Buttons.
What is the supply voltage?
Supply to the board is 230V step down to 0-15V, then it is 12V down to the board. This 12V is converted to 5V by the onboard circuitry & given to controller & others on board.
What is the value of the series resistor for the LEDs?
Its 1K ohm.
Are there other devices connected except buttons and interfaces?
None other than the BTNs, LEDs & interfaces.
What is the total current consumption of your board?
Don't have a clear idea, but it should be less than .5A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have a 7V drop in final regulator 12V to 5V, and running 1/2 A
thats 3.5W, so regulator should have a good heatsink on it. Sounds
like the regulator is going into thermal shutdown and cycling in and
out of shutdown. 3.5W will fry an egg many times over....This manifests
itself as a very low speed oscillation due to thermal mass time constant
of package.
Calculating thermal R needed in heatsink -
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there,
I wish to build a Adjustable (300VA) Fast Battery Charger with
1. Voltage Control &
2. Current control
accessible & tunable by user.
<85% charging should be through boost charging & remaining 15% through trickel charging.
Also I need auto turn-off at full charge.
Suggest me the schematics.
Also suggest the possibilities in case of programmable area.
Thanks & Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shouldn't be that a new thread with a meaningful topic?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What solved the earlier problem ?
For battery charging -
www.cypress.com/ AN55102
www.cypress.com/ AN2361
www.cypress.com/ AN4002
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dana,
that was an hardware error; I had placed that controller, then removed it & again placed the same.
After our conversation I removed it & placed another controller & it worked fine.
Thanks & sorry for not updating about the result.
Regards-
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
sorry to put it in same line. I will definitely get it to new topic, so that it will be easy to work on.
Thanks & Regards-
Amit