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 331 matches
CCS Forum Index
Author Message
  Topic: pic 16f877a sinewave
John P

Replies: 9
Views: 12135

PostForum: General CCS C Discussion   Posted: Mon May 26, 2014 7:15 am   Subject: pic 16f877a sinewave
There is no such thing as a PWM interrupt. But the PWM is generated by Timer2, and there is a TMR2 interrupt.

So, how are you going to proceed?
  Topic: UART again
John P

Replies: 23
Views: 26944

PostForum: General CCS C Discussion   Posted: Thu May 22, 2014 10:22 pm   Subject: UART again
If the protocol can't be changed, too bad, but this is the method I've used, and it seems to work:

Start every packet with a "start character". In principle this can be any value, though ...
  Topic: Communication between two PIC with single-wire
John P

Replies: 9
Views: 14582

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 4:51 pm   Subject: Communication between two PIC with single-wire
Check out Roman Black's "Blacknet" system:
http://www.romanblack.com/blacknet/blacknet.htm
  Topic: CCS support for 16f1613 - begins in 5.025...
John P

Replies: 16
Views: 24754

PostForum: General CCS C Discussion   Posted: Mon Apr 14, 2014 6:50 am   Subject: CCS support for 16f1613 - begins in 5.025...
Wondering what instructions these are?.


I meant the branch and pointer-oriented instructions, "C Compiler Optimized" as the datasheet says.
https://dl.dropboxusercontent.com/u/28291527 ...
  Topic: CCS support for 16f1613 - begins in 5.025...
John P

Replies: 16
Views: 24754

PostForum: General CCS C Discussion   Posted: Sun Apr 13, 2014 7:08 pm   Subject: CCS support for 16f1613 - begins in 5.025...
With these enhanced midrange devices, if CCS "supports" them does that mean that the compiler will use the extra assembly instructions that these parts have? I'd have thought that it would t ...
  Topic: RS-485 architecture
John P

Replies: 14
Views: 19498

PostForum: General CCS C Discussion   Posted: Sat Dec 07, 2013 1:51 pm   Subject: RS-485 architecture
One thing you have to consider is what the direction of data flow is. Do the units typically send data to each other arbitrarily, or is there a "master", which may be a computer or connected ...
  Topic: Choosing the right chip
John P

Replies: 16
Views: 30249

PostForum: General CCS C Discussion   Posted: Sat Aug 24, 2013 9:02 pm   Subject: Choosing the right chip
Note that if you use a 40-pin chip where a 20-pin one (or smaller!) would work, you're wasting circuit board space, and you will pay for that, and so will your customers if it's a commercial product. ...
  Topic: 400 hz (2ms) hardware pwm on 50 mhz clock speed
John P

Replies: 21
Views: 36692

PostForum: General CCS C Discussion   Posted: Mon Aug 05, 2013 6:25 am   Subject: 400 hz (2ms) hardware pwm on 50 mhz clock speed
I think with your fast processor, the scheme I proposed is workable. In fact you could do it by "brute force" with an interrupt at every potential transition on the PWM output, i.e. every 5u ...
  Topic: 400 hz (2ms) hardware pwm on 50 mhz clock speed
John P

Replies: 21
Views: 36692

PostForum: General CCS C Discussion   Posted: Sat Aug 03, 2013 7:49 pm   Subject: 400 hz (2ms) hardware pwm on 50 mhz clock speed
It may be easy to run 4 (or any number) of PWM's on one timer, or it may not. What makes the difference is how much resolution you need in the outgoing pulse, and I don't believe you've told us that. ...
  Topic: 16f628a PWM and internal osc
John P

Replies: 8
Views: 17572

PostForum: General CCS C Discussion   Posted: Sat Jul 20, 2013 4:58 pm   Subject: 16f628a PWM and internal osc
Boy, everyone's got something to say, haven't they.

My contribution is that I don't like the sound of "a button connected between 5v and RB0". What is the normal state of RB0? I don't see ...
  Topic: [Help] UART processing with RS485
John P

Replies: 10
Views: 14763

PostForum: General CCS C Discussion   Posted: Thu Jul 18, 2013 8:50 am   Subject: [Help] UART processing with RS485
You need to have the master do something that uniquely identifies itself, and program the slaves so this action is the only thing that they'll use to reset their clocks.

One possibility would be to ...
  Topic: Serial or count?
John P

Replies: 11
Views: 17185

PostForum: General CCS C Discussion   Posted: Tue Jun 18, 2013 11:07 am   Subject: Serial or count?
What a truly atrocious interface! They have a limited grasp of spelling, too.

You will have to bet that your clock matches the unit's clock fairly exactly, and look for a pulse each from the un-bl ...
  Topic: [Off Topic] 38khz 1,6w in a 0805 resistor?
John P

Replies: 11
Views: 13656

PostForum: General CCS C Discussion   Posted: Tue Jun 04, 2013 5:25 pm   Subject: [Off Topic] 38khz 1,6w in a 0805 resistor?
I assume this is part of an infrared light communication system as with TV remote controls.

Repeating Ttelmah's work on the topic:

You have 1.6W power dissipation while the current is flowing. B ...
  Topic: universal RS232 communication protocol between controllers
John P

Replies: 20
Views: 29365

PostForum: General CCS C Discussion   Posted: Sat Jun 01, 2013 8:45 am   Subject: universal RS232 communication protocol between controllers
Yes, you could mix up the hardware and software UARTs, if they run at the same baud rate. The real killer with software UARTs though, is that it's almost impossible to make them run in full-duplex mod ...
  Topic: Support for PIC16F1454/5/9?
John P

Replies: 7
Views: 15254

PostForum: General CCS C Discussion   Posted: Sat Jun 01, 2013 8:03 am   Subject: Support for PIC16F1454/5/9?
Now that you point the memory issue out, I'm realizing that my projects are typically small ones. That must be true if I haven't outgrown the PIC16 series!

As for USB, if I'm able to get that feat ...
 
Page 1 of 23 Goto page 1, 2, 3 ... 21, 22, 23  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group