Free message board, discussion forum, online community for techies in South Africa

programmers, message board, freelance developers, South Africa
techies.co.za Forum Index

a free bulletin board, forum, online community for techies based in South Africa

Log in Register FAQ Memberlist Search techies.co.za Forum Index

techies.co.za Forum Index -> Electronics ->  Single chip micros

Single chip micros

Help with MAX232 vs FT232R/L

Post new topic     Reply to topic
View previous topic :: View next topic  
Author Message
bugmenot



Joined: 31 Dec 2005
Posts: 6

PostPosted: Wed 03 Feb 2010 11h12    Post subject: Help with MAX232 vs FT232R/L Reply with quote

Hey guys, I'm a total noob but I love to potter and wish I had more time for pic. I'm attempting to flash my wii's 512Mb NAND chip (or at least part of it) in an attempt to recover from a bad flash.

I found a simple DIY NAND flash programmer on the web here:
http://czi.uni.cc/?p=110&cpage=1#comment-112
It reads / writes the code to/from an SD card using serial instructions sent from the USB port of a PC. It includes a PIC 18F2525 with code designed to take instructions via plain text menu in a terminal window for the reading/writing process.

My issue is I need to convert part of the circuit - I want to use serial for the PC connection and a MAX232 (instead of the FT232R and usb).

I don't suppose anyone can (with a quick glance) suggest where I need to connect the Tx/Rx, V+ from the Max232 in this circuit - do I connect directly to the legs of the PIC, and what other components can I leave out (presumably on the left hand side of the circuit)...

The details of the programmer are here:
http://czi.uni.cc/?p=110&cpage=1#comment-112
Download the pcb and other files:
http://czi.uni.cc/wp-content/uploads/2009/09/sd2nandv2.rar

In the first link, you can see the unit with the FT232RL USB bit on the left...

FT232RL can be clearly seen here:
http://farm3.static.flickr.com/2318/2218461082_3c45434f11.jpg
and here
http://farm3.static.flickr.com/2176/2325494421_63764af5ab.jpg
and here
http://shop.embedit.de/gen_image.php?img=FT232RL.gif

Max232 here:
http://www.mcu.hk/GIF/MAX232.gif
and here
http://cstep.luberth.com/max232.jpg
and here
http://www.forum-auto.com/uploads/200504/piffo77_1112975528_piffo77_max232.gif

Any help is appreciated!


Back to top
View user's profile Send private message
Soutie



Joined: 14 May 2008
Posts: 9
Location: Centurion

PostPosted: Sat 06 Feb 2010 10h06    Post subject: Reply with quote

The FT232 is a USB-UART from FTID (ftdichip.com). It allows you to open a virual COM port on your PC over USB. As far as the PC application is concerned it looks and acts the same as a normal COM port.

My first question is why would you want to go back to RS232? Most new PC's don't have RS232 (COM) ports anymore, only USB ports.

Do you have a schematic of the circuit? It should be very simple to replace the FT232 with a max232, just read the data sheets ( http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf ) and connect the Tx's and Rx's on the logic side of the max device to the same port on the PIC, you will have to make sure you get the directions right. i.e. the pin on the pic that is transmitting should be connected to the input of the 232 (Tin) and the receiving pin of the PIC to the logic output of the 232 converter (Rout).

The 232 pins (Tout and Rin) connect to your PC COM port (usually pins 2 and 3 on a DB9 connector). Don't forget to connect a ground wire from your board to the ground of your PC COM port (usually pin 5 on a DB9 connector).

You will also need to look at your Power supply and check what voltages the PIC is running off, If the PIC is running 3.3V, then you may have an issue with the 5V MAX device if the PIC is not 5V tollerant.

Also I suspect the circuit is USB powered, so If you add a MAX232 you will need to have a separate PSU for the board.

The V+ on the MAX232 is for one of the charge pump caps, connect it to a cap as per the MAX232 datasheet.

If you can send me a schematic of what you plan to build I can see if it will work.

Soutie


Back to top
View user's profile Send private message
bugmenot



Joined: 31 Dec 2005
Posts: 6

PostPosted: Sat 06 Feb 2010 10h49    Post subject: Reply with quote

Hey Soutie - thanks for the reply... here are my comments:
[quote="Soutie"]My first question is why would you want to go back to RS232? Most new PC's don't have RS232 (COM) ports anymore, only USB ports.[/quote]
Yep, I agree - the issue for me is that I live in East London so there aren't many options with electronics suppliers and for some reason I can only get my hands on the max232 locally. I can't seem to find the USB ic anywhere around here. I can probably order it but I don't have the inclination to do that right now. My PC does have a serial port.

[quote="Soutie"]Do you have a schematic of the circuit? It should be very simple to replace the FT232 with a max232, just read the data sheets ( http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf ) and connect the Tx's and Rx's on the logic side of the max device to the same port on the PIC, you will have to make sure you get the directions right. i.e. the pin on the pic that is transmitting should be connected to the input of the 232 (Tin) and the receiving pin of the PIC to the logic output of the 232 converter (Rout).

The 232 pins (Tout and Rin) connect to your PC COM port (usually pins 2 and 3 on a DB9 connector). Don't forget to connect a ground wire from your board to the ground of your PC COM port (usually pin 5 on a DB9 connector).

You will also need to look at your Power supply and check what voltages the PIC is running off, If the PIC is running 3.3V, then you may have an issue with the 5V MAX device if the PIC is not 5V tollerant.

Also I suspect the circuit is USB powered, so If you add a MAX232 you will need to have a separate PSU for the board.

The V+ on the MAX232 is for one of the charge pump caps, connect it to a cap as per the MAX232 datasheet.

If you can send me a schematic of what you plan to build I can see if it will work.

Soutie[/quote]

Thats some good advice - thanks, much appreciated. The Schematic is in pcb format on the one link I provided:
http://czi.uni.cc/wp-content/uploads/2009/09/sd2nandv2.rar
(.rar file - use 7Zip or Winrar to extract).

I am using RimuPCB trial version to view it.
I'm going to give it a go this w/end possibly.
Cheers m8


Back to top
View user's profile Send private message
bugmenot



Joined: 31 Dec 2005
Posts: 6

PostPosted: Sun 07 Feb 2010 18h46    Post subject: Reply with quote

The original circuit wasn't ideal because the PIC is a 5v chip and although they were powering the circuit from USB, it was being powered via a regulator at 3.3v (although it seems the PIC is OK with this). The reason for this is because there is an SD card slot and a NAND flash chip which require 3.3v so it was a one size fits all scenario (although (I would have powered the PIC from the 5v side of the USB and the rest on the other side of the regulator.

Anyway, I will be powering the pic and the other units from a seperate psu at the correct voltages (I have an old one from a DVD player with multi outputs - 12, 5, 3.3)


Back to top
View user's profile Send private message
Soutie



Joined: 14 May 2008
Posts: 9
Location: Centurion

PostPosted: Sat 20 Feb 2010 22h34    Post subject: Reply with quote

Did you ever come right?


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    techies.co.za Forum Index -> Single chip micros All times are GMT + 2 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, 2002 phpBB Group
Theme created by Vjacheslav Trushkin

Privacy Policy