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 11 matches
CCS Forum Index
Author Message
  Topic: adc help
azykazy

Replies: 7
Views: 9896

PostForum: General CCS C Discussion   Posted: Fri Nov 04, 2011 2:22 am   Subject: adc help
Thanks for the advice people.

PCM thanks for pointing that volts error out to me. Brilliant!

I am using the corresponding adc values to compare so the pic doesnt have to do unnecessary math calc ...
  Topic: adc help
azykazy

Replies: 7
Views: 9896

PostForum: General CCS C Discussion   Posted: Thu Nov 03, 2011 7:49 am   Subject: adc help
I need to measure the battery voltage.

I have the appropriate voltage divider network in place and when the battery is at its peak 14V the voltage on adc is +5V.

How do I get a read out on the a ...
  Topic: adc help
azykazy

Replies: 7
Views: 9896

PostForum: General CCS C Discussion   Posted: Thu Nov 03, 2011 7:03 am   Subject: adc help
Hi All,

I am trying to measure the voltage across a battery using the adc using a voltage divider network. Pic 18f4550 +Vref is +5v -Vref is ground. My ADC is not working any ideas whats wrong?

...
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Tue Oct 11, 2011 6:55 am   Subject: Toggle of PIN C2 and PIN D5
Hi all,

I have been doing research and found out that i can use the FULL Bridge setting to get what i need.


#int_TIMER2
void intrpt_service(void)
{
if (forward == 1 && ...
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Sun Oct 09, 2011 3:20 am   Subject: Toggle of PIN C2 and PIN D5
Hi PCM,

PMW frequency i want is 5KHz.

I have used the formula i get the PR2 value to be 199.


setup_timer_2(T2_DIV_BY_1, 199, 1);


Will the above interrupt at every PWM cycle?
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Sat Oct 08, 2011 10:46 pm   Subject: Toggle of PIN C2 and PIN D5
The pwm frequency is 5Khz.
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2011 2:47 pm   Subject: Toggle of PIN C2 and PIN D5
Hi PCM,

I have read the thread you have posted with regard to what I was trying to accomplish. I see that Ports can only be set if we disable the PWM.

I am using PWM techniques to control MOSFE ...
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2011 5:40 am   Subject: Toggle of PIN C2 and PIN D5
I tried your way and i am not getting the desired result.

What i need to happen is for 49 cycles P1A must be active and P1B must be zero and from 50 - 99 cycles P1A must be zero and P1B must be ac ...
  Topic: Toggle of PIN C2 and PIN D5
azykazy

Replies: 10
Views: 14535

PostForum: General CCS C Discussion   Posted: Fri Oct 07, 2011 2:35 am   Subject: Toggle of PIN C2 and PIN D5
Hi all,

I have a slight problem regarding the toggling of the PINS above.

Here is what i need to do:

My PWM is setup and half bridge is working. I have a 100 step look up table.

I want ...
  Topic: PWM half Bridge Problem
azykazy

Replies: 2
Views: 7170

PostForum: General CCS C Discussion   Posted: Wed Oct 05, 2011 7:41 am   Subject: PWM half Bridge Problem
Thanks Very Happy

I have tried it and it works!

Much appreciated!
  Topic: PWM half Bridge Problem
azykazy

Replies: 2
Views: 7170

PostForum: General CCS C Discussion   Posted: Wed Oct 05, 2011 3:43 am   Subject: PWM half Bridge Problem
Hi All,

I have a problem making the half bridge PWM work on 18F4550.


#include<18f4550.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)

void main()
...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group