Tiny Bootloader and 18F1320 Through X-bee wireless


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57

    Default Tiny Bootloader and 18F1320 Through X-bee wireless

    Just got Tiny Bootloader to work with my X-bee network. Changed the .asm file to look like this so it runs at 9600 baud @4MHz

    Code:
    	radix DEC
    	LIST      P=18F1320	; change also: Configure->SelectDevice from Mplab 
    xtal EQU 8000000		; you may want to change:
    	;oscil:	_HS_OSC_1H	HS extern
    	;	_INTIO1_OSC_1H  Internal RC, OSC1 as RA7, OSC2 as Fosc/4
    	;	_INTIO2_OSC_1H	Internal RC, OSC1 as RA7, OSC2 as RA6
    baud EQU 9600			; standard TinyBld baud rates: 115200 or 19200
    	; The above 3 lines can be changed and buid a bootloader for the desired frequency and PIC type
    #define _XTAL_FREQ 4000000 ;//set your xtal frequency here
    #define _UART_BAUD 9600  ;//set your baud rate here
    #define _UART_BRG ((_XTAL_FREQ / _UART_BAUD) / 64) - 1  ;//variable for setting SPBRG	
    ;SPBRG = _UART_BRG   ;//set baud rate
         ; TXSTA = 0b00100000;   ; //tx enable, low speed baud rate generator
         ;RCSTA = 0b10010000;    //serial port enable, continuous rx enable
    
    	;********************************************************************
    	;	Tiny Bootloader		for 18F series		Size=100words
    	;	[email protected]
    	;	http://www.ac.ugal.ro/staff/ckiku/software/picbootloader.htm
    	;********************************************************************
    	
    
    	#include "../icdpictypes.inc"	;takes care of: #include "p18fxxx.inc",  max_flash, IdTypePIC
    	#include "../spbrgselect.inc"	; RoundResult and baud_rate

  2. #2
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57

    Default Re: Tiny Bootloader and 18F1320 Through X-bee wireless

    Here is the full .asm file http://pastebin.com/RcTFmNjd

Similar Threads

  1. I2C clock code with tiny problem
    By Amoque in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th October 2013, 00:36
  2. Tiny Bootloader 18F2420
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st March 2010, 17:32
  3. B868mc-tiny/40-smd-ia - Rts Cts
    By MegaADY in forum Serial
    Replies: 0
    Last Post: - 13th March 2007, 18:40
  4. Tiny bootloader and 18F4525
    By Najim in forum Off Topic
    Replies: 1
    Last Post: - 11th January 2006, 11:43
  5. Zig Bee
    By gavo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th September 2005, 19:34

Posting Permissions

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