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

PIC16F616 problem

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







PIC16F616 problem
PostPosted: Thu Aug 09, 2007 3:57 am     Reply with quote

Hi,

I have problem with config bit in the PIC16F616.
This is my code:

#include <16F616.h>
#fuses INTRC_IO,NOWDT,NOPROTECT,IOSC8,NOPUT
#use delay(internal=8M)

void main() {

while( TRUE ) {
OUTPUT_A(0XFF);
}

This simple code not function, PORTA is always LOW.
I use the Internal OSC.
The software is MPLAB 7.60a and CCSC 4.033
I have tested through the ICD header with .asm and the CLKOUT was well
It does't work while I use the C code in MPLAB.
Could someone help me to solve this problem, please~
gcswales



Joined: 13 Jun 2007
Posts: 1
Location: ENGLAND

View user's profile Send private message Visit poster's website

PostPosted: Fri Aug 12, 2011 7:28 am     Reply with quote

Try configuring all the ADC lines to digital:-

setup_adc_ports(NO_ANALOGS);
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