PSoC™ 5, 3 & 1 Forum Discussions
I was trying to get sample code for the RTC working on my PSOC5 kit with ES1 silicone and I may be running into one of the known issues..
If I program and run the code, it writes to the LCD once then seems to hang.
If I debug and put a breakpoint in the main loop, and "play" from that breakpoint after waiting a second, it will update the LCD each time and come back to the breakpoint. If I "Play" from the breakpoint wiht less than a second delay, it never returns to the breakpoint and never updates the LCD any more.
In this document on page 7, item #21:
http://www.cypress.com/?docID=22245
It states that it won't wake from sleep cleanly, and recommends defining a compiler macro for CYLIB_POWER_MANAGEMENT in the project build properties under compiler. Being a noob, I can't seem to figure out what this means, nor can I figure out the right keywords to find any useful information on creating compiler macros to figure it out.. A little help would be greatly appreciated. I already figured out the clock setup mentioned in the same item (I think..)
If I comment out the sleep routines and prevent that from happening, the RTC is alive and well and updates the LCD with no problem. Attached is my project. (with the sleep routines commented out in the main loop
Show LessHi All,
The deadline for Phase 2 has been extended to March 28.
If you still haven't submitted your design, block diagrams and videos, you have about a week to do so.
So, hurry up!
All the Best!
Show LessIf you want one more entry, I guess you will have to extend this phase a couple of days.
I am trying to get uCos to work, I have a small keypad program as a set-up to build from. I have no errors that I can see yet uCos never leaves my lowest priotiy task.
I have three tasks Start Task (priority 2) which initializes several things including timers and starts Keypad Task and Display Task.
Keypad Task (priority 5) scans the keypad and includes calls to OSTimeDly and OSSemPost, both functions run without errors, however the task never returns once it is started.
This pervents my main Display Task (priority 4) from running. The Display Task which makes a call to OSSemPend on the flag from Keypad Task never gets reached because Keypad_Init never returns, instead Keypad Task constantly scans the keypad and posting semphore which go unchecked by Display Task. All three tasks have OSTimeDly's.
I will include the code for Keypad_Init, hopefully someone who is familiar with uCos can help me.
Hi,
could someone point me to some code examples in the new API(Beta 5) for SPI Communication?
As i understand it,i need to fill the TX buffer fully before transmission begins,but if i only want to send one byte and not 4 (the min buffer size is 4) ...what then?
Show LessThe purpose is to monitor an incoming digital signal. If there hasn't been a high signal in 15 min then it should set an output pin to high.
We want a 15 min timer to be reset if a digital input Pin is high. If the timer reaches 0 then set a different digital Pin to high. This digital pin should be the input to some other logic (the reset on an SR latch)
Ideally we would take advantage of the sleep mode of the PSoC 3/5 as well.
Please comment with any ideas/solutions.
Thanks
Show LessWe're trying to debug a CY8C29466 using an ICE Cube and having no success.
The target board is connected via a 5-pin cable and will PROGRAM successfully with Programmer v1.0.2101.0
but the Debugger v1.0.2101.0 will not even connect with the same board.
We're using PSoC Designer 5.1 (downloaded the latest today, just in case) on Windows 7 Professional 32-bit.
Are we missing something obvious here?
Wade Hassler
Show Lesshi, all
how can we connect external input to psoc3 device using creator. whatever input ports are availble inside the kit that how can we connect with some exteranl source..
if any one knows please reply me
Show LessPointing Cortex M3 Systick timer to your fonction using Cylib will not work if you use SysTick_IRQn definition from core_cm3_psoc5.h
CyIntSetSysVector(SysTick_IRQn,YourFonction) this do not work.
Because SysTick_IRQn is define as -1 in core_cm3_psoc5.h
Systick vector number is 15.
So this works: CyIntSetSysVector(15,YourFonction);
One more thing, SysTick_Config() do not specify which clock is used.
In my case because I used USB, I deducted that the clock used was 48MHz.
So to get 1ms ticks I used :
if(SysTick_Config(48000)){while (1);}
I guess default clock is one of the clock at 48Mhz, but when I consulted the documentation, I was told that the clock for systick would be ILO.
Maybe I did not use the proper definition, but it is at least confusing.
It should be clear which clock is used and what definition we should used.
I proposed that CyLib should be modified so that CyIntSetSysVector works with SysTick_IRQn definition from core_cm3_psoc5.h
I also proposed that SysTick_Config should be modified to include clock selection if it is possible or to specify which clock is used.
jmer
Show Less