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 9 matches
CCS Forum Index
Author Message
  Topic: 4x4 keypad trouble!
J_Purbrick

Replies: 6
Views: 13277

PostForum: General CCS C Discussion   Posted: Sat Nov 20, 2004 10:56 am   Subject: 4x4 keypad trouble!
Here's a routine that I wrote for a PIC16F877. In this case I didn't want the ASCII values of the pushbuttons, but 0, 1, 2 etc for the numeric ones, 0xA, 0xB etc for the letters ABCD and 0xE for *, 0x ...
  Topic: Detect zero crossover
J_Purbrick

Replies: 12
Views: 23586

PostForum: General CCS C Discussion   Posted: Sat Oct 09, 2004 11:07 pm   Subject: Detect zero crossover
The zener diodes would do the job, but if you wire it as shown in Ljbeng's diagram you are in for an unpleasant surprise. Half of the time, the reverse voltage across the optoisolator's LED will be th ...
  Topic: question about PWM
J_Purbrick

Replies: 2
Views: 6378

PostForum: General CCS C Discussion   Posted: Tue Oct 05, 2004 11:04 pm   Subject: question about PWM
"20MHz crystal seems to be 1.22 KHz (per Microchip manual)" was a quote from one of my postings! To get a complete sentence, it should have read something like, "The slowest PWM rate you can achieve w ...
  Topic: Detect zero crossover
J_Purbrick

Replies: 12
Views: 23586

PostForum: General CCS C Discussion   Posted: Tue Oct 05, 2004 10:50 pm   Subject: Detect zero crossover
You can check the input side of the line via an optoisolator. What you need to do is put a capacitor (rated for the line voltage, plus a good safety margin) in series with the isolator input, and a di ...
  Topic: same code but different pulse width
J_Purbrick

Replies: 3
Views: 7734

PostForum: General CCS C Discussion   Posted: Mon Sep 27, 2004 4:12 pm   Subject: same code but different pulse width
I'm not sure I'd have thought of what Ttelmah said, but it sounds very plausible. The compiler will suppress interrupts under some conditions and as I recall, there is no warning (I would call that a ...
  Topic: How to get correct Pulse Width..??
J_Purbrick

Replies: 3
Views: 9268

PostForum: General CCS C Discussion   Posted: Thu Sep 23, 2004 8:47 pm   Subject: How to get correct Pulse Width..??
Hello again.

You're going to have a tough time with 2 interrupts. My suggestion would be to use only one of them, and it should clearly be the one that triggers most frequently, the Timer1 at 5000/ ...
  Topic: Does changing a timer prescale reset its count ?
J_Purbrick

Replies: 7
Views: 13482

PostForum: General CCS C Discussion   Posted: Mon Sep 20, 2004 9:12 pm   Subject: Does changing a timer prescale reset its count ?
I don't think you can send a "long string of bits" without an interrupt. And if you use CCS's interrupt service routine, the time to process each one ("pushing" and "popping" registers) will gobble al ...
  Topic: Inbuilt PWM for 100Hz
J_Purbrick

Replies: 8
Views: 16252

PostForum: General CCS C Discussion   Posted: Tue Sep 14, 2004 3:55 pm   Subject: Inbuilt PWM for 100Hz
Yes, the minimum frequency available with a 20MHz crystal seems to be 1.22 KHz (per Microchip manual).

You didn't say what resolution you need for this PWM output. If it were, say, 1% then you coul ...
  Topic: connect 20 pics
J_Purbrick

Replies: 17
Views: 18033

PostForum: General CCS C Discussion   Posted: Thu Sep 02, 2004 9:22 am   Subject: connect 20 pics
A method that I'm using for about 20 PICs communicating with a computer is "modified RS422" where the master (the computer) can talk any time it wants to, using packets containing an address. Every ch ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group