AT32UC3C0512C with AT28C010 parallel EEPROM

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi! I need your help, guys!
I tried to connect AT32UC3C0512C microcontroller with three parallel eeprom memories AT28C010. I connected microcontroller with memories as follows. All address and data pins of each chip of memory connect in parallel directly to the appropriate outputs of EBI of microcontroller. CE input of the first memory I connected directly to the EBI NCS[0] pin of microcontroller, CE input of the second memory - to the EBI NCS[1] pin and CE input of the third memory - to the EBI NCS[2] pin. OE output pins of each memory chip I connected in parallel to the EBI NRD pin. And last ones, WE input pins, I connected in parallel to the EBI NWE0 pin. Power supply - 5V (microcontroller and memories).

I setup EBI, MDMA and SMC but nothing works. Tomorrow I will write here some code examples, but firstly I want to hear about scheme. Is it correct or maybe somewhere pullups or pulldowns needed? And is it possible to connect this type of memory with this microcontroller?
Thanks a lot!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is my code. Also I attached scheme.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Simplify the testing.
The default values for the HMATRIX and PM (apart from MCCTRL) should work. You can fine-tune those modules at a later time.
Do not use the MDMA at this stage., use it later when you can reliably read/write the EEPROM.


You should wait until OSC0 is ready before connecting it to PLL0. (PCLKSR in SCIF)
Also, wait for PLL0 to become ready and stable before selecting it as the system clock in the PM.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, mikech! Thanks for your help.
I suppose that here are another reasons. Because this oscollator's and pll's settings works fine in my projects with usart and timers.
Yesterday I had an idea that it didn't work because I write incorrect values to the RAR and WAR registers of MDMA. I can't find any tutorial in Internet how to use MDMA in UC3 family.
Maybe you can link me to such information?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

karatozz wrote:
I can't find any tutorial in Internet how to use MDMA in UC3 family.

That's the trouble with anything AVR32

 

See: http://www.avrfreaks.net/comment...

 

AND:  http://www.avrfreaks.net/comment...

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, awneil! Unfortunately, it's truth. But I had been realize this when bought a lot of hardware and begin to design my control unit.
Now I haven't another choise. I have to ended prototype of control unit and then change the micro:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So a lesson to learn when selecting components, then.

 

HAve you checked the available application notes?

 

They are listed on the product page for the chip ...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have not used the MDMA but I do know that if you want to use interrupts you will need to configure the INTC module.