Yahoo Groups archive

68300

Index last updated: 2026-04-29 00:01 UTC

Thread

Chip select timing problem

Chip select timing problem

2004-02-20 by development

Hi All, 
      I am using a 68332 interfaced with a memory bank 
comprising of two HM628512 RAMs ( 70 nS). The chip selects 
of the two RAMs are grounded and the OE and WE of the RAMs 
are being controlled by individual chipselects.

CS0  ----> Odd byte Output Enable
CS1  ----> Odd byte Write Enable
CS2  ----> Even byte Output Enable
CS10 ----> Even byte Write Enable

As this is an obvious waste of chip selects and now that I 
am running short of chip selects, I wish to use only one 
chip select in the place of four.


The equations for the OE and WE are as follows

" Even byte Read signal equation
  RDEVEN  =	(!RW) # A0  # (SIZ0 & SIZ1) # CS;


" Even byte Write signal equation
  WREVEN  =	RW # A0  # (SIZ0 & SIZ1) # CS;


" Odd byte Read signal equation
  RDODD   = 	(!RW) # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 
& SIZ1) # (A0 & !SIZ0) # CS;


" Odd byte Write signal equation
  WRODD	= 	RW # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 & 
SIZ1) # (A0 & !SIZ0) # CS;


  The chip enable pin on the RAMs are grounded as usual but 
the problem that I am now facing is that the RAMs do not 
work as expected which probably may be due to some mismatch 
in timing. I am using a Lattice CPLD of 5 nS speed grade to 
implement the above logic. 

  Can any body suggest as to what may be wrong with my 
scheme or the implementation of the logic?

   It would be a great help if anybody could suggest a 
better and alternate way of doing the same.

Thanks & Regards,
Philip Jones,
Engineer,
R&D Department,
ID Technologies. (A division of mark elektriks)
============================================================
B1/1, Sai Sahawas Apt., \ufffd|\ufffdPhone: +91-20-4003315, 4007158
Oppo. Corporation Bank, \ufffd|\ufffdTeleFax: +91-20-5410479
Maharshi Karvenagar, \ufffd \ufffd |\ufffdEmail: development@...
Hingne (Bk), \ufffd \ufffd \ufffd \ufffd \ufffd \ufffd | www.markelektriks.com
Pune - 411052. India. \ufffd \ufffd|
============================================================

Re: [68300] Chip select timing problem

2004-02-20 by Robert Yablonski

Check the attached schematic.

R. Yablonski


At 04:41 PM 2/20/04 +0530, you wrote:
>Hi All,
>       I am using a 68332 interfaced with a memory bank
>comprising of two HM628512 RAMs ( 70 nS). The chip selects
>of the two RAMs are grounded and the OE and WE of the RAMs
>are being controlled by individual chipselects.
>
>CS0  ----> Odd byte Output Enable
>CS1  ----> Odd byte Write Enable
>CS2  ----> Even byte Output Enable
>CS10 ----> Even byte Write Enable
>
>As this is an obvious waste of chip selects and now that I
>am running short of chip selects, I wish to use only one
>chip select in the place of four.
>
>
>The equations for the OE and WE are as follows
>
>" Even byte Read signal equation
>   RDEVEN  =     (!RW) # A0  # (SIZ0 & SIZ1) # CS;
>
>
>" Even byte Write signal equation
>   WREVEN  =     RW # A0  # (SIZ0 & SIZ1) # CS;
>
>
>" Odd byte Read signal equation
>   RDODD   =     (!RW) # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0
>& SIZ1) # (A0 & !SIZ0) # CS;
>
>
>" Odd byte Write signal equation
>   WRODD =       RW # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 &
>SIZ1) # (A0 & !SIZ0) # CS;
>
>
>   The chip enable pin on the RAMs are grounded as usual but
>the problem that I am now facing is that the RAMs do not
>work as expected which probably may be due to some mismatch
>in timing. I am using a Lattice CPLD of 5 nS speed grade to
>implement the above logic.
>
>   Can any body suggest as to what may be wrong with my
>scheme or the implementation of the logic?
>
>    It would be a great help if anybody could suggest a
>better and alternate way of doing the same.
>
>Thanks & Regards,
>Philip Jones,
>Engineer,
>R&D Department,
>ID Technologies. (A division of mark elektriks)
>============================================================
>B1/1, Sai Sahawas Apt.,  | Phone: +91-20-4003315, 4007158
>Oppo. Corporation Bank,  | TeleFax: +91-20-5410479
>Maharshi Karvenagar,     | Email: development@...
>Hingne (Bk),             | www.markelektriks.com
>Pune - 411052. India.    |
>============================================================
>
>
>
>
>---------------------------------------------------To learn more about 
>Motorola Microcontrollers, please visit
>http://www.motorola.com/mcu
>
>learn more about Motorola Microcontrollers, please visit
>http://www.motorola.com/mcu
>
>
>Yahoo! Groups Links
>
>
>
>
Sincerely,

