B baberjaved New Member Jan 17, 2008 #1 What would this line actually do? Can someone explain in words #define TGLCD_DATA output_low(PIN_A0);
What would this line actually do? Can someone explain in words #define TGLCD_DATA output_low(PIN_A0);
Nigel Goodwin Super Moderator Most Helpful Member Jan 17, 2008 #2 It will simply replace every occurance of "TGLCD_DATA" in the program with "output_low(PIN_A0)" - which isn't PIC assembler?.
It will simply replace every occurance of "TGLCD_DATA" in the program with "output_low(PIN_A0)" - which isn't PIC assembler?.
Nigel Goodwin Super Moderator Most Helpful Member Jan 17, 2008 #4 baberjaved said: and What does this output_d() command do? Click to expand... As you don't mention what processor it's for, what language it's supposed to be, and specifically which compiler it is, how are we supposed to know?.
baberjaved said: and What does this output_d() command do? Click to expand... As you don't mention what processor it's for, what language it's supposed to be, and specifically which compiler it is, how are we supposed to know?.
B baberjaved New Member Jan 17, 2008 #5 its was for PIC-C... anyways its used for writing something to PORTD... so output_d() is used to output something on PORTD
its was for PIC-C... anyways its used for writing something to PORTD... so output_d() is used to output something on PORTD
B BeeBop Active Member Jan 17, 2008 #6 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.
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.