embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

BE on ColdFire

From: Jacek Myzyk <jacek.myzyk_at_gemsys.ca>
Date: Thu, 16 Dec 2004 16:41:32 -0500

I solved BE problem in hardware.
I am using ColdFire MCF5307 with software running from 16bit ram chip
with 2 byte enable pins, CS1 is used
in start.f file I have BE enabled ( CSCR1 set to 1DF8)
but I never got ColdFire to start properly - transfer from rom to ram
was getting stack
I solved the problem in hardware:
- BE lines from ColdFire to ram chip go via AND gates
- I control these gates in such a way that ColdFire reset ( pin 67)
  sets both outputs L allowing proper start up ( rom -> ram transfer 16bits)
- as soon as my software starts I set AND inputs H allowing BE0 BE1
  from ColdFire through
This way I have all accesses working properly ( both write & read)
C! C@ - 8 bits
W! W@ - 16 bits
 ! @ - 32 bits

Regards

Jacek

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Dec 16 2004 - 13:43:53 PST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:50 PST