Author |
Message |
Topic: Puzzled printf |
kevin5k
Replies: 6
Views: 16719
|
Forum: General CCS C Discussion Posted: Thu Jun 05, 2008 8:09 pm Subject: Re: Puzzled printf |
Do I need to include something like #use rs232....... code?
Yes.
Another stupid question.
why? Is it something in-built into the CCsc.exe file? |
Topic: Puzzled printf |
kevin5k
Replies: 6
Views: 16719
|
Forum: General CCS C Discussion Posted: Thu Jun 05, 2008 7:55 pm Subject: Puzzled printf |
Hi everyone,
I am quite puzzled with my test file popping up errors that stdout is not defined. I am just trying to run a normal printf(). My code for this file is as follows:
#include <18F ... |
Topic: No sound for 16f876A |
kevin5k
Replies: 5
Views: 6244
|
Forum: General CCS C Discussion Posted: Tue Feb 13, 2007 11:22 am Subject: No sound for 16f876A |
Tks guys....will try out ur suggestion...... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Tue Feb 13, 2007 11:19 am Subject: Need Help for HD44780 Programming with PIC16F876A |
Hmm...Pin_A3 is giving me some problems with my circuit and its setup is as such...
Pin_A3 = Input from Zener Diode from a Slave board. Slave board is connected to Master board (holding the PIC) us ... |
Topic: No sound for 16f876A |
kevin5k
Replies: 5
Views: 6244
|
Forum: General CCS C Discussion Posted: Sun Feb 11, 2007 10:10 am Subject: No sound for 16f876A |
What i mean is that Just a simple beep will be sufficient
[quote="kevin5k"]But i just require a monotone sound to be played on the speaker....Anyone can help?Am using only a 4Mhz crystal. ... |
Topic: No sound for 16f876A |
kevin5k
Replies: 5
Views: 6244
|
Forum: General CCS C Discussion Posted: Sun Feb 11, 2007 6:36 am Subject: No sound for 16f876A |
But i just require a monotone sound to be played on the speaker....Anyone can help?Am using only a 4Mhz crystal.... |
Topic: No sound for 16f876A |
kevin5k
Replies: 5
Views: 6244
|
Forum: General CCS C Discussion Posted: Sat Feb 10, 2007 6:48 pm Subject: No sound for 16f876A |
I'm trying to make an 8ohm speaker sound off when it is activated. It is connected to pin_A0 of the 16F876A. Have verified that the PIC is working and the port is working (i.e Multimeter).
Connect ... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Mon Jan 22, 2007 4:08 am Subject: Need Help for HD44780 Programming with PIC16F876A |
Cheers:)
I'm not sure what you mean by "all the connections".
This thread has detailed instructions on programming a board so
it will run a program in standalone mode. This means y ... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2007 6:29 pm Subject: Need Help for HD44780 Programming with PIC16F876A |
Yes...I'm using ICD2 and PICDem2 Plus Dev Board...Thing is I want to just flash my program into the PIC and let it run by itself on the breadboard with all the connections.
I'm currently using PIC ... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2007 5:30 pm Subject: Need Help for HD44780 Programming with PIC16F876A |
Ok.....So does that mean I can call a function cleardisplay() and include the following:
cleardisplay();
{
lcd_send_byte(0,1);
delay_ms(2);
}
... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2007 5:06 pm Subject: Need Help for HD44780 Programming with PIC16F876A |
I've used the following codes in flex_lcd.c and my main program. Thing is I think there is some addressing problem here...For this section of my code
printf(lcd_putc, "System Normal\n..... ... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2007 4:36 pm Subject: Need Help for HD44780 Programming with PIC16F876A |
Tks for the insight PCM Programmer....You're always as helpful all the time...I'll try other pins...
http://www.ccsinfo.com/forum/viewtopic.php?t=29476&highlight=debugger+pins |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2007 4:06 pm Subject: Enalbe & RS config not working on pins B6 & B7 |
ERm, somehow when I try and use pins B6 & B7 as the RS and Enable pins, nothing happens... Y is this so? |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 11:03 am Subject: Need Help for HD44780 Programming with PIC16F876A |
No offence davekelly.....I'm just a newbie. Just like to ask this and that....Many thanks....
The 0b00xxxxxx codes were from a previous LCD driver I wrote for another compiler written from scra ... |
Topic: Need Help for HD44780 Programming with PIC16F876A |
kevin5k
Replies: 57
Views: 60152
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 3:37 am Subject: Need Help for HD44780 Programming with PIC16F876A |
I suppose I could omit this section of your codes
In FlexLCD.c I have the following defines:
// Display ON/OFF Control defines
#define DON 0b00001111 // Display on
#define DOF ... |
|