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 14 matches
CCS Forum Index
Author Message
  Topic: glcd problem
takumi

Replies: 2
Views: 4628

PostForum: General CCS C Discussion   Posted: Wed Jan 19, 2011 1:56 am   Subject: glcd problem
Tq Markdem, I've learned something from your answer. But how about a GLCD TGL12864E which didn't have any CS pins? Which driver of CCS is suitable?

1. vss
2. vdd
3. vo
4. rs
5. r/w
6. e
7. D ...
  Topic: turn high 2-3 port at the same time
takumi

Replies: 2
Views: 3491

PostForum: General CCS C Discussion   Posted: Wed Aug 04, 2010 6:11 am   Subject: turn high 2-3 port at the same time
tq.. found the solution already. Just add 330 resistor before the LED.
  Topic: turn high 2-3 port at the same time
takumi

Replies: 2
Views: 3491

PostForum: General CCS C Discussion   Posted: Wed Aug 04, 2010 12:37 am   Subject: turn high 2-3 port at the same time

#define SW1 PIN_B0
#define SW2 PIN_C5
#define BUZZER PIN_D6
#define LED1 PIN_D7
#define LED2 PIN_E2

void main(){

while(1){ ...
  Topic: Interfacing 4x4 keypad to 2x16 hd44780LCD Driver
takumi

Replies: 14
Views: 21752

PostForum: General CCS C Discussion   Posted: Fri Jul 30, 2010 9:22 pm   Subject: Interfacing 4x4 keypad to 2x16 hd44780LCD Driver
//Keypad connection:
#define row0 PIN_D0 // default PIN_B4-PIN_B7
#define row1 PIN_D1
#define row2 PIN_D2
#define row3 PIN_D3
#define col0 PIN_B0
#define col1 PIN_B1
#define col2 P ...
  Topic: Custom LCD driver
takumi

Replies: 2
Views: 3670

PostForum: General CCS C Discussion   Posted: Tue May 18, 2010 8:11 pm   Subject: Custom LCD driver
tq it work
  Topic: Custom LCD driver
takumi

Replies: 2
Views: 3670

PostForum: General CCS C Discussion   Posted: Mon May 17, 2010 11:44 pm   Subject: Custom LCD driver
Hello, hi all!

I try to used customize pin for 16x2 lcd but fail to use the different pin configuration.
Anyone can help please!

my code as follow:


/#define LCD_ENABLE_PIN PIN_B5
#define ...
  Topic: function problem
takumi

Replies: 9
Views: 10114

PostForum: General CCS C Discussion   Posted: Thu Jan 07, 2010 12:11 am   Subject: function problem

#include<16F877A.h>
#device adc=10
#fuses HS, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=20000000)

#include <STDLIB.H>

int16 math () ; // a function ...
  Topic: how to control by bit!
takumi

Replies: 2
Views: 7508

PostForum: General CCS C Discussion   Posted: Wed Jan 06, 2010 7:27 pm   Subject: how to control by bit!
Hi all, I need some help to understand about controlling output ports by
bit. The code is as follows (PIC16F877A):

#define sensor1 PIN_D0
#define sensor2 PIN_D1
#define motor1 PIN_B0
#define m ...
  Topic: ADC, rs232
takumi

Replies: 2
Views: 4186

PostForum: General CCS C Discussion   Posted: Sun Mar 29, 2009 6:59 pm   Subject: ADC, rs232
Not sure why it set to a guess when I sending this problem...
Btw forget to tell that i'm using
PIC16f877A, 20MHz,
Btw about you said using a timer but how? I really didn't know how to?
Is it ok i ...
  Topic: PWM_help please
takumi

Replies: 9
Views: 9101

PostForum: General CCS C Discussion   Posted: Sun Mar 22, 2009 11:18 pm   Subject: PWM_help please
hi all,

PIC16f877A, 20MHz
Need help "please" since hardware pwm cannot be use in my application.

I used software pwm but not get the result as I want.
I want to have a pwm dual pulse ...
  Topic: PWM_help please
takumi

Replies: 9
Views: 9101

PostForum: General CCS C Discussion   Posted: Fri Mar 20, 2009 12:54 pm   Subject: PWM_help please
I have created a pwm as below:
void pwm(){
output_high(pin_d2);
output_low(pin_b4);
delay_us(70);

output_low(pin_d2); ...
  Topic: PWM_help please
takumi

Replies: 9
Views: 9101

PostForum: General CCS C Discussion   Posted: Thu Mar 19, 2009 6:09 am   Subject: PWM_help please
how about this

pwm1 i already create the pwm 200us(on)600us(off)

is it posible to create pwm2 that 400us(off)200us(on)200us(off)?

setup_ccp1(CCP_PWM);
setup_ccp2(CCP_PWM);

setup_timer ...
  Topic: PWM_help please
takumi

Replies: 9
Views: 9101

PostForum: General CCS C Discussion   Posted: Wed Mar 18, 2009 10:10 pm   Subject: PWM_help please
float duty;
duty = 62;
set_pwm1_duty(duty);
You have declared the duty cycle as a 'float'.

The CCS manual says this:
Syntax: set_pwm1_duty (value)

Parameters: value may be an 8 or 16 bit ...
  Topic: PWM_help please
takumi

Replies: 9
Views: 9101

PostForum: General CCS C Discussion   Posted: Wed Mar 18, 2009 8:18 pm   Subject: PWM_help please
hi all,

I try to generate pwm to pulse my led, but my the pwm does not work as I want. Please help me... I have simulate it in proteus but the duty only 100us not 200us as needed.

pwm period = 1 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group