Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP WITH PIC18FK20
#4
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
Reply


Messages In This Thread
HELP WITH PIC18FK20 - by cbarberis - 2015-06-02, 18:20:08
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:39:30
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 13:34:43
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 15:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-11, 21:45:23
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-08-23, 11:31:20

Forum Jump:


Users browsing this thread: 1 Guest(s)