PSoC™ 5, 3 & 1 Forum Discussions
Using the API DieTemperature on PSOC5 (CY8C5588AX*-060) returns a temperature with an offset of app. -42Deg. E.g. the Chip has 25°C, the funktion returns -17°C. Anyone to help me ? The API returns no Error.
Greetings,
Christian Finger
Next Energy
http://www.next-energy.de
Dear Moderator,
I don't see any support here for PSoC5. None of my questions (availability, EMIF) have any response
from the community or Cypress support staff. Should I think twice before selecting PSoC5 for the project?
Regards
Jan
Show LessHas anyone tried SPI via DMA to memory on PSoC5?
I have CY3271 PSoC firsttouch starter kit,
i began by following the examples given in CyFi training videos
when i try to build any project, an error occures
This is the error report
______________________________________________
Generating Tnode project...
Starting MAKE...
creating project.mk
lib/cyfisnp_debug.c
process_begin: CreateProcess((null), cpsoc.exe --asmlist --errformat --chip=CY8C27443B --WARN=0 --OPT=asm,9 --pass1 --double=32 -q -I./lib -IG:/PROGRA~1/Cypress/Common/CY3E64~1/tools/include/CY8C27~1 -Olib/obj/cyfisnp_debug.p1 lib/cyfisnp_debug.c, ...) failed.
make (e=2): The system cannot find the file specified.
G:\PROGRA~1\Cypress\Common\CY3E64~1\tools\make: *** [lib/obj/cyfisnp_debug.p1] Error 2
Tnode - 1 error(s) 0 warning(s) 10:36:53
_________________________
I tried several times, how can i solve it
Show Lessi want to transfer data from flash to sram using DMA. and i want to display data on segment LCD transfered in SRAM .but i think this DMA is not working properly.i am not using character LCD.
Show LessI've attempted to build the circuit outlined in this application note. Unfortunately I haven't been very successful. I am unable to get the chip to generate anything into the switching circuit. We've adapted the same code to work on the evaluation board for the psoc3 and have been successful there, but when adapting to this circuit, it does nothing.
Is there anyone who has successfully been able to produce this circuit that might have some pointers or suggestions?
Show LessI need a delay. I researched the documentation and found nothing other than the command os_wait. I obviously have missed something because I get the following:
LIBX51.exe TRANSFER 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\CyBootAsmKeil.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\CyDmac.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\CyFlash.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\CyLib.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\cymem.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\cyPm.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\CySpc.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\cyutils.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\KeilStart.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\DnCounter.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\DnCounter_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\Feature_Clock.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\FEATURE_COUNTER.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\FEATURE_COUNTER_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\Prism_Clock.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM12.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM12_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM34.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM34_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM56.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM56_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM78.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\PrISM78_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED1.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED2.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED3.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED4.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED5.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED6.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED7.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\RED8.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\State_Clock.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\UpCounter.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\UpCounter_PM.OBJ', 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\cyfitter_cfg.OBJ' TO C:/Users/AndyE/Desktop/play/play.cydsn/DP8051_Keil_816/Debug/play.LIB
LX51.exe 'C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\main.OBJ', './DP8051_Keil_816/Debug/play.LIB' TO "C:/Users/AndyE/Desktop/play/play.cydsn/DP8051_Keil_816/Debug/play.omf" PR(C:/Users/AndyE/Desktop/play/play.cydsn/DP8051_Keil_816/Debug/play.map) IX CODE DW(16) RU CL(XDATA(X:0x0000-X:0x1FFF)) CL(CODE(C:0x0000-C:0xFFFF)) CL(CONST(C:0x0000-C:0xFFFF)) CASE
*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _os_wait
MODULE: C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\main.OBJ (MAIN)
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _os_wait
MODULE: C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\main.OBJ (MAIN)
ADDRESS: 1000B52H
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _os_wait
MODULE: C:\Users\AndyE\Desktop\play\play.cydsn\DP8051_Keil_816\Debug\main.OBJ (MAIN)
ADDRESS: 1000B84H
Program Size: data=19.0 xdata=213 const=525 code=5027
The command 'LX51.exe' failed with exit code '2'.
This is the code. I left out the init() function because it does nothing but start commands for the prism and counter.
#include <device.h>
#include <rtx51tny.h>
void main() // Main Program
{
int i;
init();
while(1)
{
i = Feature_Counter_ReadCounter();
PrISM12_WritePulse0(i); // Channel1 Level set
PrISM12_WritePulse1(i); // Channel2 Level set
os_wait(K_IVL, 500, 0);
}
}
/* [] END OF FILE */
Hi All,
I am currently trying to interface a Texas Instruments ADS8328 16-bit A/D chip to my CY8KIT-001 (running a PSoC5 processor module), and am having trouble with the SPI communications between the two.
The PSoC5 uses a 16-bit SPIM component operating in mode 2 at 12Mhz, with MISO + MOSI, and MSB first. I am able to write initial configuration data from the PSoC5 (master) to the ADS8328 (slave) without a problem. However, when I try to read the configuration word back, the PSoC5 consistently fails to clock in the last bit.
So for example, lets say I send the initial configuration word "0xE6FD" to the ADS8328. In order to read that configuration word back out, I then send the word "0xC000" to the ADS8328, and look to see what arrives in the FIFO read buffer. I have included the function I call to perform this below:
void ADS8328_Initialise(int8* ErrorCode)
{
SPIM_1_Start();
uint16 RegisterRead = 0; // Used for read/write
// error checking.
uint16 RegisterWrite = 0xE6FD; // Manual channel select,
// tag bit disabled.
SPIM_1_WriteTxData(RegisterWrite); // Write CMR/CFR data.
while ((SPIM_1_ReadTxStatus() & SPIM_1_STS_SPI_DONE) != SPIM_1_STS_SPI_DONE)
{
// Wait for CMR/CFR data to be written.
}
if (DEBUG)
{
RegisterWrite = 0xC000; // Read CFR data.
SPIM_1_ClearFIFO(); // Clear FIFO buffers.
SPIM_1_WriteTxData(RegisterWrite); // Write CMR data.
while ((SPIM_1_ReadTxStatus() & SPIM_1_STS_SPI_DONE) != SPIM_1_STS_SPI_DONE)
{
// Wait for CMR data to be written.
}
while (SPIM_1_GetRxBufferSize() == 0)
{
// Wait for CFR data to arrive in buffer.
}
RegisterRead = SPIM_1_ReadRxData(); // Read buffered CFR data.
RegisterRead &= 0x0FFF; // Mask CMF data.
RegisterWrite = 0x06FD;
if ((RegisterRead - RegisterWrite) != 0)
{
*ErrorCode = -1;
}
}
}
I have also attached an oscilloscope capture of the DEBUG code below. In it you can see "0xC000" being written to the ADS8328, and it clocking-out the initial configuration word, "0xE6FD", in response. Now, when I look at the content of RegisterRead before it is masked, I find "0x037E", which is correct, except that the LSB is missing. I have tried checking the FIFO buffer to see if the last bit was left there "by accident", with no joy. Is anyone able to shed some light on this situation, as I must admit that it has me stumped!
Regards
- R
Show LessHi,
I am currently trying to use PLT and ADCINCVR modules at the same time. There are still some ports left after PLT been assigned, however input of ADCINCVR couldn't be assigned from the other available ports. Do you know how to assign the spare port into the ADCINCVR?
The picture attached below is what i am facing now. Input that i need to asssign is Port_0_7 but the ADC itself proposed different input as shown in the diagram while Port_0_7 is not in used.
Your help and reply is much much appreciated.
Thanks,
Alex
Show LessHello. I'm a mid-life career change student looking for guidance in the area of programming devices.
I have extensive programming experience with scripting languages and web development but I'm ready to move deeper into programming. Specifically programming devices.
I am hoping someone can give me some direction in programming with devices. I'm studying the C/C++ languages at this time and would like to get set up to program devices. What will I need to get started as a beginner? My interests are music devices such as keyboards and also Security systems similar to RFID tagging. I hope this is enough info for someone to point me in the right direction.
Thanks in advance
Show Less