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

Best way to clear display on shutdown

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rhaguiuda



Joined: 05 Sep 2007
Posts: 46
Location: Londrina - Brazil

View user's profile Send private message

Best way to clear display on shutdown
PostPosted: Wed Aug 13, 2008 5:53 am     Reply with quote

Hi

My application has a 7-seg LED display and an ADC. The displays shows the result of ADC conversion.

When I cut the power (turn off the system), for a short time the display shows some garbage (system still remains powered for some time by filters capacitors, but due the voltage drop the system gets corrupted ADC data).

I'd like to detect when the power is down and clear all displays, so no garbage is displayed.

Which is the best way to do that? (thought using comparator generating interrupt, if voltage gets below 4V for example...).

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 13, 2008 12:10 pm     Reply with quote

1. Post the manufacturer and part number of the display.

2. Post your PIC.

3. Post a link to a schematic of the PIC and the segment driver circuit (or describe it).

Your basic question about how to detect an impending power failure,
has been discussed in the forum archives. But the specifics of how
to disable your display will require the information requested above.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group