PSoC™ 5, 3 & 1 Forum Discussions
Hello
CyFiSNP has a strange behavior.
I had been watching the CyFiSNP data packet, and find it.
For example, case of using the FTK-3271.
Sometime number of message queue is increasing when Hub is busy.
When Hub comes ready, message queue is processed and queue will go decreasing.
This is a normal process, but decreasing will never stop.
Look at this, this is a my data packet dump.
Number of remain queue will not stop at zero and repeat it eternally.
Waste packets is transmitting forever.
...
ID=1 pre=D rss=8 que=2 dat=17414 : :44 :06 :70 len=3
ID=1 pre=D rss=8 que=1 dat=17414 : :44 :06 :71 len=3
ID=1 pre=D rss=7 que=0 dat=17414 : :44 :06 :72 len=3
ID=1 pre=D rss=7 que=254 dat=17414 : :44 :06 :68 len=3
ID=1 pre=D rss=9 que=253 dat=17414 : :44 :06 :69 len=3
ID=1 pre=D rss=8 que=252 dat=17414 : :44 :06 :6A len=3
...
I had been checking CyFiSNP module routines
But can't get a clue, I can't figured out where this was processed.
CyFiSNP system has complex routines
So some error still remain, it can't help, I guess
However, this is a fatal error, I think
Please Investigate it and Fix it.
Regards.
Show Less
Can the PSoC device be used to test the strength of a battery and display it using the LCD? I have looked everywhere for info on what I would need to create this project but to no avail. If there is, what user modules would be needed?
Show LessHowdy,
I am getting ready to do a Real Project with a PSoC and am familiarizing myself with the toolset. We have a simple board with a CY8C20437, one debug LED, ISSP header, some capacitive switches and an I/O header.
I wanted to do a "hello world" by blinking my LED periodically. Fair enough...throw in an LED user module, can turn on and off. Well and good. Timer16...big problems. (Incidentally, I've gotten the same sort of idea to work with a Sleep Timer...and I'm not even sure I'll need a full timer on my project, but it's the thought that counts - I have to figure this out now, or it will bug me for weeks!)
Basically, my LED blinks every timer interrupt - even with no LED toggle call.
Yes, I put an lcall into the TIMERWHATEVER.ASM file. If I don't have it, or if I comment out either the Timer_EnableInt() or Timer_Start() call, the LED stays off. (I set the pin up to default on, then turn it off at the beginning of my code.)
If I didn't know better, I'd say it looks for all the world like I'm getting a watchdog reset. But I know better, because WDT is (was) disabled. Actually, the code I'm attaching has it enabled and fed quite regularly just in case (actually, if I don't feed the poor watchdog, the LED stays on all the time...another interesting data point).
Using PSoC Designer 5.4. Project and relevant schematic attached, although I really am just trying to follow the Timer16 d/s example. Some of the code is from other ideas I've been trying in order to troubleshoot, i.e. don't take it as exactly my project code (notice some things are commented out). Even without the other toggley count and toggley stuff I get the same problem.
I can't help but think that I'm missing something really simple here, but I just can't figure it out or find it in any UM d/s....
Anyhow, any and all help will be appreciated!
Chris
Show LessI'm having a bit of trouble with character LCDs. I have a 2x16 and a 2x24 LCD , both have, or are based off of, the Hitachi 44780 chip. The LCD circuitry is assigned PORT0[1-7] (per psoc creator 3.0) and both LCDs are brancd new.
So, I power up the PCB I initialize everything and the LCD starts displaying data ( the PCB also has a heart beat LED).. Ok, we now know the PCB/LCD is ok. However, after some random amount of time the PCB will appear to be hung (heartbeat stoped) and the LCD is no longer showing changes (sometimes incorrect chars are displayed, but not always). If I power off/on the PCB the same thing happens but not always in the same place. If I unplug the LCD cable while the PCB appears hung the heartbeat now works.
Ok, so I now enable the debugger (Miniprog3) a let it run. Maybe I'll see a buffer overflow or something causing the LCD to shit itself. Nope. Couldn't be that easy. With the debugger enabled and running the PCB never stops (LCD keeps working too).
To me this now looks like a timing issue, where the debugger slows things down just enough to run propperly. I've tried increaing the delay in LCD_WrDatNib(uint8 nibble) from 1us to as high as 4us, but no help.
Has anyone had trouble like this?
Any other suggestions?
Show LessHi Fellow Community Members,
Recently I got a chance to lay my hands on a simple servo motor (of type TS-53), which had to be interfaced with PSoC 3. Thought of sharing it on the forum.
This interface required the PSoC to give a PWM signal with the high pulse varying between 1ms and 2ms. 1 ms corresponding to 0 degrees and 2ms corresponding to max rotation possible (close to 150 degrees in my case).
The dead time between the two pulses was 40ms.
The on-board potentiometer available on CY8CKIT-001 was used to vary the position of the shaft.
The project is attached along with this post. It may come handy if someone is working on similar servos.
Show LessIn the following Kits :
CY8CKIT-001
CY8CKIT-030
CYC8KIT-050
There is a problem with Hardware Handshaking in that the CTS/RTS pins are swapped on the development kits.
This is a hardware/PCB error on the circuit boards and can only be fixed by a wiring change.
There are two workarounds to this problem :
1) Don't use hardware handshaking, select software handshaking (3 wire protocol) only.
2) Wire a DB-9 Female to DB-9 Male adaptor plug with the following pinout :
2 -> 2
2 -> 3
7 -> 8
8 -> 7
regards,
Tom Moxon
www.moxon.com
I am developing a firmware for a custom board based on PSoC 3.
I am currently using PSoC Creator 3.0 updated at last version with all the components updated to their last version.
I decided to try to implement bootloader capability to my board to be able to distribute new firmware updates to customers without the need to have a MiniProg.
Following the Application Note AN68272 I was able to upload new firmware into my board through UART and I was happy to see that everything seemed to work fine. When I tried to perform a complete check about all the functionality of my firmware, I discovered that some of the pins were not properly driven.
In my specific case I use a PWM block to drive 2 DC motors with 2 H-Bridge. When I use the same application updated directly through MiniProg programmer, the two motors work fine, but when I update the firmware using bootloader capability, one of the two motors does not move at all.
NOTE:
the bootloader block has the "Bootloader application validation" checkbox checked and the "Fast bootloadable application validation" checkbox unchecked. I use the bootloader host program included in PSoC Creator 3.0 to upload my application, and I also tried to verify the uploaded application (with the bootloader host application) and everything seems to be ok.
Does anybody experienced similar problems? Is there someone who can give me some advicecs or other attempt to do?
Thank you very much.
Show LessHi,
I rencently began some tests on 2 CY3275 devkits communicating together (low voltage 12/24V PLC devkits).
I displayed the output signal (FSK) on an oscilloscope and figured out that the packet isn't transmitted within the expected time.
I modified the example programs in order to send a full 39B packet (1B (0xAB) + 6B header + 31B data + 1B CRC). So it should take approximately 130ms @ 2400bps to be transmitted.
The oscilloscope shows me that the packet takes 200ms to be transmitted.
Show Less