View previous topic :: View next topic |
Author |
Message |
andrge
Joined: 26 Oct 2011 Posts: 30 Location: Kaufbeuren
|
Posted: Mon Dec 25, 2023 6:36 pm Post subject: ATXMega192C3 and fm25c256.lib |
|
|
Hello,
I would like to use the fm25c256.lib for a project with the ATXMega192C3. Unfortunately I can't get the lib to run.
What is wrong in my code?
Does anyone have a running example?
It looks like no data is being saved. I am using an EEPROM from ST M95256-WMN6TP. I have adjusted the time for saving. The EEPROM needs 5ms.
regards
Andreas |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5922 Location: Holland
|
Posted: Sun Jan 07, 2024 11:23 am Post subject: |
|
|
you need to use the XMega version : FM24C64_256-XMEGA.lib _________________ Mark |
|
Back to top |
|
|
andrge
Joined: 26 Oct 2011 Posts: 30 Location: Kaufbeuren
|
Posted: Sat Jan 13, 2024 11:08 am Post subject: for SPI signals pull upīs necassary? |
|
|
Hello Marc,
thank you for feedback. This is a good idea. I hadn't noticed that.
Another basic question, do MOSI, MISO and SLC pull-up resistors have to be connected to the SPI lines? I assumed that the lines are comparable to the UART, so no pull up's are required.
I have hardly found any answers to this question on the web.
BR
Andreas |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
andrge
Joined: 26 Oct 2011 Posts: 30 Location: Kaufbeuren
|
Posted: Sat Jan 13, 2024 8:45 pm Post subject: |
|
|
Hello Evert,
thenak you for your statement. Ihen I have already understood it correctly.
It is the first time that i use SPI for write and read a eeprom.
BR
Andreas |
|
Back to top |
|
|
|