PIC16F88 I2C Port Problem

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
johnsondav
Posts: 188
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 86 times
Been thanked: 186 times
Contact:

PIC16F88 I2C Port Problem

Post by johnsondav »

Hi Everyone

Can anyone confirm, if the I2C hardware is supported for the PIC16F88 using Flowcode com.'s master. This device has the necessary hardware but the compiler warnings are as follows:
Target folder: E:
Source name: E:\PIC16F88 I2C.fcfx
Title:
Description:
Device: PIC.16F.16F88
Generated by: Flowcode v7.3.0.5
Date: Thursday, January 04, 2018 16:11:48
Users: 1
Registered to: johnsondav
Licence key: XXXXXXX
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\xc8\v1.44\bin\xc8.exe --chip=16F88 "PIC16F88 I2C.c" --MSGDISABLE=359,1273,1388
Microchip MPLAB XC8 C Compiler (Free Mode) V1.44
Build date: Sep 13 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_I2C.c:
122: #warning "I2C Master Mode may not be available on your current target device, switch to software mode."
(162) #warning: "I2C Master Mode may not be available on your current target device, switch to software mode." ^ (warning)
229: #error "This chip does not have Master I2C capability or Flowcode does not currently support it"
(103) #error: "This chip does not have Master I2C capability or Flowcode does not currently support it" ^
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Microchip\xc8\v1.44\bin\xc8.exe reported error code 1



FINISHED
I have been doing development test with various devices for the I2C hardware. I am surprised that this device is not supported. :!:

Dave

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F88 I2C Port Problem

Post by Benj »

Hi Dave,

The 16F88 doesn't have master I2C functionality, though a software channel should work fine.

From the datasheet.
Synchronous Serial Port (SSP) with SPI (Master/Slave) and I2C™ (Slave)

johnsondav
Posts: 188
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 86 times
Been thanked: 186 times
Contact:

Re: PIC16F88 I2C Port Problem

Post by johnsondav »

Hi Ben

Thank you for your quick reply. I had tried to compile using the I2C module. No problem. I'm just trying different chips to see options/performance with various PIC hardware for the I2C bus.

Regards
Dave

Post Reply