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

Search found 5 matches
CCS Forum Index
Author Message
  Topic: Problem with I/O output
seanbb

Replies: 4
Views: 7250

PostForum: General CCS C Discussion   Posted: Mon Jan 15, 2007 10:05 pm   Subject: Problem with I/O output
Hi, I have try to set GP4 as output by output_high(PIN_B4), and GP5 as output by output_high(PIN_B5), it is working correct.

While I try to set GP0, GP1 to output high, it is not working. The diffe ...
  Topic: Problem with I/O output
seanbb

Replies: 4
Views: 7250

PostForum: General CCS C Discussion   Posted: Mon Jan 15, 2007 8:53 pm   Subject: Problem with I/O output
Here is my code

#include <12f510.h>
#include <stdlib.h>
//#include <delay.c>

//#fuses INTRC, NOWDT,NOPROTECT,NOMCLR


#fuses NOWDT,NOPROTECT,NOMCLR,INTRC
#use delay(cloc ...
  Topic: Problem with I/O output
seanbb

Replies: 4
Views: 7250

PostForum: General CCS C Discussion   Posted: Mon Jan 15, 2007 8:49 pm   Subject: Problem with I/O output
Hi, I fail to output GP0 high of PIC12F510.
Do I need to config the TRISIO? In my watch window, I found TRISIO, GPIO is always 0.
  Topic: PIC12F510 ADC Problem
seanbb

Replies: 2
Views: 4855

PostForum: General CCS C Discussion   Posted: Wed Jan 10, 2007 3:45 am   Subject: PIC12F510 ADC Problem
#if defined(__PCB__)
#include
#include
//#include

#fuses INTRC, NOWDT,NOPROTECT,NOMCLR
#use delay(clock=4000000)
#endif

void init(void);
char check_input(void);
char input_stat;
char ...
  Topic: PIC12F510 ADC Problem
seanbb

Replies: 2
Views: 4855

PostForum: General CCS C Discussion   Posted: Wed Jan 10, 2007 3:42 am   Subject: PIC12F510 ADC Problem
Hi, I use PIC12F510 and MCP9700 temperature sensor.
I have connect MCP9700 Vout to 12F510 GPIO2.
GPIO2 is configue as the analog input.

I could get some value in ADRES, but it's not stable, alway ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group