7 Segment Display Array controller with UDB components | Cypress Semiconductor
7 Segment Display Array controller with UDB components
I'm new in this comunity. I've start programming psoc 2 year ago and now i'm trying to learn Verilog for programming directly UDB cells.
Taking current task to do that i'm trying to do a 7 segment dsp controller. My current task is: capacitive keyboard with uart and 2 7 segment dsp, this board have psoc 4 on it (cy8c4245axi-483). i'm sorry, i work for embedded board producer (as a programmer).
Capacitive keyboard and uart protocol are already written and running.
The esyest way to control 7seg dsp is to write a software library, driven by an interrupt, that print 1 digit every 20ms (50hz). I have just used this way. Now i'm trying to move some of this work in an UDB block.
This block must store all current digits values and loop commons giving out segment of current active common.
After many night of trying and fails i wrote a verilog file for this block, in attached txt. This block store values in fifo and continue to shift digits by loading this value in A0 and then save it again in F0. With this method max number of digits are 4, but i need 5, so i load f0 in D0 register and then in A0 and finally save in F0.
Datapath will not do something complex, only take data and shift it so i can see it in parallel output.
Now i've 2 problem: 1st is that i have not try it yet beacuse i have to write api for it and i have not clear idea to how load digits in fifo and d0 in initialization process, i have not yet study how to use directly fifo and datapath register and how to write on it. I seen that using UDB editor it, after compiling, give out a simple api to write in A and D register of datapath and an someting for fifo but i not yet read that code.
2nd problem: at this point this block are using 4 PLDs, with 1 UDB block... so 2 UDB block are used. psoc 4 have only 4 UDB so low resorces! i've to light my code. Anyone think that this is possible? i'm sorry, anyone think that i can light code till using only 25% of device resorces (execpt pins obviously)?
To close this boring post, if any other suggestion... i'm here for it, for learn how to use it. I think this device i soo powerfull.