Searching \ for '[PIC] 16F88 I2C Master' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/i2cs.htm?key=i2c
Search entire site for: '16F88 I2C Master'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] 16F88 I2C Master'
2005\12\02@180207 by April Junkbox

picon face
I have read the datasheet several times, and it appears that if I use the
16F88 in I2C "Firmware Controlled Master mode (Slave Idle)", then I still
have to do bit banging for SDA and SCL. Is this true? In other words, the
shift functions of SSPBUF and SSPSR can only be used in Slave modes?

If it is true, then is there any benefit to using the SSP module at all
(i.e. there are lots of samples that just use any two pins, so is there any
reason (big or small) to enable the SSP module)?

Jake

p.s. Does anyone have an example for the first scenario (using ssp in
Firmware Master mode), preferably in C?


2005\12\02@181433 by Jinx

face picon face
> 16F88 in I2C "Firmware Controlled Master mode (Slave Idle)",
> then I still have to do bit banging for SDA and SCL. Is this true?

Yes

> If it is true, then is there any benefit to using the SSP module at all

You still can use it as a h/w Slave receiver. It does keep the bussing
tidy being able to have all I2C devices, however they're set up, on
the same two wires

Bit-banging I2C isn't too difficult once you sort out the SDA/SCL
timing relationships

2005\12\02@181832 by olin piclist

face picon face
April Junkbox wrote:
> I have read the datasheet several times, and it appears that if I use
> the 16F88 in I2C "Firmware Controlled Master mode (Slave Idle)", then
> I still have to do bit banging for SDA and SCL. Is this true? In
> other words, the shift functions of SSPBUF and SSPSR can only be used
> in Slave modes?

Microchip has different peripherals that can do IIC.  The one called SSP
(slave serial port) is intended for slave mode only.  The MSSP (Master/Slave
Serial Port) can also do hardware master.  I'll leave it to you to look up
which one the 16F88 has.

By the way, master IIC is easy to do without hardware since you own the
clock.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...