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 CCS Technical Support

PIC16F18877 and A6 / A7 [Solved]

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



Joined: 17 Dec 2012
Posts: 5

View user's profile Send private message

PIC16F18877 and A6 / A7 [Solved]
PostPosted: Thu Mar 16, 2023 7:15 am     Reply with quote

I am using PIC16F18877 and A6 and A7 is not works.
Is there a trick to make these 2 ports act as output?

This is set:
Code:

#fuses NOEXTOSC              //External Oscillator not enabled
#fuses RSTOSC_HFINTRC_32MHZ  //On Power-up clock running from HFINTRC at 32 MHz
#fuses HS                    //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#fuses CKS                   //Clock Switching Enabled
#fuses FCMEN                 //Fail-safe clock monitor enabled
#fuses LPBOR                 //Low-Power Brownout reset is enabled
#fuses BORV27                //Brownout reset at 2.7V
#fuses STVREN                //Stack full/underflow will cause reset
#fuses WDTCLK_HFINTRC        //WDT uses 31.25 kHz HFINTRC as clock source
#fuses WDT                   //Watch Dog Timer
#fuses WDTSW                 //Watch Dog Timer Postscale settable in software
#fuses WDTWIN_100%           //Watchdog Window is 100% of WDT period
#fuses WDT32768              //Watch Dog Timer uses 1:32768 Postscale
#fuses NOWRT                 //Program memory not write protected
#fuses NOLVP                 //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#fuses NOCLKOUT              //I/O function on OSC2
#fuses MCLR                  //Master Clear pin enabled
#fuses PPS1WAY               //Allows only one reconfiguration of peripheral pins
#fuses PUT                   //Power Up Timer
#fuses NOSCANE               //Scanner module is not available for use

#use fixed_IO(A_outputs = PIN_A0,PIN_A1,PIN_A2,PIN_A6,PIN_A7)
Birepo



Joined: 17 Dec 2012
Posts: 5

View user's profile Send private message

PostPosted: Thu Mar 16, 2023 7:17 am     Reply with quote

I am using PCWHD Compiler V5.115
Birepo



Joined: 17 Dec 2012
Posts: 5

View user's profile Send private message

PostPosted: Thu Mar 16, 2023 7:43 am     Reply with quote

This was the error

//#fuses HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)

Do not use HS
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