Dear Ivan Jeremic.
I can initialize I2C devices.
I need advice on how to go from 1 to 0 before bit 8.
I2C1_Wr(0b0110000 /LDAC = 1; => LDAC = 0;/ 1);
Thank you very much.
Jan Jakubec
Search found 4 matches
- 21 Mar 2024 21:54
- Forum: mikroC PRO for PIC General
- Topic: MCP4728 (page 42) - change Address Bits 000 to 010.
- Replies: 3
- Views: 421
- 01 Mar 2024 22:04
- Forum: mikroC PRO for PIC General
- Topic: MCP4728 (page 42) - change Address Bits 000 to 010.
- Replies: 3
- Views: 421
MCP4728 (page 42) - change Address Bits 000 to 010.
Hello experts, I need to change the Address Bits of the MCP4728, but I am not experienced enough to write a program. My program is as follows and it does not work: // Write Command: Write I2C Address Bits to the DAC Registers and EEPROM - page 42 sbit LDAC at LATB.B2; // Pin RB2 LDAC = 1; I2C1_Start...
- 21 Feb 2021 11:38
- Forum: mikroC PRO for PIC General
- Topic: MCP4461 - MikroC for PIC
- Replies: 0
- Views: 587
MCP4461 - MikroC for PIC
Hello gentlemen programmers. I know that this device does not use any MIKROE module. Nevertheless, I ask for your help. I found this useful link: https://github.com/riotnetwork/Arduino/blob/master/MCP4461/MCP4461.cpp I need to test the functions of the digital potentiometer MCP4461 and understand it...
- 14 Nov 2017 00:27
- Forum: mikroC PRO for PIC General
- Topic: PIC18F45K22 - I2C communication (MikroC code).
- Replies: 1
- Views: 1773
PIC18F45K22 - I2C communication (MikroC code).
Hello experts. I have two PIC18F45K22 microprocessors. The first is "Master" and the other "Slave". I can not determine the communication address for I2C communication between two microprocessors. I want the Master to send "switch_1" and "switch_2" to "slave" depending on whether or not the switch i...