sci.c File Reference

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

#include "app.h"
Include dependency graph for sci.c:

Go to the source code of this file.

Functions

BYTE SCI_Init (DWORD baud, BYTE ninebits)
 
void SCI_Write (BYTE byte)
 
BYTE SCI_Read (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.c.

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_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_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: