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 18 matches
CCS Forum Index
Author Message
  Topic: keypad routine for automatic fan controller
daraos

Replies: 13
Views: 12655

PostForum: General CCS C Discussion   Posted: Sun Sep 26, 2010 8:40 pm   Subject: keypad routine for automatic fan controller
there it is, add

lcd_init();

inside main, before the while(1)
  Topic: keypad routine for automatic fan controller
daraos

Replies: 13
Views: 12655

PostForum: General CCS C Discussion   Posted: Sun Sep 26, 2010 12:07 pm   Subject: keypad routine for automatic fan controller
I'm on my phone, so I don't have access to the lcd code, but I think that the lcd needs to be initiated, I think is lcd_init(), check in the lcd.h file
  Topic: I2C: 18f2550 master and 30f3013 slave, won't work
daraos

Replies: 1
Views: 4373

PostForum: General CCS C Discussion   Posted: Thu Sep 16, 2010 10:41 am   Subject: I2C: 18f2550 master and 30f3013 slave, won't work
I don't know why, but I solved it changing the Master Address to 0x60, and the Slave answer at the address 0xB0. Really weird, probably because I'm using a invalid address for the slave or something l ...
  Topic: keypad routine for automatic fan controller
daraos

Replies: 13
Views: 12655

PostForum: General CCS C Discussion   Posted: Thu Sep 16, 2010 8:52 am   Subject: keypad routine for automatic fan controller
The value of TEMPORARY is 0 when the program starts and is reset to 0 when you press ENTER.

So, you start your program and temporary=0

Press 3 ==> temporary = temporary*10 + key ==> ...
  Topic: keypad routine for automatic fan controller
daraos

Replies: 13
Views: 12655

PostForum: General CCS C Discussion   Posted: Wed Sep 15, 2010 12:03 pm   Subject: keypad routine for automatic fan controller
Sorry, I posted in a hurry and wasn't able to finish.

Let's say that the value you read from the keys is stored in a variable named KEY.
I'm assuming that you have a keypad with numbers 0-9 and at ...
  Topic: keypad routine for automatic fan controller
daraos

Replies: 13
Views: 12655

PostForum: General CCS C Discussion   Posted: Wed Sep 15, 2010 8:57 am   Subject: keypad routine for automatic fan controller
so you need to get data from the keypad

You'll need a ENTER key to tell the program when you're done entering numbers
create a variable to hold the data and with each number pressed, do something ...
  Topic: I2C: 18f2550 master and 30f3013 slave, won't work
daraos

Replies: 1
Views: 4373

PostForum: General CCS C Discussion   Posted: Wed Sep 15, 2010 8:43 am   Subject: I2C: 18f2550 master and 30f3013 slave, won't work
I'm using a PIC18f2550 as a master and a dsPIC30f3013 as a slave, and the interrupt in the slave never triggers.

I started 2 new projects leaving the code at its bare minimum.
The oscilloscope sho ...
  Topic: DSPIC33 and setup_oscillator() problems.. a solution..
daraos

Replies: 5
Views: 10712

PostForum: General CCS C Discussion   Posted: Wed Mar 31, 2010 9:14 am   Subject: DSPIC33 and setup_oscillator() problems.. a solution..
Try pasting the code I posted inside the main. The delay should be clock=40M
The pic must start slow and in the code you must increase the speed. so, do it like this:


//put all your fuses here ...
  Topic: Analog max impedance
daraos

Replies: 9
Views: 8586

PostForum: General CCS C Discussion   Posted: Thu Jan 29, 2009 10:40 am   Subject: Analog max impedance
the safest bet is using an OPAMP as voltage follower such as the classic lm741, or a lm324 (four 741 in one IC)
  Topic: dsPIC33F can't divide or use float32
daraos

Replies: 3
Views: 4824

PostForum: General CCS C Discussion   Posted: Thu Jan 29, 2009 9:30 am   Subject: dsPIC33F can't divide or use float32
Could it be that the divide by 10 on peso adds many cpu cycles so there is a noticeable delay between the low and the next high. Removing the divide means the the high and low are very few CPU cycles ...
  Topic: help in pic16f506!!!
daraos

Replies: 8
Views: 7800

PostForum: General CCS C Discussion   Posted: Wed Jan 28, 2009 2:07 pm   Subject: help in pic16f506!!!
shouldn't the functions be outside of Main?
  Topic: dsPIC33F can't divide or use float32
daraos

Replies: 3
Views: 4824

PostForum: General CCS C Discussion   Posted: Wed Jan 28, 2009 11:50 am   Subject: dsPIC33F can't divide or use float32
Hi, I'm running a dsPIC33FJ128GP802 with this code:


#include <33FJ128GP802.h>

#rom 0xF80006={0b1111111101111000} //FOSCSEL
#rom 0xF80008={0b1111111100011011} //FOS ...
  Topic: Adding debounce into my program
daraos

Replies: 2
Views: 3184

PostForum: General CCS C Discussion   Posted: Wed Jan 28, 2009 10:43 am   Subject: Adding debounce into my program
an easy way to do it is to check the buttons every 10 ms, and activate the leds when the program detects the button presed twice in a row... something like:


int left_led;
do{
d ...
  Topic: dsPIC33F portA pins not in .H file [solved]
daraos

Replies: 0
Views: 2421

PostForum: General CCS C Discussion   Posted: Tue Jan 27, 2009 11:23 am   Subject: dsPIC33F portA pins not in .H file [solved]
Hi everyone.

the 33FJ128GP802.h has definitions por all the pins from port B, C, D, F & G, but this pic only has ports A & B, so I can't use port A, and don't know how to add it.

the por ...
  Topic: DSPIC33 and setup_oscillator() problems.. a solution..
daraos

Replies: 5
Views: 10712

PostForum: General CCS C Discussion   Posted: Mon Jan 26, 2009 9:30 am   Subject: DSPIC33 and setup_oscillator() problems.. a solution..
Thanks Mauro! that's exactly what I was looking for, the clock in the 33f is a real pain in the neck. Now, what I can't do, is configure the pre, post & clockdiv, the 33f assembler is waaay too mu ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group