- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I'm using CYPD3171-24LQXQ_pb, and set CCG_TYPE_A_PORT_ENABLE to 0u in stack_params.h, then delete the whole TypeA Page in TopDesign.cysch -> Build successfully
Create a new page as I2C on TopDesign.cysch , Drag A I2C Component as master to I2C page, then assign sda to pin7, scl to pin8
-> Build successfully
Add below code to main.c after ccg_app_task_init ();
SCB_I2C_INIT_STRUCT config;
SCB_I2CInit(&config);
-> then Build fail, any steps i missing? Please help to check the procedure I apply, Thanks
Source : CYPD3171-24LQXQ_pb_i2cmaster.7z - Google Drive
Regards
Edward
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Edward,
Please refer to the below application note to implement I2C functions in your project:
1) I2C master example project on PSoC 4: https://www.cypress.com/documentation/code-examples/ce95363-i2c-master-using-serial-communication-bl...
You can add I2C initial in main() .Add other operations in app.c and call it in function void ccg_app_task(uint8_t port).
Best Regards,
Mallika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Edward,
Please refer to the below application note to implement I2C functions in your project:
1) I2C master example project on PSoC 4: https://www.cypress.com/documentation/code-examples/ce95363-i2c-master-using-serial-communication-bl...
You can add I2C initial in main() .Add other operations in app.c and call it in function void ccg_app_task(uint8_t port).
Best Regards,
Mallika