Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Large PSoC 5 design

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Large PSoC 5 design
Moderator:
ANCY

Post Reply
Follow this topic



Large PSoC 5 design

SpiderKenny posted on 13 Jul 2012 2:41 AM PST
Top Contributor
83 Forum Posts

For those of you interested in PSoC5 designs I though I'd post an image of my PSoC 5 implementation.

This system forms the heart of a large multi room audio system (a 4 x 4 audio matrix with DAB radio and an iPod dock).

The PSoC implements 4 UARTS, has 5 I2C devices attached, can learn any IR Remote control signal, and can output to any of 4 IR Transmitters. It drives 2 relays and 4 class D amplifier chips. It has 5 LED indicators and a USB port for bootloading new firmware. The PSoC also connects to another processor (PIC) for ethernet control. 

The PSoC is built directly into the main board, not attached by means of any dev kit. 

The image of my design is attached. I cannot post the entire project for obvious reasons but I'm happy to answer questions about it, and of course face criticism of it!! 

 




Re: Large PSoC 5 design

Helmut posted on 13 Jul 2012 06:53 AM PST
Top Contributor
48 Forum Posts

 I guess you have a reason for bit banging the I2C to TDA.  Is it because you ran out of PSoC resources, or is it because the TDA requires slightly abnormal I2C timing?  If the reason is the latter, consider a solution like I used recently for abnormal SPI timing.  The chip select line for a particular chip had additional meaning overloaded on the line, based on the length of time the line was active.  After forum user "hli" suggested it, I used a regular SPI component, but fed the the ss (slave select) into a PWM configured as retriggerable one-shot, before that signal exited the PSoC.  Thus, I was able to change the exact timing of the chip select line, both for initial active edge and active duration (aka final active edge).  The lesson learned here is that you can do any number of manipulations to a signal line coming from one component before you send it out of the PSoC.  Just think big!



Re: Large PSoC 5 design

SpiderKenny posted on 16 Jul 2012 03:11 AM PST
Top Contributor
83 Forum Posts

 HI Helmut

Thanks for your comments. 

As for why the I2C for the TDA chips is bit banged...

It has to go to 4 identical TDA chips, all with the same address and no chip-select lines. I tried multiplexing the SCL line to 4 pins on the PSOC but there's no way to do this on-chip since it is a bidrectional signal. I don't use clock stretching and do not need to check for it, but the I2C component won't let you multiplex its SCL or SDA lines - so I just take them off-chip and through a quad AND gate - this was early in the design when I was using an I2C component, and it got into the hardware, and then I changed to bit-banging the I2C, at which stage I could have gone to on-chip multiplexing - but the boards were comitted to the board house. I could go back in a future revision, but that would break backwards compatibility with the firmware.

 



Re: Large PSoC 5 design

kmmankad posted on 19 Jul 2012 02:23 AM PST
Top Contributor
268 Forum Posts

Why offload the ethernet task? Get a cheap ENC28J60 board and feel free to port my code,originally written for the PSoC3. I have done everything except add DHCP support. Check out that code here https://github.com/kmmankad/ENC28J60-PSoC3



Re: Large PSoC 5 design

SpiderKenny posted on 20 Jul 2012 03:05 AM PST
Top Contributor
83 Forum Posts

 Thanks - I will take a look at that. 



Re: Large PSoC 5 design

danaaknight posted on 22 Jul 2012 03:52 AM PST
Top Contributor
1773 Forum Posts

There are a lot of other vendors with E projects, many relatively easily ported.

Atmel, PIC, Freescale. Port them to a part with ANALOG FROSTING and all is

good.

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20