Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Code Examples

KevinR_91
Employee

Does Cypress have an example for a low end LED martix driver similar to the component that uses UDBs but without the need for UDBs.  Could this be possible using Smart IO?  Or even a firmware based example would be helpful.

0 Likes
1 Solution
MotooTanaka
Esteemed Contributor

Hi,

I don't know exactly what you are asking for,

but here is a half day hack of mine using CY8CKIT-044 😉

Note: I used a font from

font8x8/font8x8_basic.h at master · dhepper/font8x8 · GitHub

IMG_3053.JPG

moto

View solution in original post

0 Likes
7 Replies
Vasanth
Moderator
Moderator

Hi Kevin,

You can add multiple pins as single logic port and access them together. This can be one way to do it. Please refer the following document "Add Multiple GPIO Pins as a Logical Port" section.

link: http://www.cypress.com/file/127101/download

Best Regards,
VRS

0 Likes
KevinR_91
Employee

VRS,

So then, there is not an example on how to do this?  Adding multiple pins to the same logical port doesn't really answer the question here.  I am looking for a working example.

Thanks,

Kevin

0 Likes
Vasanth
Moderator
Moderator

Hello Kevin,

There is no component available just like in PSoC3/5 devices. But our community members have contributed and made components.

Link:Re: Driving multiple Seven Segment Displays - The PSoC Way!

Using GPIO as port and defining a function to write the pattern using firmware is one way to handle it(As you need solution without UDB). Solution using SmartIO is to be explored. Let me get back to you on that.

Best Regards,
VRS

0 Likes
KevinR_91
Employee

VRS,

Let me know what you find on the Smart IO.  From the link you shared it looks like all of the design require some amount of UDBs (LUT, control reg etc.) So again this is not very useful for our case we are interested in.

0 Likes
KevinR_91
Employee

Any update here?

0 Likes
Vasanth
Moderator
Moderator

Hello Kevin,

It might not be possible from the look of it.

1. SmartIO is a logic fabric which gives additional flexibility on the output from digital blocks outputs. But LED driver implementation needs to take care of the input values to be handled at the input side.

2. Control registers might be essential for the value to stored and processed by the hardware blocks.

3. Smart IO look up tables are hardwired to specific pins, which prevents from switching between common lines using LUT and for driving multiple GPIOs using the LUT output.

So SmartIO might not be the right resource to drive the segment LED matrix.

Best Regards,
VRS

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

I don't know exactly what you are asking for,

but here is a half day hack of mine using CY8CKIT-044 😉

Note: I used a font from

font8x8/font8x8_basic.h at master · dhepper/font8x8 · GitHub

IMG_3053.JPG

moto

View solution in original post

0 Likes