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 17 matches
CCS Forum Index
Author Message
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 2:42 pm   Subject: more trouble.
Even before I set the option register using

set_options(0b01000000);

I WAS able to wake up from sleep by pushing a switch connected to pin RB3. However, I wanted to call func1() if the wakeup ...
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 2:26 pm   Subject: Waking up a PIC16F505...
I apologize for my ignorance regarding forum behavior. I will delete the other two now. Thank you for your assistance.

Phased.
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 1:28 pm   Subject: Status register access
I can't seem to read the status register. Or more specifically I'd like to read the GPWUF (7th bit) of the STATUS register.

Here's some code to explain:




#include <16F505.h>
#fuse ...
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 12:53 pm   Subject: ALMOST!
Sadly it doesn't work completely... Lights1() never gets called, though Lights() does.

And how can I be certain that the pic is in sleep mode? Check the current being drawn?

#include <16F50 ...
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 12:41 pm   Subject: So here's my code. But it doesn't work...
First off, Thanks again for the help Ttelmah.


Secondly, here's my code: It compiles but doesn't work.

I want the pic to run lights(), then go to sleep. When I press the switch (RB3), it shou ...
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Wed Oct 18, 2006 11:00 am   Subject: YOU SIR ARE A LIFE SAVER!!!!!
YOU SIR, ARE A LIFE SAVER!!!!!

I knew something was fishy with this *$*$&# chip!

I actually have NO PROBLEM with the whole process restarting.

This is a GREAT HELP.

I CANNOT thank you ...
  Topic: Waking up a PIC16F505...
phased

Replies: 11
Views: 15883

PostForum: General CCS C Discussion   Posted: Tue Oct 17, 2006 11:38 pm   Subject: Waking up a PIC16F505...
Being a newbie is difficult, not because I don't know much, but because I don't even know enough to easily ask for help.

I've come to the conclusion that I'd REALLY like to see a piece of code that ...
  Topic: Help with WDT and TOCKI
phased

Replies: 2
Views: 4128

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2006 6:41 pm   Subject: Help with WDT and TOCKI
I would like to "wake up" a pic16F54 every half a second and check the status of RA2.

As suggested by others, I'll have to use the watchdog Timer. My questions is how to set the " ...
  Topic: Help with Sleep and Waking up...
phased

Replies: 8
Views: 13130

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2006 2:36 pm   Subject: Help with Sleep and Waking up...
The Microchip website lists the 54 as the cheapest PIC (Low cost will help alot if this thing is made in the thousands). And for my VERY simple project, I don't need much. The 505 is the next step u ...
  Topic: Help with Sleep and Waking up...
phased

Replies: 8
Views: 13130

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2006 1:59 pm   Subject: Help with Sleep and Waking up...
I'm excited to see your solution. Unfortunately I'm new enough to this that I didn't understand it all.

Do you mean to tell me that the reset will be "ignored" when the chip is awake and ...
  Topic: Help with Sleep and Waking up...
phased

Replies: 8
Views: 13130

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2006 1:37 pm   Subject: Help with Sleep and Waking up...
Thanks for the replies.

I guess I didn't make my problem clear.

I have no problem going to sleep. My issue is with waking up the pic16F54. It only wakes up using the WDT or MCLR.

The prob ...
  Topic: Help with Sleep and Waking up...
phased

Replies: 8
Views: 13130

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2006 12:57 pm   Subject: Help with Sleep and Waking up...
I'm using the 16F54 in my design.

I have an analog signal (noise from a mic) that I'm Schmitt Triggering. A loud noise, makes it go from 0V to Vdd (like a clapper). Of course this signal will fa ...
  Topic: Help! Code Compiles and Loads, but doesn't work!
phased

Replies: 8
Views: 10665

PostForum: General CCS C Discussion   Posted: Mon Oct 09, 2006 12:35 pm   Subject: Help! Code Compiles and Loads, but doesn't work!
Smile THANK YOU ALL FOR THE HELP! Exclamation
  Topic: Help! Code Compiles and Loads, but doesn't work!
phased

Replies: 8
Views: 10665

PostForum: General CCS C Discussion   Posted: Tue Oct 03, 2006 8:52 pm   Subject: I feel like an idiot!
I feel like an idiot! After PCM's first post I turned to page 21 of the datasheet and my face went pale. Thank's guys. I don't really care about the timing honestly. So I'm going to stick an RC ci ...
  Topic: Help! Code Compiles and Loads, but doesn't work!
phased

Replies: 8
Views: 10665

PostForum: General CCS C Discussion   Posted: Tue Oct 03, 2006 8:29 pm   Subject: Here's the new code

#include <16F54.h>
#fuses HS,NOWDT,NOPROTECT
#use delay(clock=20000000)

void main(void) {

output_low(PIN_B1);
while (TRUE)
{
output_ ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group