View Full Version : 115,200 baud rate program pic question
Penfold
03-10-2009, 09:59 AM
I have added a "1" in the define area to get Non-PWM for dimming LEDs. What has got me stumped is where do I incorporate the 115,200 in the define lines?
#define CLOCKRATE 18432000
#define BAUDRATE 115200 <-- Is this the only place that I type in 115,200 or is there somewhere else that I should type it in as well?
Is there anything else that needs to be done to get a Ren 24 up and running at 115,200?
Thanks go out to Phill for the firmware code :-) and Frank for the board layout:-).
P. Short
03-10-2009, 10:21 AM
That is the only line that you need to change...
g2ktcf
03-10-2009, 10:38 AM
Are there any specific challanges to doing this? Cabling or other?
Thanks,
Chris
P. Short
03-10-2009, 12:17 PM
The only challenge that I'm aware of is that some of the USB-serial converters don't seem to work with Renard at 115200. I'm not sure what the problem is, perhaps their baud rate is off by enough to cause problems.
Penfold
03-10-2009, 12:49 PM
Would I run into problems if I use an DB9 to RJ485 converter you can get on Ebay?
rstehle
03-10-2009, 01:15 PM
No, just make sure that it's specs show that it is rated up to that baud rate.
P. Short
03-10-2009, 01:49 PM
There have been some threads on this forum where people have had problems with specific models. I think that some Ebay vendors have no idea what they are selling, so they make things up or just blindly copy specs from other models. So it is a matter of potluck, unless you find a vendor and model that someone on this forum has had positive experiences with.
Penfold
03-16-2009, 01:51 PM
Ok I tried to program the chips with 115,200 baud rate and I got a dead board when I tried to run it. I have changed the baudrate in the computer setting although I can go a little higher as far as that is concerned (I think my computer will accept something like 120,000 max I believe it may be a little more then that). I changed the baudrate in my Vixen profile as well. I am running with a RS232 - RJ485 converter. I am running on Vixen beta 2.05.
I have run this Ren 24 V3.0 with a diagnostic PIC and I got blinking diagnostic LEDs.
I am thinking maybe I didn't build the code properly. I will probably try it again. Also, one final note: When I try to build I get an option of "Relocatable" and another that I can't remember off the top of my head when converting the ASM to HEX in MPLAB. Should I be clicking the Relocatable option or should I click on the other option that escapes me right now?
wvengineer
03-16-2009, 02:52 PM
I guess we could add a list of known compatible serial adapters into the Wiki.. I myself do not have a wiki
account as of yet..... and i know that there are a ton of options but if we had a compendium of what
we know works would help the people just starting in this....
So far the Trendnet usb to serial TU-S9 works at 115.2k.
Reddy_Kilowatt
03-16-2009, 06:41 PM
You may want to try temporarily feeding your board RS232 directly off a PC com port first.
If that works, I would look for another 485 adapter.
-Craig
Reddy_Kilowatt
03-16-2009, 07:12 PM
I guess we could add a list of known compatible serial adapters into the Wiki.. I myself do not have a wiki
account as of yet..... and i know that there are a ton of options but if we had a compendium of what
we know works would help the people just starting in this....
So far the Trendnet usb to serial TU-S9 works at 115.2k.
I don't have a wiki account either.
For RS485:
RavingLunatic, has had success with a Ren-T and a few others (myself included) with a Hexin HXSP-2108G USB to 485/422 adapter.
Let us know if find another to add to the list!
-Craig
Penfold
03-17-2009, 09:40 AM
Thanks Reddy. I just purchased a Hexin HXSP-2108G USB to 485/422 adapter from Ebay. I will wait with crossed fingers.
oldcqr
03-23-2009, 04:25 PM
I'm with Penfold here. Do we need Absolute or Relocatable code?
P. Short
03-23-2009, 05:16 PM
It has never asked me that question. But then I haven't updated my software in a long time... My guess is that 'relocatable' is for when you are linking several different software modules together. Since we aren't doing that (everything is in one file), I would vote for absolute. My further guess is that there won't be any harm if you get it wrong, that it will stop you before you get to programming the actual chip.
Penfold
03-31-2009, 10:09 AM
UPDATE: I have now gotten the Hexin HXSP-2108G and after tinkering with the wire setup I now have the Renard 24 running on 115,200!!
Also, I bought the customizable DB9--> RJ485 that Kevin recomended on his page. This option also worked, although I didn't like trying to solder three wires together on pin 5 of the DB9 (not enough wire length for my fat stubby fingers). Furthermore, when connected to the serial port I couldn't screw in the thumb screws to the serial port. Even though this option was two times cheaper I don't think I will go with this option as I am afraid of the adapter being so loose (and I can't solder for beans when it comes to bridging three wires together). This is my experience and others may not have a problem with the customizable DB9--> RJ485. I am just reporting on my findings and preferences.
WireWrap
03-31-2009, 10:44 AM
UPDATE:
...
This option also worked, although I didn't like trying to solder three wires together on pin 5 of the DB9 (not enough wire length for my fat stubby fingers).
...
(and I can't solder for beans when it comes to bridging three wires together)
...
Make it easier -- Solder four!! :confused:
Actually, solder a 1-1/2 inch lead to Pin 5 on the DE-9 and then solder all four ends together. You can use a cut-off bit of wire or a food bag tie-wrap to wrap around the insulated portion to hold them together while you solder. Then insulate and tuck in a convenient corner of the housing. :-D :-D :-D
oldcqr
03-31-2009, 11:20 AM
FYI...
I have 3 different cheap RS232 to RS485 adapters coming in the mail in the next 10 days. When I say cheap, I mean cheap. They were $5.60, $6.65, and $7.83 SHIPPED. :o
Once they get here, I'll do some testing on how well they work at 115k.
cbell
03-31-2009, 02:45 PM
I've had success at 115,200 using a EasySync Ltd. ES-U-1001-B10 Budget USB-RS232 adapter combined with a Hexin RS232-RS485 Converter, Model: 485, S/N: HEXIN.
rstehle
03-31-2009, 05:56 PM
I've had success at 115,200 combined with a Hexin RS232-RS485 Converter, Model: 485, S/N: HEXIN.
I just got done testing 2 Renard 24's at 115,200 with the same converters! Success!!
Penfold
04-06-2009, 09:32 AM
Ok....... Apparently the first batch of customizable DB9--> RJ485 that I got from Ebay were male instead of the alleged female. I finally order some more and got the proper female ones in. I used a different pair of wire cutters and stripped the three wires down to about 1/2 an inch. I soldered up a jumper wire that I got from one of the wires that aren't used in the Ren cable (It was much easier this time as I stripped more wire length this time). I hooked everything up and VIOLA she's a working perfectly!
I have a spare that I made, but I still have a customizable DB9--> RJ485 in package if anyone wants it. I will let it go FREE (shipping and handling free)! First come, first serve though. Just PM me. I am putting this opportunity out for people that want to try out their luck on this route.
**SORRY guys the customizable DB9--> RJ485 has been claimed. **
Powered by vBulletin® Version 4.1.10 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.