Tiny Bootloader 18F2420


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You can also modify the TinyB18F.asm code for other PIC types. The cool part of using PIC18 device is that you can run the bootloader WITHOUT a MAX232! Just invert your USART with RXDTP and TXCKP. I have been meaning to try it since I read this thread: http://www.picbasic.co.uk/forum/showthread.php?t=10361

    I finally tried it using a PIC18f2520 with a 22k resistor on the RX line, and with the addition of

    Code:
    	BSF BAUDCON,RXDTP
    	BSF BAUDCON,TXCKP
    to the sample .asm file they call TinyB18F.asm , which is included in the Tiny Bootloader download.

    Nice to get rid of a $4.00 chip, and do it in hardware, well ... sort of software/hardware!

    And it works!!
    Last edited by ScaleRobotics; - 30th December 2009 at 21:57.

  2. #2
    Join Date
    Dec 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Tiny with 18F2420

    I have tiny working with the 18F252 and the 18F2420. I will upload the file in a day or so.

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    scalerobotics, WOW you pay $4.00 for an MAX-232.... You must be made of money...

    Dave Purola,
    N8NTA

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default MAX232 alternative

    Quote Originally Posted by Dave View Post
    scalerobotics, WOW you pay $4.00 for an MAX-232.... You must be made of money...
    No, mostly water really.

    Thanks Dave, I guess I was using a Mercedes, when I could have used a Chevy.

    A quick search of Digikey for MAX232 reveals the actual price of a Maxim MAX232 dip is $3.31 to $6.60 ( Unless you like the larger electrolytic caps). But, if you use an ST232C, instead of a MAX232, (after tax and a few capacitors), the cost is $1.25.

    Either way, you will save some money and space on your board if you invert your coms and buy two resistors.

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    scalerobotics, There is just something wrong in my mind about connecting negative voltages to a unipolar input pin... I think the cost of a few transistors and a few resistors is worth the piece of mind....

    Dave Purola,
    N8NTA

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29
  4. Tiny bootloader and 18F4525
    By Najim in forum Off Topic
    Replies: 1
    Last Post: - 11th January 2006, 11:43
  5. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts