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 50 matches
CCS Forum Index
Author Message
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Mon Oct 19, 2009 3:12 am   Subject: reading the pin
Hey bungee, yeah I've tried changing that. But I found something that might help. Each of the two values has a count difference of about 2650 counts. Regardless of how far away I stand.

I think I m ...
  Topic: condition always true.
hobby_85

Replies: 2
Views: 3447

PostForum: General CCS C Discussion   Posted: Sat Oct 17, 2009 7:04 am   Subject: condition always true.
If you need a delay, why not using the CCS built-in delay_XX() functions? They are achieving exact delays, considering the clock settings.

why does the maximum value for X have to be 65535?
It doe ...
  Topic: condition always true.
hobby_85

Replies: 2
Views: 3447

PostForum: General CCS C Discussion   Posted: Sat Oct 17, 2009 3:31 am   Subject: condition always true.
Hey, if i have a for loop, and I need to put in a delay,

so like for(counter=0; counter < X ; counter ++){ do whatever}

why does the maximum value for X have to be 65535? And apart from chan ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Fri Oct 16, 2009 8:30 pm   Subject: reading the pin
Hey bungee, thanks for your help. Just one last question,

If I put the enable_interupts(ccp1) command in my program, does that start looking for the high in that pin from that point onwards only? E ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Fri Oct 16, 2009 5:18 am   Subject: reading the pin
Yes! I think it works! Well at least I think it does. For some reason, I'm getting values that are closer to what I need. I just hope I haven't hacked it.

This is what I got in the end, I've stripp ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Fri Oct 16, 2009 4:38 am   Subject: reading the pin
You are on the right path. Basically you need to setup timer once and then just set it to 0 on start and read the value on end. Maybe your timer overflows in a second measurement. Create simple timer ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Thu Oct 15, 2009 1:44 am   Subject: reading the pin
Cool thanks. I ended up going for the second option cause it pretty much acts like a time-out loop in itself. However, I'm getting heaps of erratic 'values'. The values are meant to be the number of ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Wed Oct 14, 2009 11:34 pm   Subject: reading the pin
Hey, just a quick question regarding timers.

If I use a 4Mhz system clock, and use the following,
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_16);

I am essentially telling the timer to c ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Wed Oct 14, 2009 6:04 am   Subject: reading the pin
Currently, one of us suggests a few changes and you implement them. Then you re-post the code and ask us to look at it again, without you
doing anything at all. Why don't you try to fix the proble ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Tue Oct 13, 2009 9:33 pm   Subject: reading the pin
Hey PCM, I ran the code but it has the following problems. I'm still trying to debug it, so any advice would be useful.

When I run it, I get 'PINC5 did not go HIGH, Error' repeatedly. And it comes ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Mon Oct 12, 2009 8:36 am   Subject: reading the pin

You can use the similar code I wrote. You will just change first ISR so
that you'll run it inside main program loop. And the other part could stay
almost the same (throw out the EXT interrupt pa ...
  Topic: reading the pin
hobby_85

Replies: 32
Views: 19227

PostForum: General CCS C Discussion   Posted: Sun Oct 11, 2009 5:21 am   Subject: hey
hey tlmah,

thanks so much. i know the mistake i was makin. it works now

thanks again
  Topic: interfacing hyper terminal with program
hobby_85

Replies: 2
Views: 3934

PostForum: General CCS C Discussion   Posted: Sat Oct 03, 2009 9:13 am   Subject: interfacing hyper terminal with program
Hey all,

I have a quick question regarding hyper terminal. To be honest, I'm using windows XP so its actually terminal.exe. I have written a program in my PIC16F690 that sends in some data periodic ...
  Topic: detecting rising edge
hobby_85

Replies: 15
Views: 31772

PostForum: General CCS C Discussion   Posted: Tue Sep 15, 2009 9:59 am   Subject: detecting rising edge
One obvious suggestion. Use a set/reset latch.
Connect the first signal to the 'set' pin, and the second the the 'reset' pin. Then feed the output to the single CCP. The pulse width is what you want. ...
  Topic: detecting rising edge
hobby_85

Replies: 15
Views: 31772

PostForum: General CCS C Discussion   Posted: Tue Sep 15, 2009 9:56 am   Subject: detecting rising edge
Are you trying to determine range by comparing time of flight of a radio signal and an ultrasonic signal? If so can you consider the radio signal as instantaneous and just measure the time of the ult ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group