Author |
Message |
Topic: Timer1 - Time calculating |
hakam_saffour
Replies: 10
Views: 11584
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2008 1:31 pm Subject: Timer1 - Time calculating |
Thank you all, for your advices.
I will check them next Monday.
Regards' |
Topic: Timer1 - Time calculating |
hakam_saffour
Replies: 10
Views: 11584
|
Forum: General CCS C Discussion Posted: Wed Jul 16, 2008 3:07 am Subject: Timer1 - Time calculating |
Dear guest1:
would you please clarify this... There is a fast interrupt which saves and restores nothing (keyword FAST) but you must save anything the ISR changes yourself.
I can not believe tha ... |
Topic: Timer1 - Time calculating |
hakam_saffour
Replies: 10
Views: 11584
|
Forum: General CCS C Discussion Posted: Wed Jul 16, 2008 3:02 am Subject: Timer1 - Time calculating |
Code:
#fuses HS,H4,NOWDT,NOPROTECT,NOLVP
You can not combine the HS and H4 fuse! Most likely the H4 fuse is neglected and your system is running at 10MHz instead of 40MHz.
It is mentioned in th ... |
Topic: Timer1 - Time calculating |
hakam_saffour
Replies: 10
Views: 11584
|
Forum: General CCS C Discussion Posted: Tue Jul 15, 2008 4:11 am Subject: Timer1 - Time calculating |
Hi RLScott,
Thank you for your advise.
Would you please help me to find out the mistake here. It is about the same issue, I set Timer 2 to interrupt every 5uS, and in the interrupt routine I just ... |
Topic: Timer1 - Time calculating |
hakam_saffour
Replies: 10
Views: 11584
|
Forum: General CCS C Discussion Posted: Mon Jul 14, 2008 3:56 am Subject: Timer1 - Time calculating |
Hello:
I am testing Timer1 as the follwing:
1- get the value of timer 1
2- compare it with a specific number
3- output 1's & 0's (in order to be able to measure the time on the OSC)
CLK fre ... |
Topic: Center Lined PWM |
hakam_saffour
Replies: 7
Views: 8115
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2008 12:40 pm Subject: Center Lined PWM |
Dear PCM programmer Thank you for your correction and advice.
Dear crystal_lattice: Thank you for your hint.
And dear SherpaDoug: the center aligned method minimize the EMI in addition to reduci ... |
Topic: Center Lined PWM |
hakam_saffour
Replies: 7
Views: 8115
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2008 2:44 am Subject: Center Lined PWM |
Yes, you are right...the duty is the same..but the idea to have this duty in the middle of the period not on the begining.
May be it look funny, but for three phases motor, this type of PWM is mcuh b ... |
Topic: Center Lined PWM |
hakam_saffour
Replies: 7
Views: 8115
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2008 2:57 am Subject: Center Lined PWM |
Hello,
I am developing a code to control a motor using 'CENTER LINED PWM'.
Mico-controller: PIC18F8520
Compiler: PCWHD Compiler 4.057
I will explain what 'center Lined' means, but let me first ... |
Topic: Send message through RS485 |
hakam_saffour
Replies: 6
Views: 6660
|
Forum: General CCS C Discussion Posted: Mon Jun 16, 2008 6:05 am Subject: Send message through RS485 |
Ttelmah, Guest_7068, and arunb thanks for your advise.
Appreciate your support
Best Regards' |
Topic: Send message through RS485 |
hakam_saffour
Replies: 6
Views: 6660
|
Forum: General CCS C Discussion Posted: Wed Jun 11, 2008 1:42 am Subject: Send message through RS485 |
Dear Arunb:
Thank you for your reply, actually I want to connect PIC to other controller (system) using RS485, but first I want to make sure that every thing is ok from the PIC side.
Is it ok if ... |
Topic: Send message through RS485 |
hakam_saffour
Replies: 6
Views: 6660
|
Forum: General CCS C Discussion Posted: Tue Jun 10, 2008 3:59 am Subject: Send message through RS485 |
Hi,
I am trying to send data stream through UART, specifically through RS485. I wrote the following simple code, just to check how I can send data through RS485 is working:
#if defined(__PCH ... |
Topic: CCS Compiler Examples |
hakam_saffour
Replies: 2
Views: 4582
|
Forum: General CCS C Discussion Posted: Wed May 14, 2008 12:58 pm Subject: CCS Compiler Examples |
Thank you for your advise |
Topic: CCS Compiler Examples |
hakam_saffour
Replies: 2
Views: 4582
|
Forum: General CCS C Discussion Posted: Wed May 14, 2008 4:46 am Subject: CCS Compiler Examples |
Dear All:
I have registered version of PCWH Compiler version 3.180, I was reading in this website, the list of examples which comes with the compiler software, but it seems my C compiler version is ... |
|