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 support@ccsinfo.com

pic not sending to pc :question:

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








pic not sending to pc :question:
PostPosted: Sat Nov 19, 2005 3:30 pm     Reply with quote

hello to all and thanks for the adviseyou could provide, here is the code:
pic placed in matrix multimedia development board:
#include <16F84A.H>
#fuses XT, NOWDT, NOPROTECT, PUT
#use delay(clock=3276800) //3276800 MHz OSC
#use rs232(baud=9600, xmit=PIN_A1, rcv=PIN_A0, PARITY=N, BITS=8, ERRORS)
main() {
byte i;
for (i=0; i<10; ++i) {
printf("this is a test \r\n");
}
} // end
this is working fine using a terminal software, i get the message from pic
10 times, but also terminal software says in status bar "framming error".

then when i place pic in project board using either 3.57 or 4 mhz crystal
and changing #use delay to proper crystal and compile and download to pic the terminal software doesnot get anything, i connect to serial port first
with software then i power project board but no results, wires are connected right, using A0 and A1. will this have to do with the "framming error" am getting while connecting software with matrix board even though is working?
thanks in advance to all
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sat Nov 19, 2005 5:15 pm     Reply with quote

Are you using a RS232 transceiver chip between the PIC and the PC?
Guest








PostPosted: Sun Nov 20, 2005 5:34 pm     Reply with quote

only using max232 with 4 capacitors
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Nov 20, 2005 6:01 pm     Reply with quote

Quote:
pic placed in matrix multimedia development board:

Apparently, you're using the board shown in the following link:
http://www.matrixmultimedia.com/datasheets/hpdevbd.pdf

Quote:

when i place pic in project board using either 3.57 or 4 mhz crystal
and changing #use delay to proper crystal and compile and download
to pic the terminal software doesnot get anything,

One way to test this problem, is to get a 3.2768 MHz crystal, and install
it in your project board. If the project board starts to work, then
you know the problem is in the software UART CCS library code.
If the project still doesn't work, then you know there is problem
in the project board -- probably in the connections.

I think it's likely that the problem is in the connections on your project
board. You are probably missing one or more of the following connections:

1. You need a 10K resistor (going to +5v) on the MCLR pin of
the 16F84A.

2. The crystal needs a 22 PF capacitor connected between each side
of the crystal and ground.

3. You need to connect pin 5 of the PIC to Ground, and also connect
pin 14 to +5v.

4. The MAX232 must be connected correctly. Look at the following
schematic and verify that you have done it the same way.
http://www.sparkfun.com/datasheets/PIC/pic-p18b-sch.gif
Guest








PostPosted: Tue Nov 22, 2005 9:19 pm     Reply with quote

thanks pcmprogrammer, all your points in connections on project board except the 10k going to mclr have been checked and are there, not using the 3.27 crystal though, have to get one and test, will tell what happens
thanks
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