What does this #define do?

its was for PIC-C... anyways its used for writing something to PORTD... so output_d() is used to output something on PORTD
 
Hi baberjaved,

Looks like you need to learn your compiler. This is directly from CCS help file:

output_d (value)

Parameters: value is a 8 bit int

Function:
Output an entire byte to a port. The direction register is changed in accordance with the last specified #USE *_IO directive.

Examples: OUTPUT_B(0xf0);

Example Files: ex_patg.c

You can find the flie ex_patg.c in your examples folder. Hope this helps.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…