Hello everybody,...
i'm new with mcu programming. I was trying to connect a PICDEM HPC ExPLORER with 18f8722 with an angular encoder AM4096.
Ths device, from what is written on the datasheet, has a 16 bit address (32 - 20h) where the frist 12bit represents the angular value that i shoiuld retrieve.
I tried with picbasic and with c18 fro more than 1 week,... I'm quite desperate . .
...
I understood almost everythng about I2c communication, and i used the c18 compiler sw_i2c libraries, (modifying also the pin , since i'm using the Rb4 clock, and RB5 data)... anyway..
When i put the ocscilloscope on the data line it doesn't seem to go low...
And the strange thing is that if i check the SWStart() of Microchip code, there is no Clock Down conditon, just DATA_low condition... (when theoretically, it should be first data_low then clock_low, right?)..
Should i write the subroutines by myself, or is there any reason why these functions behave like this?...
thanks, I.
i'm new with mcu programming. I was trying to connect a PICDEM HPC ExPLORER with 18f8722 with an angular encoder AM4096.
Ths device, from what is written on the datasheet, has a 16 bit address (32 - 20h) where the frist 12bit represents the angular value that i shoiuld retrieve.
I tried with picbasic and with c18 fro more than 1 week,... I'm quite desperate . .
I understood almost everythng about I2c communication, and i used the c18 compiler sw_i2c libraries, (modifying also the pin , since i'm using the Rb4 clock, and RB5 data)... anyway..
When i put the ocscilloscope on the data line it doesn't seem to go low...
And the strange thing is that if i check the SWStart() of Microchip code, there is no Clock Down conditon, just DATA_low condition... (when theoretically, it should be first data_low then clock_low, right?)..
Should i write the subroutines by myself, or is there any reason why these functions behave like this?...
thanks, I.