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 12 matches
CCS Forum Index
Author Message
  Topic: number type problem ?
efox

Replies: 8
Views: 8134

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2009 12:26 am   Subject: number type problem ?
I'm sorry. I'm stupid.

It was a hardware issue. My wiring was all over the place and I traced the wrong wire.

D0 and D1 were swapped.

My apologies and my gratitude for insight to resolving th ...
  Topic: number type problem ?
efox

Replies: 8
Views: 8134

PostForum: General CCS C Discussion   Posted: Mon Mar 09, 2009 2:45 am   Subject: number type problem ?
I use mplab for my ide.

watching the variables, i discovered that the numbers are indeed different.

char temp='r'; --> 114 (decimal)
char temp=0x72; --> 114
char temp=113; -- ...
  Topic: number type problem ?
efox

Replies: 8
Views: 8134

PostForum: General CCS C Discussion   Posted: Mon Mar 09, 2009 1:54 am   Subject: number type problem ?
I have an LCD character display and I wrote my own routines. Thats fine.
Wrote a function that initializes the lcd and prints a string.
char mybuffer[16]="hello world";
However, o ...
  Topic: timers - starting and stopping
efox

Replies: 3
Views: 3667

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 10:32 pm   Subject: timers - starting and stopping
probably found my own indirect answer for this...

but if you want to turn a timer back on
setup_timer_1(!T1_DISABLED)

Though if there is another way or explanation, love to hear it.
  Topic: timers - starting and stopping
efox

Replies: 3
Views: 3667

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 10:17 pm   Subject: timers - starting and stopping
How do you start a timer after its already been stopped ?

timer1 is turned on through initial setup_timer1()
timer1 is stopped using setup_timer1() function
but how do you get timer1 to turn back ...
  Topic: bitwise tris
efox

Replies: 5
Views: 4182

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 5:29 pm   Subject: bitwise tris
thats probably a better response than with what i came up with.

thank you.
  Topic: bitwise tris
efox

Replies: 5
Views: 4182

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 4:37 pm   Subject: bitwise tris
nevermind...figured it out by looking at the c/asm output

for anyone that want to know,

output_high(pin) clears the tris bit and sets the port bit high
  Topic: bitwise tris
efox

Replies: 5
Views: 4182

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 4:12 pm   Subject: bitwise tris
does output_low() and output_high() force the pin to be an output ?

ie.

set_tris_b(0xff); //all input
output_b(0x0f)

does that mean that
B0-B3 are 5V whereas b4-b7 are 0v ?
  Topic: bitwise tris
efox

Replies: 5
Views: 4182

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 4:06 pm   Subject: bitwise tris
So I didnt see a function to bitwise operation of the tris registers, and I tried googling, but didnt find exactly what i was looking for.

does anyone know of a simple way to change a tris bit with ...
  Topic: music programming
efox

Replies: 5
Views: 6881

PostForum: General CCS C Discussion   Posted: Tue Aug 29, 2006 6:50 am   Subject: music programming
PCM programmer: I didnt even bother to check to see if the examples even included anything to what i was looking for. Lesson learned.

Mark: Thanks, that code certainly looks like what I want to do. ...
  Topic: music programming
efox

Replies: 5
Views: 6881

PostForum: General CCS C Discussion   Posted: Tue Aug 29, 2006 6:45 am   Subject: music programming
[quote="gs"]get a standard happy birthday singing card, and rip off the electronics. Possibly a 1.5*1.5mm pcb with a buzzer.

do what you want to do, and when it comes to the music, apply ...
  Topic: music programming
efox

Replies: 5
Views: 6881

PostForum: General CCS C Discussion   Posted: Mon Aug 28, 2006 10:54 am   Subject: music programming
I'm basically looking for some google keywords.

I want to be able to play a happy birthday song on a tiny speaker. However, I have no idea how to do this and when i searched simple words on google ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group