Flowcode V6.1.2 PIC24FV32KA304 I2C not working
Posted: Sun Feb 21, 2016 7:32 pm
Hello,
I need urgent help for a project with PIC24FV32KA304. The controller writes and reads datas to an fram. The connection are made over I2C. In the attachment is a little programm and I get it not running.
The I2C master1 component is used and additional port pin as a sync signal for oscilloscop. With this programm, there are no sync signals and no signals on the clock and data from the I2C.
The program seems to be hung up? When I switch over the I2C from channel1 to software mode, the sync signals are coming, but no I2C signals ?
Advice: the fram address are 11 bits. 3 of them are pages and inside the device ID. So I could not use "write byte transaction" because there are two address bytes.
I try the programm with another chip (PIC24FV16KA301) and there happens the same again. Switching over to software channel on pin B8 is no signal. I changed then B8 to B2 and the clock signal is present???
I installed the update to V6.1.3 --> the same situation
With the PIC24FV32KA304: Switch over software I2C to Pin C8 and C9 --> nothing happens --> switch over to A7 and B10 --> signals coming ??? But every second loop reading is not correct (Have alook to the PDF).
Can anyone have a look to this situation?
Thanks in advanced
Jörg
I need urgent help for a project with PIC24FV32KA304. The controller writes and reads datas to an fram. The connection are made over I2C. In the attachment is a little programm and I get it not running.
The I2C master1 component is used and additional port pin as a sync signal for oscilloscop. With this programm, there are no sync signals and no signals on the clock and data from the I2C.
The program seems to be hung up? When I switch over the I2C from channel1 to software mode, the sync signals are coming, but no I2C signals ?
Advice: the fram address are 11 bits. 3 of them are pages and inside the device ID. So I could not use "write byte transaction" because there are two address bytes.
I try the programm with another chip (PIC24FV16KA301) and there happens the same again. Switching over to software channel on pin B8 is no signal. I changed then B8 to B2 and the clock signal is present???
I installed the update to V6.1.3 --> the same situation
With the PIC24FV32KA304: Switch over software I2C to Pin C8 and C9 --> nothing happens --> switch over to A7 and B10 --> signals coming ??? But every second loop reading is not correct (Have alook to the PDF).
Can anyone have a look to this situation?
Thanks in advanced
Jörg