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 3 matches
CCS Forum Index
Author Message
  Topic: 4 Decimal, 7-Segment counter (0-9999)
TselelTJ

Replies: 3
Views: 7922

PostForum: General CCS C Discussion   Posted: Thu Mar 18, 2010 8:17 am   Subject: 4 Decimal, 7-Segment counter (0-9999)
Here is the working code, I finally got it right...

#include "Assignment.h"

char map[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};

void main()&# ...
  Topic: 4 Decimal, 7-Segment counter (0-9999)
TselelTJ

Replies: 3
Views: 7922

PostForum: General CCS C Discussion   Posted: Fri Mar 12, 2010 3:26 am   Subject: 4 Decimal, 7-Segment counter (0-9999)
I was able to do the ff but now i need help with the switch, If the switch is open all segments must be off and when closed it must start from 0.



#include "Counter_7Seg.h"

char map ...
  Topic: 4 Decimal, 7-Segment counter (0-9999)
TselelTJ

Replies: 3
Views: 7922

PostForum: General CCS C Discussion   Posted: Wed Mar 10, 2010 11:27 am   Subject: 4 Decimal, 7-Segment counter (0-9999)
Good Day ppl.

I'm taking my baby steps with ccs code.
May somebody help me with the code for the following:

The cct must count from 0 to 9999 and it uses a switch which stops the count at any m ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group