Welcome to Planetpsoc

Warning - UART should not be used in the CY8C24x94 devices without connection to the USB bus

E-mail Print PDF
( 0 Votes )
Question: When using UART on CY8C24x94, following DRC warning is generated:

“UART should not be used in the CY8C24x94 devices without connection to the USB bus”.

Why is this error generated? What should I do if I do not need to connect to the USB bus?

Answer: For a UART to work, the error on the clock should be <4%. Both the receiver and transmitter contribute to this error and hence, the clock on the PSoC should not exceed 2% tolerance.  Generally, PSoC devices have an IMO with a tolerance of 2.5%.  But for the CY8C24x94 device, the tolerance is 4%.  So, if the UART clock on the other end of PSoC also has some error, there will be communication errors.  When the USB is used, the IMO is synced with the USB bus clock and becomes very accurate and will prevent any UART errors.  The warning is generated to inform this condition.  There are a few options to follow under this situation.

1. Use an accurate External clock with a tolerance of <2% on P1.4 for the SysClk

2. If the device at the other end of the UART is driven by a crystal osciallator and does not contribute to the error budget, PSoC can use the 4% error budget and you may not have any problem in the communication. But this is still not a recommended solution.

3. Send only 4 bits at a time on the UART.  As the clock tolerance affects only the bits farthest from the start bit, transmitting only 4 bits at a time will prevent bit errors.  The first 4 bits of a UART frame should be the data bits and the next 4 bits should 1's.  So, to send 0x59, you would send 0xF5 first and 0xF9 next.

4. If you are not planning to use the USB, then consider using other family of PSoC devices that have 2.5% tolerance on the IMO.  You could try the CY8C27x43 or the CY8C29x66 families/

All things said, the PSoC IMO is trimmed using a trim register in the boot.asm file.  This will increase the accuracy of the clock to atleast <2%.
  So, if the PSoC is operating under very normal temperature conditions, you may not get any error at all.  But this approach is definitely risky.

 

Interfacing PSoC to an SPI EEPROM AT25080

E-mail Print PDF
( 1 Vote )
AT25080 from ATMEL is a serial EEPROM with SPI interface.  The device has 8192 bits (1024 bytes) of EEPROM that can be controlled using a 4 wire SPI bus.  This example project demonstrates how to interface a PSoC to this device and read and write an array of data using the SPIM user module.

The project and documentation can be downloaded from the below link from Cypress website

Interfacing the PSoC to an AT25080 Serial EEPROM



 

Interfacing a PSoC to MPXM2102A Pressure Sensor

E-mail Print PDF
( 0 Votes )
The MPXM2102A series device from Freescale Semiconductors is a silicon piezoresistive pressure sensor providing a highly accurate and linear voltage output — directly proportional to the applied pressure. The sensor is a single, monolithic silicon diaphragm with the strain gauge and a thin–film resistor network integrated on–chip. The chip is laser trimmed for precise span and offset calibration and temperature compensation.  It measures the applied pressure with reference to the built in reference vacuum and provides a differential analog signal.  It measures from 0kPA to 100kPa with a change of 0.2mV/kPa.

This example project demonstrates how to use
the PSoC1's analogs to measure pressure from this sensor.  An INSAMP and ADCINCVR user modules are used to measure the voltage from the sensor an LCD user module is used to display the measured pressure.  The documentation and project can be downloaded from the below link from Cypress website.

Interfacing a MPXM2102A Pressure Sensor


Attachments:
FileFile size
Download this file (MPX2102.pdf)MPX2102.pdf300 Kb
 


Page 4 of 22