Author |
Message |
Topic: Problem with PIC16F628A And Serial LCD |
amjad_alahdal
Replies: 1
Views: 6002
|
Forum: General CCS C Discussion Posted: Tue Mar 25, 2014 10:59 am Subject: Problem with PIC16F628A And Serial LCD |
Hi everyone,
I am using a PIC16F628A, and a sparkfun serial LCD,,
Well, I have a problem in displaying. Sometimes, the LCD works well, others it prints some strange characters such as Omega Symbol ... |
Topic: LCD doesn't Display |
amjad_alahdal
Replies: 3
Views: 4995
|
Forum: General CCS C Discussion Posted: Sat Feb 22, 2014 6:54 am Subject: LCD doesn't Display |
Thank you |
Topic: LCD doesn't Display |
amjad_alahdal
Replies: 3
Views: 4995
|
Forum: General CCS C Discussion Posted: Sat Feb 22, 2014 6:16 am Subject: LCD doesn't Display |
Hello,
I am using a serial LCD as the following one :
#include <18f2455.h>
#FUSES HS,NOLVP,NOPROTECT,NOWDT,PUT
#USE DELAY(clock=16M)
#include "Flex_LCD216.c"
... |
Topic: The reading is not right |
amjad_alahdal
Replies: 2
Views: 4709
|
Forum: General CCS C Discussion Posted: Wed Sep 04, 2013 4:40 am Subject: The reading is not right |
Hi,
I used PIC18F2455 Crystal is 16MHz,
I used an ultrasonic range finder such as this one :
https://www.sparkfun.com/products/9491
it's very obvious that I can use 3 ways to get the reading,
... |
Topic: HMC5883L Help |
amjad_alahdal
Replies: 12
Views: 31916
|
Forum: General CCS C Discussion Posted: Sat May 11, 2013 1:27 pm Subject: HMC5883L Help |
Question ::
When the x-axis in the sensor points to the North,
what should the output be ?
I Have changed the display type to be :
fprintf(COM_LCD,"%Lu, %Lu, %Lu ", compass.x ... |
Topic: How to set interrupts? |
amjad_alahdal
Replies: 7
Views: 8316
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2013 11:01 pm Subject: How to set interrupts? |
Thank you guys for your help.
I believe there was no mistake in my program.
I could find out that the mistake was Hardware mistake.
Thank you for your replies |
Topic: How to set interrupts? |
amjad_alahdal
Replies: 7
Views: 8316
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2013 10:27 pm Subject: How to set interrupts? |
I have written this program :
#include <18F2455.H>
#device PASS_STRINGS=IN_RAM
#FUSES NOWDT,HS,NOBROWNOUT,NOLVP
#USE delay(clock=16M)
int counter = 0 ;
#int_EXT
voi ... |
Topic: How to set interrupts? |
amjad_alahdal
Replies: 7
Views: 8316
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2013 12:04 pm Subject: How to set interrupts? |
Ok,
As I have been reading about the interrupts. I found out the following.
First I have to write the function in which the interrupts should do.
In my situation I should write the following pro ... |
Topic: How to set interrupts? |
amjad_alahdal
Replies: 7
Views: 8316
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2013 8:00 am Subject: How to set interrupts? |
Thank you for letting me notice about the pin
and Yes
I have checked the datasheet.
B0 refers to External Interrupt 0
B1 refers to External Interrupt 1
B2 refers to External Interrupt 2 |
Topic: How to set interrupts? |
amjad_alahdal
Replies: 7
Views: 8316
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2013 7:06 am Subject: How to set interrupts? |
how can I set interrupts at any port in the PIC ?
I need to set also a counter that counts up when the interrupt goes from h_to_low and then goes from low to high.
I started to call some interru ... |
Topic: PWM |
amjad_alahdal
Replies: 10
Views: 11628
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 10:58 pm Subject: PWM |
PCM programmer...
I got confused about how to calculate the Duty. I used the CCS help and figured out the following :
1- when writing setup_ccp1(CCP_PWM)
Time = (1/clock) * 4 * 16 * (period+1)
In ... |
Topic: PWM |
amjad_alahdal
Replies: 10
Views: 11628
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 9:09 pm Subject: PWM |
Ok thanks, but I have another question. How can I turn the PWM off and use the port as Digital output ??? |
Topic: PWM |
amjad_alahdal
Replies: 10
Views: 11628
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 12:26 pm Subject: PWM |
Thank You so Much.
^_^
just as I wanted. |
Topic: PWM |
amjad_alahdal
Replies: 10
Views: 11628
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 12:20 pm Subject: PWM |
Ok, Thank you .
I also want to be sure that I used the right pins. and if it helps. I'm using DC motors
PIC 18F2455
C2 for PWM1
C1 For PWM2
....
trying now |
Topic: I need help for nRF24L01 code library |
amjad_alahdal
Replies: 8
Views: 23536
|
Forum: General CCS C Discussion Posted: Wed Apr 03, 2013 12:13 pm Subject: I need help for nRF24L01 code library |
Ok,
here is what you should do.
go to
http://www.ccsinfo.com/forum/viewtopic.php?t=47351&highlight=nrf24l01
the library of the device is already there.
and then go to the last post.
I ... |
|