So how you connect i2c ...using asf4...there is very less api for writing
It would help if you mention what processor your target is.
I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie
"The critical shortage here is not stuff, but time." - Johan Ekdahl
"Step N is required before you can do step N+1!" - ka7ehk
"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman
"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?" - Lee "theusch"
Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-) - Source Unknown
Please Read: Code-of-Conduct
Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user
Don't you just go to https://start.atmel.com/ and take it from there - it should all be "intuitive" ...
proc SAMD21 -- asf4 -- sync or async(select in atmelstart)
i2c master does not want to transmit data, waiting for confirmation from the slave. Makes a pulse in the bus and that's it.
i2c_m_sync_set_slaveaddr(&I2C_0, 0x49, I2C_M_SEVEN);
err=io_write(I2C_0, (uint8_t *)"Hello World!", 12);
err=i2c_m_sync_cmd_write(&I2C_0, (uint8_t)0x00, &data , 12)
debug err= -4 what to do next???
© 2022 Microchip Technology Inc.