Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help for 16F1939 [solved]
#1
hello,
I have compiled ds30loader for my 16F1939 but when I try to send a program with the bootloader, I have a timeout.
Perhaps there is a problem with settings.inc

;------------------------------------------------------------------------------
; Device
;------------------------------------------------------------------------------
LIST P=16F1939


;------------------------------------------------------------------------------
; Includes
;------------------------------------------------------------------------------
#include "devices.inc"


;------------------------------------------------------------------------------
; User preferences
;------------------------------------------------------------------------------
radix DEC

#define FOSC 20000000 ;xxx
#define BLTIME 3000 ;xxx time in ms before bootloader loads the user application
#define HELLOTRIES 2 ;xxx number of non hello characters received before branching to the user application


;------------------------------------------------------------------------------
; UART settings
;------------------------------------------------------------------------------
#define USE_UART1 1 ;xxx uncomment to use uart1
;#define USE_UART2 1 ;xxx uncomment to use uart2
#define BAUDRATE 9600 ;xxx baudrate
;#define USE_ABAUD 1 ;xxx auto baud rate detection, only available on enhanced mid-range devices(?)
#define USE_BRGH 1 ;xxx
;#define USE_BRG16 1 ;xxx 16-bit brg, only available on enhanced mid-range devices(?)
;#define USE_TXENABLE 1 ;xxx uncomment to use a tx enable pin
#ifdef USE_TXENABLE
#define TRISR_TXE TRISA ;xxx tris register containing tx enable
#define PORTR_TXE PORTA ;xxx port register containing tx enable
#define TRISB_TXE TRISA3 ;xxx tris bit for tx enable
#define PORTB_TXE RA3 ;xxx port bit for tx enable
#endif


;------------------------------------------------------------------------------
; Advanced settings
;------------------------------------------------------------------------------
#define BLPLW 192 ;bootloader placement, words from end, should be a multiple of 64


;------------------------------------------------------------------------------
; Configuration bits, these macros can be found at the end of the inc-files located in
; C:\Program Files\Microchip\MPASM Suite\
;
; These can also be set in MPLAB IDE instead, they are found in Configure->Configuration bits...
;------------------------------------------------------------------------------
; Standard
;__CONFIG _CONFIG1, _DEBUG_OFF &_HS_OSC & _WDT_OFF & _PWRTE_OFF & _MCLR_ON & _BODEN_OFF & _LVP_OFF
;__CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF

; Enhanced
__CONFIG _CONFIG1, _FOSC_HS & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _BOREN_OFF & _IESO_OFF & _FCMEN_OFF
__CONFIG _CONFIG2, _PLLEN_ON & _LVP_OFF


Have you an idea??
Regards

Michel[/quote]
Reply


Messages In This Thread
help for 16F1939 [solved] - by michastro - 2011-06-30, 21:20:08
RE: help for 16F1939 - by Mikael Gustavsson - 2011-06-30, 22:04:48
RE: help for 16F1939 - by michastro - 2011-07-01, 18:10:22
RE: help for 16F1939 - by Mikael Gustavsson - 2011-07-04, 11:28:36
RE: help for 16F1939 - by michastro - 2011-07-04, 12:50:29

Forum Jump:


Users browsing this thread: 2 Guest(s)