My PIC processors will be running at a full 20MHz. Both SRAMS are to have there own address generators, however I do not want the pics to generate the actual address. What I want the pics to do is just inform the address generator logic to either increment the address point, decrement it or reset it. PICa will not be writing to the same bank as PICb will be reading from, hence the reason for separate buses for the RAM. The reason for this, is that I must have as fast as possible access to large amount of buffer ram. This is for fast rastering motion with a laser cutting system. I'm talking in the order of 100 inch per second * pixel resolution perfermance. Regards, James -----Original Message----- From: David W. Gulley [mailto:dgulley@DESTINYDESIGNS.COM] Sent: Monday, April 23, 2001 1:01 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: 24Bit Up/Down Counter at 40 MHz James Lee Williams wrote: > I want to use only these three signals coming from a pic to control the > addressing to the ram. However, I can seem to find any counters with > this number of address lines. Does anyone have any suggestions for > tackling this. The reason for this, is that I want to be able to read > data from the ram in not more that 3 instruction cycles. You can build up the counter with discrete logic, PALs or use a CPLD. > Also, maybe someone can also give me some suggestions on how to have > this ram accessable from two different pic devices. One pic will only > write to the ram, while the other pic will only read from the ram. > However, I will in reality have to of these 512Kbyte chips, configured > in such a way that one pic can write to RAM of chip 1 while, at the same > time the other Pic will be able to read from chip 2. The trick here is > that the the data buses much be able to be released from each Pic or > inserted. But never both Pics at the same time. I have been thinking > about using a dual bus transciever for each RAM chip. Then use hardware > logic to prevent simaltaneous access to the same chip by both > controllers. If anyone any clever ideas on this or comments, you input > would be greately appreciated. You have not provided much information, regarding: will both PICs share the same address generator, (writes on PICa to be at same address as reads on PICb?) or will you have to control which PIC controls an address generator for each the two rams? could a single ram be "time sliced" such that during 1 phase PICa has access and during the next PICb? are there a cost/area/power limits on the design? what speed are the PICs running? what speed SRAM are you planning? A single SRAM and CPLD (or FPGA in the ~$10) range may be handle all of the above (including data bus separation, dual counters PIC arbitration, etc.). David W. Gulley Destiny Designs -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics