Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

i am new to (assembly) spi communication commands

Status
Not open for further replies.

veerubiji

Full Member level 2
Joined
Feb 24, 2011
Messages
122
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,301
Hi,
This is veera reddy, i have a problem with spi commands in my application, i am trying to log sensor data from sensor tag. here sensor ic chip is mlx90129 it is located on the evb90129 board. this chip having internal eeprom there is noproblem when reading internal memory. this evalution board having external eeprom to store more data, for that i am using spi communication to log the data from external memory. can any one suggest me which comands is useful for that data logging from external memory. data sheet available at MLX90129.
 

Attachments

  • EVB90129.pdf
    786.6 KB · Views: 4
  • MLX90129_Datasheet_March_2010.pdf
    1.1 MB · Views: 3
  • AN2_MLX90129_Data_Logging.pdf
    451.7 KB · Views: 3

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,274
Trophy points
1,413
Location
Southwest, USA
Activity points
62,510
What controller you're using manage the MLX9109? Attached is an appnote dealing with SPI communications with MLX91029 with sample code for a variety of controllers.
 

Attachments

  • AN1_MLX90129_SPI_Communication.pdf
    521.9 KB · Views: 9

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,274
Trophy points
1,413
Location
Southwest, USA
Activity points
62,510
The EVB90129 can be accessed and controlled through a contactless (RFID) or a contact (SPI) interface. The RFID access to the MLX90129 and the related commands are compliant with the ISO15693 standard. The SPI and other digital inputs/outputs from the MLX90129 are connected to an 8-pin connector of the EVB90129. This allows easy connection to a microcontroller.

You need to select a controller SPI to manage the MLX90129 via SPI.
 

veerubiji

Full Member level 2
Joined
Feb 24, 2011
Messages
122
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,301
Hi,
thank you very much for replying, i am using atmel coporation atmega168 8bit controller, and i am using hyperteminal to read and write commands for reading data from sensors. in datasheet AN2_MLX90129_data_logging.PDF ther is a procedure to connect external memory and mlx90129 by using spi communication(section3.4) in that set the following configuration in eeprom adress #0D=0x0629 and #0E=0203. i cant understand these commands how to store in external eeprom and how to read, via spi communication commands.
thank you,
best regards.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,168
Helped
14,196
Reputation
28,651
Reaction score
12,887
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,103
Try to understand the different operation and respective SPI modes provided by MLX90129. It can work either as standalone device and SPI master, or be controlled as SPI slave by an external microprocessor. In the latter case, the device won't talk to an external memory.
 

veerubiji

Full Member level 2
Joined
Feb 24, 2011
Messages
122
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,301
Hi,
now i tried to read and write to internal memory of mlx90129 and i communicate with mlx and external microcontroller and also i succeded to log data from internal memory. but the problem is now i want to log data from sensors and i used external SPI EEPROM to store logged data, i set the required configuration for that mode but i tryed to read data nothing will happend.there is a problem . and i tried to connect directly MCU to external memory still i cant write or read to external memory so any body suggest me how to write enable to external memory by using spi communication. i am using CAT25128(128kB) external eeprom.
 

veerubiji

Full Member level 2
Joined
Feb 24, 2011
Messages
122
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,301
Hi,
can any body help me , i am reding hexa decimal value from mlx chip like 9BD0, how can i convert this to temperature because i am reading from temprature sensor.
regards
veerubiji.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top