Hello James & piclisters, BTDT. I had an epic struggle a couple of years ago doing something --- New Outlook Express and Windows Live Mail replacement - get it here: https://www.oeclassic.com/ parallel. Setup was (from memory):- PIC32 running micromite Basic, used as I2C master. PIC16f1826 running MPASM and used as I2C slave, to receive and transmit dat= a. Everything worked fine except getting the 16f1826 slave to comms properly, I think data receipt from the slave was the real stumble, and I was using t= he=20 in-built mssp. I only made headway, and quickly, when I ditched my old crud= e=20 logic analyser and set myself up with:- Salae clone 8ch FX2LAFW. Sigrok's Pulseview running on my PC. - that in itself was 'challenging' but= so well worth it. Decoder stacker makes all the difference. The whole thing was sorted so neatly once I had the right stuff, and it was= n't 'expensive', just needed to figger out what the hell I was doing. Imagine flying in cloud without any artificial horizon or instruments (dead= ly), then doing it with a full panel. Night and day. It's doable, best of luck. bestos, John ----- Original Message ----- From: James Burkart Reply-To: Microcontroller discussion list - Public. To: Microcontroller discussion list - Public. Sent: 10/29/2019 12:21:29 AM Subject: Re: [PIC] I need help with my I2C code. ___________________________________________________________________________= _____ I've considered it, but I'm intimidated. I'm not sure I would describe my coding skills as moderate. I was barely getting by writing a software I2C driver. -- Sincerely, James Burkart *925.667.7175* On Mon, Oct 28, 2019 at 2:38 PM Forrest Christian (List Account) < lists@packetflux.com> wrote: > Have you considered just throwing away the driver and manipulating the i2= c > peripheral directly? > > The datasheet typically has enough data for one with modest coding skills > to write a serviceable chunk of code. I've learned over the years that > often for comms and i/o it is better to just ignore the drivers and go > after the device directly, as the driver often makes assumptions which ar= e > not relevant to your specific situation. > > On Mon, Oct 28, 2019 at 1:18 PM James Burkart > wrote: > > > What I need is a well commented driver that doesn't have bugs that > renders > > it almost useless. > > > > -- > > Sincerely, > > > > James Burkart > > *925.667.7175* > > > > > > On Mon, Oct 28, 2019 at 1:00 PM Nicola Perotto > > wrote: > > > > > > > > > > > On 28/10/2019 19:34, James Burkart wrote: > > > > I'm not sure what you're asking for. > > > > > > > I don't have a flow chart, as it is > > > I already know... ;-) > > > > > > > the MCC generated code. It is also quite complex and I'm just barel= y > > good > > > > enough to step through the code trying to debug it. > > > If the code is complex you NEED some kind of "flow chart" (I used > > > quotes...). > > > It has not to be "canonical" nor complete but drawing a scheme of wh= at > > > you are > > > trying to do is very useful :-) > > > Nic > > > > > > -- > > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > -- > - Forrest > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .