大家好,
MPU9250運動中斷喚醒單片機我已經調好了,
但是6050配置暫存器后INT電平一直不變(為高),求助各位大神,怎么解決???
代碼如下:
Single_Write(GYRO_ADDRESS,0x6B,0x80); //107
nrf_delay_ms(500);
Single_Write(GYRO_ADDRESS,0x6B,0x00); //107
Single_Write(GYRO_ADDRESS,0x6C, 0x07); //?ì 108>>>0x37 // INT Pin / Bypass Enable Configuration
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x1C, 0x00); //?ì 28>>>0X1 selects the full scale range
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x1F, 0x01); //31>> Motion Detection Threshold
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x38, 0x40); //56>>>Interrupt Enable MOT_EN;
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x37, 0x80); //55 //HIGH>>>LOW;
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x69, 0x30); //105>> ??? Motion Detection Control
nrf_delay_ms(10);
Single_Write(GYRO_ADDRESS,0x6B, 0x20); //107>>
nrf_delay_ms(100);
uj5u.com熱心網友回復:
求助大神們,。。。。uj5u.com熱心網友回復:
大哥,可以分享一下mpu9250中斷喚醒單片機嗎?
uj5u.com熱心網友回復:
應該是你那個0x37暫存器配置有問題
你可以試試
uj5u.com熱心網友回復:
你設定0x37暫存器的值為0x80,平時就是高電平,運動了就會產生低電平中斷.(如果無法產生中斷:加速計需要設定為回圈模式才行)uj5u.com熱心網友回復:
你設定0x37暫存器的值為0x80,平時就是高電平,運動了就會產生低電平中斷.(如果無法產生中斷:加速計需要設定為回圈模式才行)轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/256085.html
標籤:單片機/工控
