Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Liaison I2C pic24

Tatanne86

Newbie
Newbie level 1
Joined
Jan 18, 2025
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
25
Bonjour.
Je programme un PIC24 avec écran 2x16, clavier, ça pas de problème, mais je dois programmer deux liaison I2C, une avec une EEPROM 24C16 (ou autre de la même famille), ainsi qu'un DAC MCP47FEB12 (le 10 bits 2 voies) et là je coince un peu car pas utilisé pour le moment. J'utilise une carte de ma fabrication que je programme en C avec MPLAB.
J'utilise les lignes SDA1 et SCL1 ainsi que le port RE4 pour le LATCH du DAC.
Si quelqu'un peut me donner des infos, la lecture en anglais des data book est un peu fastidieuse.
Il me faudrait 3 fonctions init_I2C, ecrit_data et lit_data.
Merci de votre aide.
[Translated by moderator] Please notice that Edaboard accepts English posts only.

Hello.
I am programming a PIC24 with a 2x16 screen, keyboard, that's no problem, but I have to program two I2C links, one with a 24C16 EEPROM (or other from the same family), as well as a MCP47FEB12 DAC (the 10-bit 2-channel) and there I am stuck a little because I have not used it at the moment. I am using a card of my own making that I am programming in C with MPLAB.
I am using the SDA1 and SCL1 lines as well as the RE4 port for the DAC LATCH.
If someone can give me some information, reading the data books in English is a bit tedious.
I would need 3 functions init_I2C, write_data and read_data.
Thank you for your help.
 
Last edited by a moderator:
Hi,

You are not telling about a problem.
So what is the exact problem?

Usually the datasheets of the ICs is all you need. I2C is rather straight forward, since it is a clearly defined interface standard.

Klaus
 


Write your reply...

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top