Robert E. Yablonski


Hunt Dabney & Associates
Electronic System Development and Design
--------------------------------------------------------------------
http://www.huntdabney.com
fax: (714) 540-8131



[Non-text portions of this message have been removed]

RE: [68300] Chip select timing problem

2004-02-20 by Melear Charles-rdph40

Hello everyone,

When you are trying to externally decode signals to develop WE and RD and OE signals, you have to consider multiple cases.  For instance, you have to consider all of the combinations of A0, SIZ1 and SIZ0.  For instance, WE (even) has to assert for all of the following cases:

SIZ1   SIZ0   A0
0        1     x     byte to 8-bit bus    DSACK 1,0  =  1,0
0        1     0     even byte to 16-bit bus    DSACK 1,0  =  0,x
1        0     0     word to 8-bit bus    DSACK 1,0  =  1,0
1        0     0     word to 16-bit bus    DSACK 1,0  =  0,x
1        1     1     3-byte to 8-bit bus    DSACK 1,0  =  1,0
0        0     0     long word to 8 - bit bus    DSACK 1,0  = 1,0  
0        0     0     long word to 16 bit bus    DSACK 1,0  =  0,x



Likewise, WE (odd) has to assert for all the following cases:

SIZ1   SIZ0   A0
0       1     1      odd byte to 16-bit bus    DSACK 1,0  =  0,x
1       0     0      word to 16-bit bus    DSACK 1,0  =  0,x
0       0     0      long word to 16 bit bus    DSACK 1,0  =  0,x


In your equations below, I do not believe that you are decoding for all the cases.  Remember, if you are decoding external signals for WE and RD and you are NOT using the chip selects, it is your responsibility to properly generate the DSACK signals.

Regards,

Charlie
Show quoted textHide quoted text
-----Original Message-----
From: development [mailto:development@...]
Sent: Friday, February 20, 2004 5:11 AM
To: 68300@yahoogroups.com
Subject: [68300] Chip select timing problem
Importance: High


Hi All, 
      I am using a 68332 interfaced with a memory bank 
comprising of two HM628512 RAMs ( 70 nS). The chip selects 
of the two RAMs are grounded and the OE and WE of the RAMs 
are being controlled by individual chipselects.

CS0  ----> Odd byte Output Enable
CS1  ----> Odd byte Write Enable
CS2  ----> Even byte Output Enable
CS10 ----> Even byte Write Enable

As this is an obvious waste of chip selects and now that I 
am running short of chip selects, I wish to use only one 
chip select in the place of four.


The equations for the OE and WE are as follows

" Even byte Read signal equation
  RDEVEN  =	(!RW) # A0  # (SIZ0 & SIZ1) # CS;


" Even byte Write signal equation
  WREVEN  =	RW # A0  # (SIZ0 & SIZ1) # CS;


" Odd byte Read signal equation
  RDODD   = 	(!RW) # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 
& SIZ1) # (A0 & !SIZ0) # CS;


" Odd byte Write signal equation
  WRODD	= 	RW # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 & 
SIZ1) # (A0 & !SIZ0) # CS;


  The chip enable pin on the RAMs are grounded as usual but 
the problem that I am now facing is that the RAMs do not 
work as expected which probably may be due to some mismatch 
in timing. I am using a Lattice CPLD of 5 nS speed grade to 
implement the above logic. 

  Can any body suggest as to what may be wrong with my 
scheme or the implementation of the logic?

   It would be a great help if anybody could suggest a 
better and alternate way of doing the same.

