OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4678|回复: 2

求助:MLX90363磁强计集成电路,求例程

[复制链接]

27

主题

70

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
380
金钱
380
注册时间
2018-11-20
在线时间
61 小时
发表于 2019-3-27 10:40:32 | 显示全部楼层 |阅读模式
1金钱
求助:MLX90363使用例程          手册中提到的校正信息,存放在EEPROM中,如何修改,又如何使用?
数据手册中提到的x,y,z轴角度,是相对于谁的,有没有详细图解?
芯片如何摆放对他的性能有何影响?






MLX90363磁感应传感器三种模式

MLX90363磁感应传感器三种模式

最佳答案

查看完整内容[请看2#楼]

举例:MLX90363 Linear模式: Linear applications are used when linear motion is present (eg: linear actuator) or it is not possible to mount the sensor on the axis of rotation. The method of retreiving the data is the same as a rotary application(GET1) however the sensor EEPROM must be programmed with a few values in order to enable a linear calculation. (1)写入EEPROM: //Transmit NOP to re ...
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

27

主题

70

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
380
金钱
380
注册时间
2018-11-20
在线时间
61 小时
 楼主| 发表于 2019-3-27 10:40:33 | 显示全部楼层
举例:MLX90363 Linear模式:
Linear applications are used when linear motion is present (eg: linear actuator) or it is not possible to mount the sensor on the axis of rotation.
The method of retreiving the data is the same as a rotary application(GET1) however the sensor EEPROM must be programmed with a few
values in order to enable a linear calculation.
(1)写入EEPROM:
//Transmit NOP to reset communication
//EEPROM write should be preceded by a NOP (Ref pg 26, S14.10, Rev 002)
ss1 = 0;
RByte0 = spi.write(0x00);
RByte1 = spi.write(0x00);
RByte2 = spi.write(0xAA);
RByte3 = spi.write(0xAA);
RByte4 = spi.write(0x00);
RByte5 = spi.write(0x00);
RByte6 = spi.write(0xD0);
RByte7 = spi.write(0xAB);
ss1 = 1;
wait_ms(10);
for (int i = 0; i <= 1; i++){
//Transmit MemWrite message
//Requires: Key to address location (two bytes)  

// Data to transmit (two bytes)
//Results: NOP Response
ss1 = 0;
if (u8_pass == 0){
RByte0 = spi.write(0x00);
RByte1 = spi.write(0x2A);
RByte2 = spi.write(0x45);
RByte3 = spi.write(0x8F);
RByte4 = spi.write(Addr_102A_LSB);
RByte5 = spi.write(Addr_102A_MSB);
RByte6 = spi.write(0xC3);
RByte7 = spi.write(ComputeCRC(0x00, 0x2A, 0x45, 0x8F,
Addr_102A_LSB, Addr_102A_MSB, 0xC3));
}
else{
RByte0 = spi.write(0x00);
RByte1 = spi.write(0x32);
RByte2 = spi.write(0x13);
RByte3 = spi.write(0x17);
RByte4 = spi.write(Addr_1032_LSB);
RByte5 = spi.write(Addr_1032_MSB);
RByte6 = spi.write(0xC3);
RByte7 = spi.write(ComputeCRC(0x00, 0x32, 0x13, 0x17,
Addr_1032_LSB, Addr_1032_MSB, 0xC3));
}
ss1 = 1;
wait_ms(10);  

(2)磁通量三个分量



1.png
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165309
金钱
165309
注册时间
2010-12-1
在线时间
2108 小时
发表于 2019-3-28 02:05:17 | 显示全部楼层
帮顶
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 17:51

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表