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 118 matches
CCS Forum Index
Author Message
  Topic: problem programming 12F510
Sid2286

Replies: 3
Views: 11299

PostForum: General CCS C Discussion   Posted: Wed Aug 31, 2016 5:04 am   Subject: problem programming 12F510
Hello,

I am trying to write a very basic code using for 12F510.

the code is as follows:


#include <12F510.h>
#fuses INTRC,NOWDT,MCLR //,PROTECT
#use delay(clock=8M)

void ...
  Topic: Setting up timer1
Sid2286

Replies: 3
Views: 6641

PostForum: General CCS C Discussion   Posted: Thu Nov 06, 2014 2:51 am   Subject: Setting up timer1
well, the timer is not running as expected, sometimes the LED toggles at 500msec and sometime it takes 10 secs.

I tried commenting INTRC_IO even that didnt help.

again I tried as what you sugges ...
  Topic: Setting up timer1
Sid2286

Replies: 3
Views: 6641

PostForum: General CCS C Discussion   Posted: Thu Nov 06, 2014 2:06 am   Subject: Setting up timer1
Hi,

I am trying to set a timer to 1millisec delay , but not able to achieve it.
My code is as follows:



#include <18F2520.h>
#device ICD=TRUE ADC=10
#fuses HS, INTRC_IO,NOLVP,WDT128 ...
  Topic: Phase delay in PWM generated using the setup_power_pwm() api
Sid2286

Replies: 1
Views: 4008

PostForum: General CCS C Discussion   Posted: Thu Oct 30, 2014 9:50 am   Subject: Phase delay in PWM generated using the setup_power_pwm() api
Hello Guys,

I am using setup_power_pwm() api to generate Complementary PWM on
1) Channel 0, Channel 1;
2) Channel 2, Channel 3;
3) Channel 4, Channel 5;

Now my requirement is that i want so ...
  Topic: Strange-18F4431 Problem.
Sid2286

Replies: 4
Views: 8251

PostForum: General CCS C Discussion   Posted: Wed Oct 22, 2014 12:50 am   Subject: Strange-18F4431 Problem.
MuC Pin LCD Pin
Pin D0 -> E
Pin D1 -> RS
Pin D2 -> RW

Pin D4 -> LCD_D4
Pin D5 -> LCD_D5
Pin D6 -> LCD_D6
Pin D7 -> LCD_D7

I tried NOPWMPIN but still there is no ch ...
  Topic: Strange-18F4431 Problem.
Sid2286

Replies: 4
Views: 8251

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 11:39 pm   Subject: Strange-18F4431 Problem.
Hi,

I have designed circuit for a display with the following code.

#include <18F4431.h>
#device ICD=TRUE ADC=10
#fuses HS,NOLVP,NOWDT
#use delay (clock=8M)
#include <flex_l ...
  Topic: Accessing Array
Sid2286

Replies: 1
Views: 5134

PostForum: General CCS C Discussion   Posted: Thu Jan 02, 2014 4:49 am   Subject: Accessing Array
I want to access an array and display on the LCD but getting the following error.
ERROR: previous identifier must be a pointer

how do I change my following code:?

#include <18F4520.h>
# ...
  Topic: LCD not working!
Sid2286

Replies: 8
Views: 11794

PostForum: General CCS C Discussion   Posted: Mon Dec 30, 2013 4:21 am   Subject: Resovled
Yeah I know proteus is not an idea way to test circuits, but just to confirm if the connections were proper I had to resolve to it.

Anyways the problem is resolved, Just the way temtronic suggested ...
  Topic: LCD not working!
Sid2286

Replies: 8
Views: 11794

PostForum: General CCS C Discussion   Posted: Sun Dec 29, 2013 9:44 pm   Subject: LCD not working!
I did check the connections again and they seems to be fine. I also checked the program on proteus and its working ok, so the connections are ok.

My .lst file is as follows:

CCS PCH C Compiler, ...
  Topic: LCD not working!
Sid2286

Replies: 8
Views: 11794

PostForum: General CCS C Discussion   Posted: Fri Dec 27, 2013 5:42 am   Subject: LCD not working!
Hi,

I'm using flex_lcd.c with connection as follows:


#define LCD_DB4 PIN_D0
#define LCD_DB5 PIN_D1
#define LCD_DB6 PIN_D2
#define LCD_DB7 PIN_D3

#define LCD_E PIN_D6
#define ...
  Topic: MCP3201 problem
Sid2286

Replies: 3
Views: 9453

PostForum: General CCS C Discussion   Posted: Thu Dec 05, 2013 11:49 pm   Subject: MCP3201 problem
I did not understand what you did here.,

do
{
Adc_Rdg*=2; //compiler automatically optimises this to rotation
pulse();
Adc_Rdg != input(ADC_OUT ...
  Topic: MCP3201 problem
Sid2286

Replies: 3
Views: 9453

PostForum: General CCS C Discussion   Posted: Thu Dec 05, 2013 3:42 am   Subject: MCP3201 problem
I'm trying to write a SPI code to read MCP3201 data, but I'm not sure what is wrong, the code is as follows:


void Init_ADC()
{
output_high(ADC_CS);
}

int16 Read ...
  Topic: 4922 SPI not working
Sid2286

Replies: 1
Views: 4262

PostForum: General CCS C Discussion   Posted: Fri Nov 22, 2013 3:29 am   Subject: 4922 SPI not working
Hi,

i tired the following code, but its not working...
not sure what is the problem.

void write_dac(int16 dac_value)
{
char i;
char temp;
output_low(DAC_CS);
...
  Topic: How to select Vref?
Sid2286

Replies: 5
Views: 13339

PostForum: General CCS C Discussion   Posted: Mon Sep 24, 2012 7:13 am   Subject: How to select Vref?
Hi,

I'm using PIC18F4520 for my project. My input for ADC is 200mV to 1.2V.
Now I want to give vref to my microcontroller. It has to pin RA3/AN3/
VREF+ and RA2/AN2/VREF-/CVREF pins.

So how do ...
  Topic: Help for LCD Driver
Sid2286

Replies: 2
Views: 5447

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 12:24 am   Subject: Help for LCD Driver
Hi,

I'm using pic18F47K22 for my project.
My complier version is PCWH 4.124.

I want to use the LCD Driver inside the microcontroller, but i'm not sure how to do that. I don't want to use flex_l ...
 
Page 1 of 8 Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group