Thanks & Regards,
Philip Jones,
Engineer,
R&D Department,
ID Technologies. (A division of mark elektriks)
============================================================
B1/1, Sai Sahawas Apt.,  | Phone: +91-20-4003315, 4007158
Oppo. Corporation Bank,  | TeleFax: +91-20-5410479
Maharshi Karvenagar,     | Email: development@idtechno.net
Hingne (Bk),             | www.markelektriks.com
Pune - 411052. India.    |
============================================================




---------------------------------------------------To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu

learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu

 
Yahoo! Groups Links

RE: [68300] Chip select timing problem

2004-02-20 by Melear Charles-rdph40

Hello everyone,
 
I don't believe that Mr. Yablonski's schematic came through.  
 
You might want to log onto the Motorola Web site ( www.motorola.com <http://www.motorola.com> )  and go to Semiconductors and then search for M68331/332TUT/D.  This shows various methods of connecting 8-bit devices to the 683xx family to form both 8- and 16-bit structures.  It is written by an totally cool dude.  Look on pages 20 - 23.
 
Regards,
 
Charlie
Show quoted textHide quoted text
-----Original Message-----
From: Robert Yablonski [mailto:yabo@...]
Sent: Friday, February 20, 2004 9:23 AM
To: 68300@yahoogroups.com
Subject: Re: [68300] Chip select timing problem


Check the attached schematic.

R. Yablonski


At 04:41 PM 2/20/04 +0530, you wrote:
>Hi All,
>       I am using a 68332 interfaced with a memory bank
>comprising of two HM628512 RAMs ( 70 nS). The chip selects
>of the two RAMs are grounded and the OE and WE of the RAMs
>are being controlled by individual chipselects.
>
>CS0  ----> Odd byte Output Enable
>CS1  ----> Odd byte Write Enable
>CS2  ----> Even byte Output Enable
>CS10 ----> Even byte Write Enable
>
>As this is an obvious waste of chip selects and now that I
>am running short of chip selects, I wish to use only one
>chip select in the place of four.
>
>
>The equations for the OE and WE are as follows
>
>" Even byte Read signal equation
>   RDEVEN  =     (!RW) # A0  # (SIZ0 & SIZ1) # CS;
>
>
>" Even byte Write signal equation
>   WREVEN  =     RW # A0  # (SIZ0 & SIZ1) # CS;
>
>
>" Odd byte Read signal equation
>   RDODD   =     (!RW) # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0
>& SIZ1) # (A0 & !SIZ0) # CS;
>
>
>" Odd byte Write signal equation
>   WRODD =       RW # (!A0 & SIZ0) # (SIZ0 & SIZ1) # (A0 &
>SIZ1) # (A0 & !SIZ0) # CS;
>
>
>   The chip enable pin on the RAMs are grounded as usual but
>the problem that I am now facing is that the RAMs do not
>work as expected which probably may be due to some mismatch
>in timing. I am using a Lattice CPLD of 5 nS speed grade to
>implement the above logic.
>
>   Can any body suggest as to what may be wrong with my
>scheme or the implementation of the logic?
>
>    It would be a great help if anybody could suggest a
>better and alternate way of doing the same.
>
>Thanks & Regards,
>Philip Jones,
>Engineer,
>R&D Department,
>ID Technologies. (A division of mark elektriks)
>============================================================
>B1/1, Sai Sahawas Apt.,  | Phone: +91-20-4003315, 4007158
>Oppo. Corporation Bank,  | TeleFax: +91-20-5410479
>Maharshi Karvenagar,     | Email: development@...
>Hingne (Bk),             | www.markelektriks.com
>Pune - 411052. India.    |
>============================================================
>
>
>
>
>---------------------------------------------------To learn more about 
>Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu <http://www.motorola.com/mcu> 
>
>learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu <http://www.motorola.com/mcu> 
>
>
>Yahoo! Groups Links
>
>
>
>
Sincerely,

Robert E. Yablonski


Hunt Dabney & Associates
Electronic System Development and Design
--------------------------------------------------------------------
http://www.huntdabney.com <http://www.huntdabney.com> 
fax: (714) 540-8131



[Non-text portions of this message have been removed]



---------------------------------------------------To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu <http://www.motorola.com/mcu> 

learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu <http://www.motorola.com/mcu> 





  _____  

Yahoo! Groups Links


*	To visit your group on the web, go to:
http://groups.yahoo.com/group/68300/ <http://groups.yahoo.com/group/68300/> 
  

*	To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com <mailto:68300-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  

*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.