Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

What does this #define do?

Status
Not open for further replies.
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top