- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below ref code as psoc 101 video series
#include "project.h"
int main(void)
{
uint8 compare =0 ;
uint8 i2cbuf[1];
i2cbuf[0] = 0 ;
CyGlobalIntEnable; /* Enable global interrupts. */
PWM_1_Start();
EZI2C_1_Start();
EZI2C_1_SetBuffer1(1,1,i2cbuf);
for(;;)
{
if ( compare != i2cbuf[0])
{
compare = i2cbuf[0];
PWM_1_WriteCompare(compare);
}
}
}
/* [] END OF FILE */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try setting the sub address size to 16 bits in EZscsi configuration.
Next time can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content