multiple inputs issue :] Need help :]

Status
Not open for further replies.

Pavithra89

Member level 2
Joined
Mar 18, 2013
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,695
Hi edaboardians
I need your help. Hope I get some solution.How to accept multiple inputs and latch them into registers?
I'm using a 8051 micro-controller and FPGA connected to each other because of which I've got only some pins available to do some operations.
Basically what I've to do is store some values in look up table in 8051 and send these to FPGA . In FPGA, I have to employ 4 programmable down counter blocks that takes values stored in LUT's in 8051 as preset values for counter.
I've done some thinking and have drawn & attached a simple schematic as to what I have to do.
As per the schematic, register1 holds first row of LUT i.e., 'A', '1', '2' each are of 4bit wide and this is the preset value for counter1 and 2nd row for counter2 and so on......
I'm able to write the code for MC part and send the data but the problem is I'm not getting how to latch the data into the registers in FPGA.
Fun part is that I've got only 8 pins available which is connected to FPGA--- among which 4 pins for data_in, 1 pin to produce a clock using timer to drive FPGA and 3 more which s not doing any job
I need some idea as to how to do it. Please guide me in this. Any suggestion is accepted ....
Regards
 

Attachments

  • untitled.bmp
    995.7 KB · Views: 86

Hi TrickyDicky
Thank you for ur reply
What is Register address? Im confused...
Regards
 

With 3 bits, you can use them to select which register to write too. 000 means reg 0, 001 means 1 etc. You asked how you could chose which one to write to.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…