2015-06-03, 13:34:43
I am not sure where "tx_enable" is uncommented, on the settings.inc file it is written as follows:
#define USE_TXENABLE 1 ;xxx uncomment to use a tx enable pin
Then on ds30loader.asm we have the following lines which I thought are set correctly:
;----------------------------------------------------------------------
; User init
;----------------------------------------------------------------------
; Enable digital i/o ;
#ifdef ADCON1
; error Do you need to configura uart pins to be digital? If not, remove this line
#endif
;movlw b'01100000' ;xxx disable
;movwf ADCON1 ;xxx analog on tx/rx
; Set internal oscillator to 8MHz
;movlw b'01110000'
;movwf OSCCON
; Make tx enable pin output and set to 0
#ifdef USE_TXENABLE
bcf TRISR_TXE, TRISB_TXE
bcf LATR_TXE, LATB_TXE
#endif
As far as the bit fuses go I have been setting them in MPLAB as I could not find the correct combination for my set-up. I will download the latest free version and try that instead of the older one I have.
Thank you
#define USE_TXENABLE 1 ;xxx uncomment to use a tx enable pin
Then on ds30loader.asm we have the following lines which I thought are set correctly:
;----------------------------------------------------------------------
; User init
;----------------------------------------------------------------------
; Enable digital i/o ;
#ifdef ADCON1
; error Do you need to configura uart pins to be digital? If not, remove this line
#endif
;movlw b'01100000' ;xxx disable
;movwf ADCON1 ;xxx analog on tx/rx
; Set internal oscillator to 8MHz
;movlw b'01110000'
;movwf OSCCON
; Make tx enable pin output and set to 0
#ifdef USE_TXENABLE
bcf TRISR_TXE, TRISB_TXE
bcf LATR_TXE, LATB_TXE
#endif
As far as the bit fuses go I have been setting them in MPLAB as I could not find the correct combination for my set-up. I will download the latest free version and try that instead of the older one I have.
Thank you