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

Olimex PIC-P40-USB Proto Development Board

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



Joined: 30 Nov 2006
Posts: 4

View user's profile Send private message

Olimex PIC-P40-USB Proto Development Board
PostPosted: Thu Nov 30, 2006 7:10 am     Reply with quote

I am using a Olimex PIC-P40-USB development board with a 16F877A pic. I am trying to use my laptop computer with a PCMCIA RS232 serial port card in the slot to communicate with the CCS bootloader loaded in the pic. The board is being powered off the USB cable and is on com port #6. I have the 9 pin UART on the Olimex board connected to the PMCIA card on com #1. For a terminal program, I am using the CCS terminal program ship with my compiler which is set to com 1, 8N1. The problem is that I can not get the board to talk to the PC. I keep getting a time out error. For a test I hooked a 16F877A pic board with a MAX232 to the com port on the laptop and it works fine. Any Ideas?
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Thu Nov 30, 2006 10:57 am     Reply with quote

Couple of observations
Laptops often don't provide much power to the USB
Laptops often don't provide enough voltage to the RS232 port

Assuming all works with a desktop PC then for the laptop:

If you have a powered usb hub then try putting it in the loop laptop to hub hub to your board.
Scope the laptop RS232 to see what kind of voltage swing you are getting.
Ttelmah
Guest







PostPosted: Thu Nov 30, 2006 11:15 am     Reply with quote

Why use the PCMCIA card?. You already have a USB serial port built onto the P40 board. If you use an external serial, this will need a MAX232 chip or similar, to make the signals compatible with the PIC. At the moment, it sounds as if you have got the USB serialport 'looped back' to the PCMCIA port. In which case, it is not suprising that you can't talk to the PIC...

Best Wishes
lrysavy



Joined: 30 Nov 2006
Posts: 4

View user's profile Send private message

Olimex PIC-P40-USB Proto Development Board
PostPosted: Thu Nov 30, 2006 11:37 am     Reply with quote

Ttelmah wrote:
Why use the PCMCIA card?. You already have a USB serial port built onto the P40 board. If you use an external serial, this will need a MAX232 chip or similar, to make the signals compatible with the PIC. At the moment, it sounds as if you have got the USB serialport 'looped back' to the PCMCIA port. In which case, it is not suprising that you can't talk to the PIC...

Best Wishes


I am new at this, but do have a schematic that shows the USB board.
http://www.olimex.com/dev/images/pic-p40-usb-sch.gif
Will the same com port power the board and communicate with the pic UART? Thanks much!

lrysavy
Ttelmah
Guest







PostPosted: Thu Nov 30, 2006 1:12 pm     Reply with quote

It already is.
A 'comm port', provides no power. The USB connection provides power, and attached to it isa circuit that produces a 'virtual' comm port, Your serial connection is reliant on the power already coming from the USB connection.
The serial port available from the FTDI module, is signalling at TTL levels (which will be compatible with the PIC), while the one from the PCMCIA card, will be signalling at RS232 levels, and will require a level shifter chip (MAX232), which will draw more power...

Best Wishes
lrysavy



Joined: 30 Nov 2006
Posts: 4

View user's profile Send private message

PostPosted: Thu Nov 30, 2006 8:52 pm     Reply with quote

Ttelmah wrote:
It already is.
A 'comm port', provides no power. The USB connection provides power, and attached to it isa circuit that produces a 'virtual' comm port, Your serial connection is reliant on the power already coming from the USB connection.
The serial port available from the FTDI module, is signalling at TTL levels (which will be compatible with the PIC), while the one from the PCMCIA card, will be signalling at RS232 levels, and will require a level shifter chip (MAX232), which will draw more power...

Best Wishes


I disconnected the PCMCIA card and tried using the USB port with the terminal program with the same result of having the down load start and then stop and freezes with nothing happenning. I also used com port 1 as well, same results. I moved the board over to my desk top computer and performed the same experments with the result being the same problem. Any help will be greatful.

Thanks lrysavy
Ttelmah
Guest







PostPosted: Fri Dec 01, 2006 3:35 am     Reply with quote

You can't just plug in, and expect to connect. You need to make the wiring connection between the FTDI circuit, and the PIC. You need the 'TX' pin of the FTDI circuit, attached to the 'RX' pin on the PIC, and the 'RX' pin on the FTDI circuit connected to the 'TX' pin on the PIC. Circuitry is not automatically connected. The 'point' about the board, is that it is laid out so that you can connect stuff as you want, but because of this, there is no 'default' interconnection...

Best Wishes
lrysavy



Joined: 30 Nov 2006
Posts: 4

View user's profile Send private message

PostPosted: Fri Dec 01, 2006 4:49 am     Reply with quote

Ttelmah wrote:
You can't just plug in, and expect to connect. You need to make the wiring connection between the FTDI circuit, and the PIC. You need the 'TX' pin of the FTDI circuit, attached to the 'RX' pin on the PIC, and the 'RX' pin on the FTDI circuit connected to the 'TX' pin on the PIC. Circuitry is not automatically connected. The 'point' about the board, is that it is laid out so that you can connect stuff as you want, but because of this, there is no 'default' interconnection...

Best Wishes


I am poor at reading the wiring diagram, but looking at the Olimex board it looks like I have the RX and TX lines connected to the pic - see link.(http://www.olimex.com/dev/images/pic-p40-usb-sch.gif). Do I need to add a MAX232 to the board to complete the circuit?

Thanks again!

lrysavy
Ttelmah
Guest







PostPosted: Fri Dec 01, 2006 5:05 am     Reply with quote

It is not clear.
RXD, may have a connection, but it is not 'plain' that it does, but no connection is really shown to the PIC's TXD pin. However the diagram is so poor, that a connection may exist (try testing with a meter).
The 'standard' in circuits, is that if a pin has a 'node' shown, and the node is named, then they should be connected. However no node is shown on either pin.just unconnected 'lines'...
No. read what I already posted. The FTDI module gives 5v 'logic level' serial, so does not need a MAX232.

Best Wishes
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