sci.h File Reference

Serial Communication Interface. Target: PIC16F876. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FOSC   (3686400L)
 
#define SCI_EIGHT   (0)
 
#define SCI_NINE   (1)
 

Functions

BYTE SCI_Init (DWORD, BYTE)
 
void SCI_Write (BYTE)
 
BYTE SCI_Read (void)
 
void sci_PutNinth (BYTE)
 
BYTE sci_GetNinth (void)
 
BYTE sci_GetFERR (void)
 
BYTE SCI_CheckOverrun (void)
 

Detailed Description

Serial Communication Interface. Target: PIC16F876.

This file is part of JADEKU Portable ADQ device for Routines Control.

Copyright (C) 2006-2009, Hernan Monserrat hemonserrat<at>gmail<dot>com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file sci.h.

Macro Definition Documentation

◆ FOSC

#define FOSC   (3686400L)

Definition at line 27 of file sci.h.

◆ SCI_EIGHT

#define SCI_EIGHT   (0)

Definition at line 28 of file sci.h.

◆ SCI_NINE

#define SCI_NINE   (1)

Definition at line 29 of file sci.h.

Function Documentation

◆ SCI_CheckOverrun()

BYTE SCI_CheckOverrun ( void  )

Get Overrun error

Returns
TRUE, FALSE.

Definition at line 98 of file sci.c.

Here is the caller graph for this function:

◆ sci_GetFERR()

BYTE sci_GetFERR ( void  )

◆ sci_GetNinth()

BYTE sci_GetNinth ( void  )

◆ SCI_Init()

BYTE SCI_Init ( DWORD  baud,
BYTE  ninebits 
)

Initialize SCI

Parameters
baud- Baud rate for serial com.
ninebits- set nine bits mode
Returns
TRUE, FALSE.

Definition at line 31 of file sci.c.

Here is the caller graph for this function:

◆ sci_PutNinth()

void sci_PutNinth ( BYTE  )

◆ SCI_Read()

BYTE SCI_Read ( void  )

Get byte from the input buffer

Returns
read byte from input buffer.

Definition at line 86 of file sci.c.

Here is the caller graph for this function:

◆ SCI_Write()

void SCI_Write ( BYTE  byte)

Put a byte in the outgoing buffer

Parameters
byte- byte to send.

Definition at line 73 of file sci.c.

Here is the caller graph for this function: