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

Connecting MAX232 pcb to Pickit 1 demo board

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



Joined: 28 Sep 2007
Posts: 13

View user's profile Send private message

Connecting MAX232 pcb to Pickit 1 demo board
PostPosted: Sat Dec 08, 2007 4:17 am     Reply with quote

Hello!

I made some pcb with max232 that i want to use as connection between pickit1 and PC, so i can output processed data. I dont know what is wrong but i can not get any output on the PC. I did get, just once time, some garbage but am not sure if this is from the pickit starter kit demo board.

Please look at attach where you can find the connections to pickit and max232 pcb. MAX232 PCB is connected directly to starter kit.
Quote:

http://www.screenshots.cc/view_image/806781043/electricRs232.jpg



This is the code that am using on hyperterminal:
Hyperterminal is set on 9600 b/s.

Code:
#include <12F675.h>
#fuses HS,NOWDT,NOPROTECT, NOMCLR, BROWNOUT
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_A4, rcv=PIN_A3)

void init()
{
   setup_comparator( NC_NC_NC_NC );
   setup_adc( ADC_OFF );
}
main()
{
   init();
   while (1)
   {
      printf("\r\n Test");
      delay_ms(800);
   }
drh



Joined: 12 Jul 2004
Posts: 192
Location: Hemet, California USA

View user's profile Send private message

PostPosted: Sat Dec 08, 2007 7:26 pm     Reply with quote

The polarity of C3 in your schematic is reversed.
_________________
David
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