PSoC™ 5, 3 & 1 Forum Discussions
I am develloping an application to read from multiple sensors using the I2c API on PSoC 5LP. I know the API functions such as I2C1_mstrWrBufIndex use interrupts to write multiple bytes. The usual way to use this function is to poll MasterWriteBuf to know when all data has been sent. What I would like though is to be able to send multiple byte to multiple devices (and rstarts) by constructing a queue (liked list) and uses interrupts to send new packets with minimal CPU intervention.
I prefer not to modify the interrupt functions used by the API (I could call a function from this interrupt). My question is if there is a way to trigger an interrupt from the MasterStatus value. This trigered interrupt would then use the API to send a new packet. Or if there is a way to use directly the I2C API to send multiple packets without having to wait for each of them to be sent.
Show LessDear all,
Currently I am using CY8C29466-24PXI to develope a device which wakes up in a short time interval and goes into sleep modes for most of the time. After reading a related application note: AN47310. I have got a brief idea how I should implement the sleep mode with different modifiers. After doing several test, this is the amount of current draw by the development board (I am using CY3210-PSoCEval1 so the current drawn by LED and voltage regulator are also included):
Operating mode: ~26mA
Sleep mode (No other configurations): ~23mA
Sleep mode with sleep timer activated: 15mA~17mA
Sleep mode with sleep timer activated (Sleep timer API used): 23mA
Sleep mode (With all configured modifiers and sleep mode is inactivated): ~9mA
So I do not know how I should utilise the sleep timer module whilst minimising power consumption. So far as I observed, the PSoC does not reduce much energy with activated sleep timer module? Also, the system halts and some point when I implement sleep timer API, I have no idea how should overcome this.
Enclosed please find my project file. I used the example code from AN47310 and modifed it for my own purpose.
Any ideas/assistance are much appreciated. Thank you very much!
Show LessI need to capture a bitstream into a buffer, and I was happy to find a shift register component that should have made this a 1-hour task. 24 hours later I'm still scratching my head. The interrupt output does not seem to work. and the DMA Wizard does not recognize the shift register component as a source.
The attached project illustrates the problems. Am I missing something, or are these a bugs?
Show LessHello ALL
I was going through the SPI datasheet and near TX and RX status register part i found this word "Sticky bits"
What are sticky bits
Show Less
Hi,
Iam new to PSOC devices. Iam using an CY8C5888 witch is a very cool device. I have played around with the USBUART component and I have noticed a strage behavior. When I plug the USB in my notebook docking station or USB hub then all works fine. But if I use one of the USB ports witch are located in my notebook then the Windows 7 tells my that there is a unknown device. The Vendor PID is 0 and Iam not able to install a driver.
Dose anyone have a idea what could be the reason? (The USBUART example from the PSOC creator studio dose have the same behavior. )
thanks a lot for your answers!
Show LessHi every body!
I'm doing a project with PSoC 1 CY8C24123A.
Hardware:
-My software on PC - COM cable - RS485 to COM circuit (have MAXIM232 (1 device)- MAXIM485(1 device)) - CY8C24123A board (have a SN75176B...).
A,B signal of SN75176B conect to A,B signal MAXIM485.
(I'm using RS485 standard, baudrate is 19200).
-Communication between PC and CY8C24123A via UART user module, but TX and RX connect to same pin.
-Pin P0.4 is TX and RX. I have to configure pin 0.4.
-P0.2 control SN75176B to transmit or receive data. P0.2 = 1 transmit; P0.2 = 0 receive.
Contents:
- PC will send data to PSoC, after that PSoC send data to PC.
-If PSoC received 3 bytes 0xAA from PC. After that PSoC send 0xAA ,0x31, 0x00 to PC.
-If PSoC received 3 bytes 0xBB from PC. After that PSoC send 0xBB ,0x33, 0x00 to PC.
But communication is not good.
Some times, PC received data fail or receive data not truely.
I think when I switch between TX and RX at the same pin not well!
Can you tell me solutions to solve that problem?
Many thanks.
Below is my project!
Hi.
I've got a project in PSOC Designer with CY8CLED04D01-56TLXI device. Last night i could programming with miniprog3, and i turned on all of my four LEDs, but onces turned off 3 LEDs suddenly, only 1 still on. After i try to programming again, but only blinking the target LED, amd nothing happens.
Please help me.
Thanks,
Botond
Hi there,
I use Full mailboxes with the FIFO functionality and I want to have 4 FIFOs in total. Consequently, I link receive mailboxes 0 to 3, 4 to 7, 8 to 11 and 12 to 15 together. Then I set the following IDs for the four groups: 0x10B, 0x30B, 0x50B, 0x70B. IDE is 0 since I want to communicate with 11-bit-COB-IDs. Every configuration until now is done with the GUI.
If I run my program and print the contents of my ACR/AMR register to the LCD they do not match my GUI configurations (e.g. the IDE bit is set in the ACR). Why is that? Further, although they are linked together, mailboxes of the same group seem to have slightly different ACR/AMR configurations. Do they simply not apply in the FIFO case or what am I doing wrong?
Thanks in advance!
Show LessHi there,
I am wondering whether there is a choice between an interrupt and a polling mechanism for receiving a CAN message.
All examples I found imlement the reception of a message with the automatically generated interrupt routines.
Is polling also possible? Therefore I could imagine polling mechanism in the main routine, which checks the CAN_RX_ACK_MSG bit in the CAN_RX[mailboxID].rxcmd register, which signalizes the receipt of a new message, right? If that is the case, lets consider the use of Full CAN mailboxes with FIFO functionality. Can I somehow release a mailbox/message to let it receive a new message or to let a message drop from the beginning of the FIFO?
Thanks in advance!
Show Less