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 4 matches
CCS Forum Index
Author Message
  Topic: PWM,CCP5,Timer4,PIC18F45K22
norm

Replies: 0
Views: 4035

PostForum: General CCS C Discussion   Posted: Fri Sep 10, 2010 1:07 pm   Subject: PWM,CCP5,Timer4,PIC18F45K22
I can't get a PWM signal to come out of the RE2 pin 27.

Has anyone else been successful implementing this?

Watching in the MPLAB, CCPR5H never gets loaded from the CCPR5L.

#include <18F45K ...
  Topic: No DAC output on RA2. PIC18F45K22
norm

Replies: 7
Views: 11569

PostForum: General CCS C Discussion   Posted: Wed Sep 08, 2010 6:54 am   Subject: No DAC output on RA2. PIC18F45K22
The 4.112 compiler helps the situation.

It's clearer using the functions.

I was writing a 0xC8 instead of a 0xA8 to VREFCON1 register.

Thanks for the help.

Norm
  Topic: No DAC output on RA2. PIC18F45K22
norm

Replies: 7
Views: 11569

PostForum: General CCS C Discussion   Posted: Tue Sep 07, 2010 2:29 pm   Subject: No DAC output on RA2. PIC18F45K22
The ISR is an artifact from the larger chunk of code. Code behaves the same in the larger chunk of code.

I'm executing the code one line at time using the MPLAB and ICD3.

So there is plenty of ...
  Topic: No DAC output on RA2. PIC18F45K22
norm

Replies: 7
Views: 11569

PostForum: General CCS C Discussion   Posted: Tue Sep 07, 2010 1:06 pm   Subject: No DAC output on RA2. PIC18F45K22
I'm single stepping through the dac_out lines of code in the MPLAB v 8.53
Using CCS PCH 4.110
I've tried using the setup_dac and dac_write functions, they don't effect the correct registers location ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group