Mikroc, Man_send_config, Man_send_init – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 229: Man_send

Advertising
background image

MikroElektronika: Development tools - Books - Compilers

221

page

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

Prototype

void

Man_Send_Config(char *port, char txpin);

Description

The function prepares PIC for sending signal. You need to specify

port

and

txpin

(0–7) for outgoing signal. Baud rate is const 500 bps.

Example

Man_Send_Config(&PORTD, 0);

Man_Send_Config

Prototype

void

Man_Receive_Init(char *port);

Description

The function prepares PIC for sending signal. You need to specify

port

for outgoing

signal;

txpin

is pin 0 by default. Baud rate is const 500 bps.

Example

Man_Send_Init(&PORTD);

Man_Send_Init

Prototype

void

Man_Send(unsigned short data);

Description

Sends one byte (

data

).

Requires

To use this function, you must first prepare the PIC for sending. See

Man_Send_Config

or

Man_Send_Init

.

Example

unsigned short

msg;

...

Man_Send(msg);

Man_Send

Advertising
This manual is related to the following products: