Use the serial bootloader generator inside MPLAB X and see how Microchip deals with the UART... if is available for this PIC...
On Mon, Jul 17, 2017 at 5:17 PM, Eur van Andel <[email protected]> wrote: > > On 31 Mar 2016, at 10:03:42, Rob Hamerling <[email protected]> wrote: > > I must report that the I2C libraries work fine with the 16f1765! > My problem was with PPS! I trusted my extension of the PPS library with > support for the enhanced midrange PICs. I had tested this with a 16f1708, > but now I found out that the 16f1765 uses a different bit pattern for the > selection of the SDA and SCL output signals (and probably other signals as > well). With the correct selection patterns the I2C works as expected. > The PPS library requires a revision. > > > Any code you want to share? I have severe troubles getting the serial > ports to work on the PIC16F15325. > > These enhanced midrange PICs are nice and chock-full of new features. > There are not backwards compatible, though: UART1 and UART2 have specific > numbers now and the PIRx and PIEx interrupt flags and enables have been > extended a lot, all the flags have moved. > > My problem is with PPS too, I think. The TX pins I set are low, refuse to > get high. They don’t move either. Rob, I can’t find anything wrong with the > PPS table in your 16f15325 device file, but using hard-coded values doesn’t > work either. > > Microchip doesn’t have enhanced midrange UART examples yet :-( > > iMac-2:sample eur$ grep -i PPS 16f*.jal > 16f1615_steppermotor.jal:pragma target PPS1WAY DISABLED > 16f1618_steppermotor.jal:pragma target PPS1WAY DISABLED > 16f1765_steppermotor.jal:pragma target PPS1WAY DISABLED > 16f18325_steppermotor.jal:pragma target PPS1WAY DISABLED > > > > --- > ir EE van Andel [email protected] http://www.fiwihex.nl > Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands > tel +31-653-286573 > > > > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/jallib. > For more options, visit https://groups.google.com/d/optout. > -- Vasi -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/jallib. For more options, visit https://groups.google.com/d/optout.
