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 8 matches
CCS Forum Index
Author Message
  Topic: PIC16877A CCS how to make the program will only printf 1?
sfchew7

Replies: 1
Views: 4354

PostForum: General CCS C Discussion   Posted: Fri Nov 11, 2011 8:44 pm   Subject: PIC16877A CCS how to make the program will only printf 1?
PIC16877A CCS how to make the program will only printf 1 time?
I wish to make the code below will only execute "printf" one time. How should I edit the code below ?
thanks
while(1 ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Sun Nov 06, 2011 8:25 pm   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
Well not all USB 232 devices meet the rs232 standard. Now suppose your device doesn't (when sending chars from the PC to your rs232 level shifter)
and doesn't drive the rs232 voltage to the the specs ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Sun Nov 06, 2011 8:22 pm   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
Well another piece of the puzzle is shown, you're NOT using 'normal' or 'old school' comports! Old guys like me, assume a comport to be a real UART with a DB25 or DE9 connected to it NOT a USB<-> ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Thu Nov 03, 2011 9:03 am   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
The code you have is a simple receive a char and transmit the char received (echo). This works because it is one in one out. Now as things get more complicated more in than out or the reverse you will ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Thu Nov 03, 2011 8:59 am   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
Seems like you've narrowed it down to your PC.... IF the VB program is the exact same one on both PCs(you did copy it, NOT rewrite it ?)


Though very rare, you may have blown the RS232 interface c ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Thu Nov 03, 2011 6:48 am   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
But the problem that I am facing is, I can run it perfectly in my simulation and my friend pc (win7). However, the data cannot be transmitted from pc to pic by using my pc (win XP). Have you ever seen ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Wed Nov 02, 2011 9:30 am   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
I have tried this code in real circuit and it cannot work.
I am using 4 capacitors, 1 max 232 ic, 1 pic16f877a.
When the PIC used "printf and putc" function, my computer can receive
the ...
  Topic: PIC16F877A interfaces with Visual Basic2008/Computer
sfchew7

Replies: 12
Views: 12115

PostForum: General CCS C Discussion   Posted: Wed Nov 02, 2011 3:14 am   Subject: PIC16F877A interfaces with Visual Basic2008/Computer
I am using PIC 16F877A and I want to interface with pc.
How should I write the code?
Is it like this?
And the coding is correct?
What I want is when the computer sends me "1"
Then I wil ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group