CYTVII-B-E-1M-SK I2C SCB Definition

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
barbarian
Level 2
Level 2
5 questions asked 5 replies posted 10 sign-ins

1. 例子 SCB\I2C\Master 的 main_cm4.c 文件拷贝到D:\Program Files (x86)\Infineon\T2G_Sample_Driver_Library_7.6.0\tviibe1m\src

2. 打开IAR,工作区删除main_cm0plus.c, 然后src下面add main_cm4.c

3. Rebuild all出现P1_0_SCB0_I2C_SCL,P1_1_SCB0_I2C_SDA,一个时钟,一个数据接口未定义。

请问这个头文件?

4. 案列说明提到的Aardvark是?

0 Likes
1 Solution
Jimmy_L
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

你好,

因为starter kit使用的CYT2B7芯片是100 pin的,所以P1.0和P1.1并不支持I2C,可以参考datasheet table11-1. 针对starter kit的使用,可以选用P0_2_SCB0_I2C_SCL作为I2C clock,P0_3_SCB0_I2C_SDA作为I2C data。测试可以用示波器或者逻辑分析仪看波形,当然最好和I2C slave device接在一起。

View solution in original post

0 Likes
3 Replies
Jimmy_L
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

你好,

运行cm4的工程,请打开tviibe1m_flash_cm4_mc_template的project,您只需要把相应的sample code复制到src文件夹即可,然后打开对应的工程。

Aardvark是一个调试器,参考https://www.totalphase.com/products/aardvark-i2cspi/ 

0 Likes
lock attach
Attachments are accessible only for community members.
barbarian
Level 2
Level 2
5 questions asked 5 replies posted 10 sign-ins

1. 弄清楚了tviibe1m_flash_cm4_mc_template.eww为cm4的workspace相关信息。

2. 双击打开tviibe1m_flash_cm4_mc_template.eww文件,并且将SCB\I2C\Master 的 main_cm4.c 文件拷贝到D:\Program Files (x86)\Infineon\T2G_Sample_Driver_Library_7.6.0\tviibe1m\src

3. 但在编译的过程中还是提前没有定义数据线SDA和时钟线SCL,见如下图片。

4.  如果后面正常运行,但是没有Aardvark. The screen of Aardvark will show the data from MCU. 如何确认I2C的正确运行?

0 Likes
Jimmy_L
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

你好,

因为starter kit使用的CYT2B7芯片是100 pin的,所以P1.0和P1.1并不支持I2C,可以参考datasheet table11-1. 针对starter kit的使用,可以选用P0_2_SCB0_I2C_SCL作为I2C clock,P0_3_SCB0_I2C_SDA作为I2C data。测试可以用示波器或者逻辑分析仪看波形,当然最好和I2C slave device接在一起。

0 Likes