Author |
Message |
Topic: detecting rising edges on pins RA0 and RA1 |
SlimG
Replies: 2
Views: 5844
|
Forum: General CCS C Discussion Posted: Tue Mar 08, 2005 3:45 pm Subject: detecting rising edges on pins RA0 and RA1 |
Hi folks I trying to detect the rising of 2 square waves each been applied to pin RA0 and Pin RA1.(PIC16F873)
Below are examples of the 2 codes:
N.B. the code are NOT to the letter just to give ... |
Topic: Float Division with wrong Answers |
SlimG
Replies: 2
Views: 5386
|
Forum: General CCS C Discussion Posted: Thu Feb 24, 2005 6:48 am Subject: Float Division with wrong Answers |
Im trying to do variable divisions with answers between 0 and 360. The problem Im having is that whenever the answer is greater than 255 I don't get the right answer.
(Im using the PIC 16f873)
e. ... |
Topic: Detecting a 0 to 1 transistion(rising edge) on a pic i/p |
SlimG
Replies: 3
Views: 6678
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2005 4:46 am Subject: Detecting a 0 to 1 transistion(rising edge) on a pic i/p |
Im trying to detect a 0 to 1 transistion on a pic i/p pin using a while loop.
Here is the code I have writen.
int sample_1, sample_2;
sample_1 = input(pin_a0);
sample_2 = input(pin_a0);
... |
Topic: How can I return Array valves to Port B? p.s see code |
SlimG
Replies: 1
Views: 5130
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2005 7:36 am Subject: How can I return Array valves to Port B? p.s see code |
I am trying to put the value of d i.e 1 in the array list, to port_B.
can anyone help?
thanx for previous replies.
regards.
#if defined(__PCM__)
#include <16F873.H>
#include &l ... |
Topic: Can I use ItoA (integer to ascii) instruction with PIC16f873 |
SlimG
Replies: 2
Views: 5811
|
Forum: General CCS C Discussion Posted: Mon Jan 31, 2005 10:56 am Subject: Can I use ItoA (integer to ascii) instruction with PIC16f873 |
I am trying the split numbers captured from the tmr0 register in separate digits e.g 123 into 1,2,3 so that i can send it each digit to different 7segment display which have been multiplexed at the pi ... |
Topic: How do I create a lookup table using arrays? |
SlimG
Replies: 1
Views: 6821
|
Forum: General CCS C Discussion Posted: Wed Dec 22, 2004 1:36 pm Subject: How do I create a lookup table using arrays? |
hi there, i am trying to create a lookup table that would display numbers between 0 and 360 on three multiplexed 7segment displays, using arrays.
any ideas or sample codes please? thanx |
|