CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

problem with port D

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Oscar
Guest







problem with port D
PostPosted: Wed Mar 22, 2006 12:45 pm     Reply with quote

I need to work with port D to send a information to beams of but my I cosay for some reason does not do it, please help me. I leave this I cosay them apparently here very simple to catch and to off the port but does not do it, Thanks reason why can do and if they can place again I cosay improved serious fantastic...



#include <18F4620.h>
#device adc=8
#use delay(clock=20000000)
#fuses NOWDT,WDT128,HS, NOPROTECT, IESO, BROWNOUT, BORV21, NOPUT, NOCPD, NOSTVREN, NODEBUG, NOLVP, NOWRT, NOWRTD, NOEBTR, NOCPB, NOEBTRB, NOWRTC, NOWRTB, NOFCMEN, NOXINST, NOPBADEN, NOLPT1OSC, NOMCLR

#define output_d





void main()
{

setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);

setup_spi(FALSE);

setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_timer_3(T3_DISABLED|T3_DIV_BY_1);

setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);


while (1)
{
delay_ms(500);
output_d(0x00);
delay_ms(500);
output_d(0xff);

}




}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 22, 2006 12:57 pm     Reply with quote

Quote:

I need to work with port D to send a information to beams of but my I
cosay for some reason does not do it,

Get rid of the #define statement shown in bold below. Delete it.
Quote:

#include <18F4620.h>
#device adc=8
#use delay(clock=20000000)
#fuses NOWDT,WDT128,HS, NOPROTECT, IESO, BROWNOUT, BORV21, NOPUT, NOCPD, NOSTVREN, NODEBUG, NOLVP, NOWRT, NOWRTD, NOEBTR, NOCPB, NOEBTRB, NOWRTC, NOWRTB, NOFCMEN, NOXINST, NOPBADEN, NOLPT1OSC, NOMCLR

#define output_d


void main()
{
Oscar
Guest







still I have errors
PostPosted: Wed Mar 22, 2006 1:26 pm     Reply with quote

I did it but still I have errors, is not sufficient. I continue having problems
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 22, 2006 1:34 pm     Reply with quote

I deleted that line and compiled your program with no errors.
I did this with the PCH compiler, version 3.245.
Oscar
Guest







still I have errors please help me...
PostPosted: Thu Mar 23, 2006 7:29 am     Reply with quote

Excuse which happens is that I have Plug-in of Mplab and when I suppress this line presents/displays errors to me, and I have version 3,203 of the CCS and also gives errors me. Please help me with this...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group