|
|
View previous topic :: View next topic |
Author |
Message |
Oscar Guest
|
problem with port D |
Posted: Wed Mar 22, 2006 12:45 pm |
|
|
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
|
|
Posted: Wed Mar 22, 2006 12:57 pm |
|
|
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 |
Posted: Wed Mar 22, 2006 1:26 pm |
|
|
I did it but still I have errors, is not sufficient. I continue having problems |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Mar 22, 2006 1:34 pm |
|
|
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... |
Posted: Thu Mar 23, 2006 7:29 am |
|
|
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... |
|
|
|
|
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
|