home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / dsp / 2050 < prev    next >
Encoding:
Text File  |  1992-08-30  |  2.7 KB  |  63 lines

  1. Newsgroups: comp.dsp
  2. Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!tesla.uwaterloo.ca!simpson
  3. From: simpson@tesla.uwaterloo.ca (Simpson KF Lam)
  4. Subject: TMS320C30 bus problem
  5. Message-ID: <Btt90o.4tI@watserv1.uwaterloo.ca>
  6. Originator: simpson@tesla.uwaterloo.ca
  7. Sender: news@watserv1.uwaterloo.ca
  8. Organization: University of Waterloo
  9. Date: Sun, 30 Aug 1992 19:05:11 GMT
  10. Lines: 51
  11.  
  12. Hello, world. How are everybody doing?
  13.  
  14. I've encountered a problem with the TMS320C30 bus a while
  15. ago and I would like to discuss it with everyone.
  16.  
  17. The TMS320C30 has two buses. The primary bus and the expansion
  18. bus. I designed my DSP board to operate the expansion bus with
  19. MSTRB, which means the timing of the expansion bus and the primary
  20. bus are the same. I put all my memories on the primary bus
  21. and all the input/output on the expansion bus. 
  22.  
  23. Everything works fine until I start to test the decoded IO ports
  24. on the expansion bus. The primary bus were running at zero wait
  25. state at 32Mhz. The expansion bus were programmed at seven wait
  26. states. (I have some slow IO to do so it seems the easy way to
  27. slow down the bus. I was so wrong.) 
  28.  
  29. I first test the board with 5Mhz and every timing seems to be
  30. fine. I put a read and a write port inside a endless loop to
  31. verify the timing. It works fine until I put the board into
  32. 18Mhz. Then the read cycle is completely disappeared. The only
  33. signal appears on the MSTRB and XR/W is the write cycle. I try
  34. to put various NOP before and after the read and write since I
  35. suspect I've got a register conflict somewhere. In several 
  36. occusions, the bus cycles are completely gone, no MSTRB appears
  37. on my scope.
  38.  
  39. As it turns out, I can not run the expansion bus slower than the
  40. primary bus as long as I am running my program on the primary
  41. bus. In 32Mhz, both bus has to operate on 1 wait state in order
  42. for the expansion bus to operate properly. (You can have them
  43. in zero wait state but only at 18Mhz. That is the speed I test
  44. that works.) 
  45.  
  46. I suspect that there is intrinsic problem on the chip itself.
  47. It is no longer cycle dependent when one bus operate faster
  48. than another bus while the CPU has to interleave access them
  49. both like running the program on the primary bus and doing
  50. IO on the expansion bus.
  51.  
  52. If somebody has similar experience, I would love to hear from
  53. you. The TMS320C30 is very powerful but not the easiest chip
  54. to design with.
  55.  
  56.                 simpson@kingcong.uwaterloo.ca
  57. *************************************************************
  58. -- 
  59. +==========================================================+
  60. + "Be brave, and your courage will be rewarded."           +
  61. +                                      - sisters           +
  62. + .........................................................+
  63.