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: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Mon Nov 23, 2020 6:08 am   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Wow, huge thanks to you, Ttelmah and temtronic. Maybe later I'll try to use /10 or /12 like temtronic suggested to see the difference. Thanks again to both of you.
  Topic: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Mon Nov 23, 2020 3:58 am   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Thanks, Ttelmah. However, is my analysis from temtronic's comment correct? using say 10 or 12 samples makes the 'math' more complicated... computers love binary math.... Is the first comment related w ...
  Topic: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Sun Nov 22, 2020 6:40 pm   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Thank you, Ttelmah and temtronic.
So, the size of ADC data depends on the sum and value that I set, right? If I set the sum to i<16 and the value to sum/16, the ADC would be 1023*16 = 16368, righ ...
  Topic: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Thu Nov 19, 2020 7:38 pm   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Thank you, Ttelmah & temtronic for the feedback given. My mistake is that I thought CPUDIV2 will produce 48MHz clock frequency. So, huge thanks for the table.
Next, based on the info in this for ...
  Topic: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Wed Nov 18, 2020 9:11 pm   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Thank you, PCM programmer for the pointer. I made silly mistake there. Thank you, too for your reply, Ttelmah. Actually, I'm using 20MHz crystal for this project. But, your reply helps me understand a ...
  Topic: [SOLVED] USB CDC ADC PWM control PIC18F4550
aftar mukhriz

Replies: 15
Views: 40912

PostForum: General CCS C Discussion   Posted: Tue Nov 17, 2020 10:42 pm   Subject: [SOLVED] USB CDC ADC PWM control PIC18F4550
Hello All,

Right now, I'm trying to control PWM at pin C2 using ADC reading from pin A0. I have connected potentiometer to pin A0 and connected LED with resistor at pin C2. When I connected USB to ...
  Topic: [Solved] Send string from terminal to pic18f4550 usb cdc
aftar mukhriz

Replies: 8
Views: 22878

PostForum: General CCS C Discussion   Posted: Sat Nov 07, 2020 7:47 pm   Subject: [Solved] Send string from terminal to pic18f4550 usb cdc
Noted. Thank you for your explanation, Ttelmah.
  Topic: [Solved] Send string from terminal to pic18f4550 usb cdc
aftar mukhriz

Replies: 8
Views: 22878

PostForum: General CCS C Discussion   Posted: Thu Nov 05, 2020 3:39 am   Subject: [Solved] Send string from terminal to pic18f4550 usb cdc
However
within the limitations of your PIC's memory (and remember that if a
buffer is larger than 256 characters, the index variables 'max' and 'len',
will need to be int16's), you can make the buf ...
  Topic: [Solved] Send string from terminal to pic18f4550 usb cdc
aftar mukhriz

Replies: 8
Views: 22878

PostForum: General CCS C Discussion   Posted: Thu Nov 05, 2020 2:11 am   Subject: [Solved] Send string from terminal to pic18f4550 usb cdc
Thank you, PCM Programmer. I have added those lines and it works perfectly. I think you have mentioned it in this forum, right? char buffer[16];
I have read about USB CDC limit is 64 bytes. S ...
  Topic: [Solved] Send string from terminal to pic18f4550 usb cdc
aftar mukhriz

Replies: 8
Views: 22878

PostForum: General CCS C Discussion   Posted: Wed Nov 04, 2020 10:54 pm   Subject: [Solved] Send string from terminal to pic18f4550 usb cdc
Thank you for your reply, Ttelmah. However, I tried to replicate your method as shown below:


#include <18F4550.h> //if your version of the compiler doesn't support the 4553, you can put the ...
  Topic: [Solved] Send string from terminal to pic18f4550 usb cdc
aftar mukhriz

Replies: 8
Views: 22878

PostForum: General CCS C Discussion   Posted: Tue Nov 03, 2020 10:45 pm   Subject: [Solved] Send string from terminal to pic18f4550 usb cdc
Hello everyone,

I have a question related to usb cdc. Can I send string, instead of char from terminal ( Tera Term ) to pic18f4550? Let say, if I want to send "HELLO" to the pic, so it ca ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group