Author |
Message |
Topic: dual channel AD conversion in pic18F4331 |
Hicham
Replies: 2
Views: 7034
|
Forum: General CCS C Discussion Posted: Sun Apr 11, 2010 8:19 am Subject: dual channel AD conversion in pic18F4331 |
Thanks for this example, PCM programmer.
Now I understand how it works.
So, I have to create new bytes like "ADC_FIFOEN "
I thought they're already build-in CCS.
Anyway.. thanks for ... |
Topic: dual channel AD conversion in pic18F4331 |
Hicham
Replies: 2
Views: 7034
|
Forum: General CCS C Discussion Posted: Thu Apr 08, 2010 2:42 pm Subject: dual channel AD conversion in pic18F4331 |
Hello,
I'm working with pic18F4331 and it has a multi-channel AD conversion.
Based on the datasheet, it has 4 places to save the value after conversion before putting them in the final registers ( ... |
Topic: Hard to figure out Power control PWM module in pic18F4331 |
Hicham
Replies: 5
Views: 9541
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 5:10 am Subject: Hard to figure out Power control PWM module in pic18F4331 |
@Ttelmah ,
Thanks for your interest, like i said i have CCS compiler 4.088 and the manual is shown in my first post. and this is my first compiler. never used CCS before. do you have a different manu ... |
Topic: Hard to figure out Power control PWM module in pic18F4331 |
Hicham
Replies: 5
Views: 9541
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 2:13 am Subject: Hard to figure out Power control PWM module in pic18F4331 |
Thanks PCM programmer,
For the testing, I can't use the lab everyday and I'm waiting my turn .
And I really want to know how it works, not just get the values and put them in my program. And w ... |
Topic: Hard to figure out Power control PWM module in pic18F4331 |
Hicham
Replies: 5
Views: 9541
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 3:31 pm Subject: Hard to figure out Power control PWM module in pic18F4331 |
Hello,
I'm having some problem in setting up the pwm module in pic 18F4331.
So, i was wondering if anybody here can help me out.
Here is my code, please take a look at it.
#include "D: ... |
Topic: 5 pwm with 18f4331 pic |
Hicham
Replies: 17
Views: 58012
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 4:38 am Subject: 5 pwm with 18f4331 pic |
3) What about dead time (1 to 63) ? It has also a post scale, where is it ?
and the formula to calculate the dead time is
Dead Time = Dead Time Value/(FOSC/Prescaler) (notice they didn't add the fam ... |
Topic: MATLAB to PIC |
Hicham
Replies: 4
Views: 7784
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 3:54 am Subject: MATLAB to PIC |
I don't think if it is possible, the have added dspic blocks in matlab, but for pic I have no idea..but this will be great to have this option. |
Topic: 5 pwm with 18f4331 pic |
Hicham
Replies: 17
Views: 58012
|
Forum: General CCS C Discussion Posted: Wed Mar 17, 2010 3:48 pm Subject: 5 pwm with 18f4331 pic |
Thanks PCM programmer, this example helps a lot, but i have lots questions:
1) If you put time_base = 1000 ? will this make the pwm timer count from 1000 to 2000, or from 1000 to 3000 ??, If its th ... |
Topic: set_tris_x( ) & PIC16F84 |
Hicham
Replies: 6
Views: 10356
|
Forum: General CCS C Discussion Posted: Wed Feb 17, 2010 4:20 am Subject: set_tris_x( ) & PIC16F84 |
Quote:
but the instruction TRIS is valid just for PIC16C5X and not for pic16F84. right ?
How did you decide that ? I repeat, the 16F84 data sheet says clearly:
Well, I guess I didn't read it wel ... |
Topic: set_tris_x( ) & PIC16F84 |
Hicham
Replies: 6
Views: 10356
|
Forum: General CCS C Discussion Posted: Tue Feb 16, 2010 1:27 pm Subject: set_tris_x( ) & PIC16F84 |
#bungee-
like i said, Proteus show me an error about this function. that's why i asked
but i'll test it in real circuit to be sure about it
thanks for your help. |
Topic: set_tris_x( ) & PIC16F84 |
Hicham
Replies: 6
Views: 10356
|
Forum: General CCS C Discussion Posted: Tue Feb 16, 2010 2:11 am Subject: set_tris_x( ) & PIC16F84 |
#PCM programmer
thanks for the help
but the instruction TRIS is valid just for PIC16C5X and not for pic16F84. right ?
and i choose pic16F84A to program ????
any idea ? |
Topic: set_tris_x( ) & PIC16F84 |
Hicham
Replies: 6
Views: 10356
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 2:16 pm Subject: set_tris_x( ) & PIC16F84 |
Hello,
I used set_tris_x( ) function to configure PIC16F84 ports, like this :
set_tris_a(0x00);
and I got an error in Proteus
I checked the LST file..and found out that the asm c ... |
Topic: details about read_adc function |
Hicham
Replies: 6
Views: 22140
|
Forum: General CCS C Discussion Posted: Sun Feb 14, 2010 11:59 am Subject: details about read_adc function |
# languer
thanks man,its really helpful. and i like the LST trick.i'll use it
#PCM programmer
Thanks, but you can't do anything wile waiting for the AD conversion ??
check the previews post by ... |
Topic: details about read_adc function |
Hicham
Replies: 6
Views: 22140
|
Forum: General CCS C Discussion Posted: Fri Feb 12, 2010 8:17 am Subject: details about read_adc function |
Thanks,
Your code is very simple, I need to do other stuff while waiting the AD conversion. |
Topic: details about read_adc function |
Hicham
Replies: 6
Views: 22140
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2010 1:48 pm Subject: details about read_adc function |
Hello,
I'm new to PIC-C, and I'm moving from assembly to C,
when i program AD conversion (pic 16F876) with assembly
i used to it in 2 steps
first : charging the capacitor with
bsf ADCON0,ADON ... |
|