CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 16 matches
CCS Forum Index
Author Message
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Thu Aug 29, 2019 1:16 am   Subject: Problem about IMU sensor (ICM-20948) with I2C
Thanks but still cannot get correct device id Sad trying to figure out whats wrong
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Thu Aug 29, 2019 1:08 am   Subject: Problem about IMU sensor (ICM-20948) with I2C
CCS uses 8-bit i2c address format. To convert 7-bit to 8-bit format,
shift the 7-bit format left by 1. Then make bit 0 = 0 for an i2c write
and make bit 0 = 1 for an i2c read.
Does it mean that f ...
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Wed Aug 28, 2019 11:34 pm   Subject: Problem about IMU sensor (ICM-20948) with I2C
It tells you exactly in the Burst Read Sequence diagram. The master sends:

S
AD+W
RA
S
AD+R
Data
Data + NACK // Do NACK by master on last data byte read
P

Translate that to CCS, but onl ...
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 7:18 pm   Subject: I2C Scanner problem
Except the SDA and SCL line, is there any other line require a pull up ?
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 11:13 am   Subject: I2C Scanner problem
There's the NOFLOAT_HIGH option for the #use i2c directive but I have never used that so I don't know if it works. Why not build the hardware properly?

Besides that, you still need to deal with you ...
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 11:01 am   Subject: I2C Scanner problem
You also need to tell us if you are using the ICM-20948 chip by itself,
on a board you built, or did you buy a module board with that chip on it ?

If you bought an ICM-20948 module board, then po ...
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 10:23 am   Subject: I2C Scanner problem
Is that the SDA, SCL , AD0 all require the pull up resistors? Can i have them pull up by the software using PIC?
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 7:30 am   Subject: I2C Scanner problem
It does not have any resistor externally connected between the PIC and the ICM-20948 Sad What is the VddIO used for?
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 5:01 am   Subject: I2C Scanner problem
more info needed
1) VDD of PIC...

2) I2C device you're trying to test

3) you have run a '1Hz LED' program to confirm the PIC is operating at correct speed ?

Sorry but how can I get the frequ ...
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 4:46 am   Subject: I2C Scanner problem
The VDD is 3.7V and the device I am testing is ICM-20948 and here is the datasheet for ICM-20948: https://www.invensense.com/wp-content/uploads/2016/06/DS-000189-ICM-20948-v1.3.pdf
  Topic: I2C Scanner problem
Toast

Replies: 17
Views: 34984

PostForum: General CCS C Discussion   Posted: Tue Aug 27, 2019 3:55 am   Subject: I2C Scanner problem
Hi everyone , I am testing my device with i2c scanner. However, it could not find any i2c and I investigate into it and found my problem could not finish execute the i2c_write. Basically, the method i ...
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Fri Aug 16, 2019 4:03 am   Subject: Problem about IMU sensor (ICM-20948) with I2C
In the process, I found that there are some register sharing the same address with different user bank register.
Does it mean that I need to write the command to change the user bank before I write ...
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2019 10:24 pm   Subject: Problem about IMU sensor (ICM-20948) with I2C
Thanks PCM programmer, it is clear and I understand how it works now.
But if i want to do a self test for gyro module, first it need to be enable the self test at address 02 like stated on page 60 f ...
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2019 11:36 am   Subject: Problem about IMU sensor (ICM-20948) with I2C
Thanks for the help I will try it and update in few days. But I would like to ask after using the I2C scanner to check the modules, what would be the procedure to get the sensor reading? is it using t ...
  Topic: Problem about IMU sensor (ICM-20948) with I2C
Toast

Replies: 16
Views: 40801

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2019 9:36 am   Subject: Problem about IMU sensor (ICM-20948) with I2C
I had looked at the I2C Scanner program. However, I could not run debug and print the message. Also my board don't have any LCD / any display, would you have any suggest such that I could use the prog ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group