isqc_comm.X/isqc_tools.h
void isqc_master_init()
{
    TRISB0 = 1;
    TRISB1 = 1;
    SSPADD = ((_XTAL_FREQ*4)/BAUD_RATE)-1;
    SSPSTAT = 0x00;
    SSPCON1 = 0x28;
    SSPCON2 = 0x00;
}
/* 2. MASTER INIT
 * Set SCL and SDA instead of IO with SSPCON1
 * Choose Master mode with SSPCON1
 * Set SCL and SDA as INPUTS with TRIS
 * Set baud rate to SSPSTAT
 * SSPSTAT and SSPCON2 cleared and used later in wait function
 * SSPCON1 */
2. MASTER INIT
Set SCL and SDA instead of IO with SSPCON1
Choose Master mode with SSPCON1
Set SCL and SDA as INPUTS with TRIS
Set baud rate to SSPSTAT
SSPSTAT and SSPCON2 cleared and used later in wait function
SSPCON1
2 . MASTER INIT Set SCL and SDA instead of IO with SSPCON1 Choose Master mode with SSPCON1 Set SCL and SDA as INPUTS with TRIS Set baud rate to SSPSTAT SSPSTAT and SSPCON2 cleared and used later in wait function SSPCON1
void isqc_master_init()
{
    TRISB0 = 1;
    TRISB1 = 1;
    SSPADD = ((_XTAL_FREQ*4)/BAUD_RATE)-1;
    SSPSTAT = 0x00;
    SSPCON1 = 0x28;
    SSPCON2 = 0x00;
}
void isqc_master_init ( ) { TRISB0 = 1 ; TRISB1 = 1 ; SSPADD = ( ( _XTAL_FREQ * 4 ) / BAUD_RATE ) - 1 ; SSPSTAT = 0x00 ; SSPCON1 = 0x28 ; SSPCON2 = 0x00 ; }
2.
2 .