Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC 18F4580 Problems [solved]
#14
i added:
Code:
            BSF        TRISC, RC7
            BCF        TRISC, RC6

after where the uart is setup... still the same result however, it seems the PICRX line should be high at idle but it remains low after i load the boot loader.

as a reference i have this to set up the serial port:

Code:
            movlw     b'00100100'        ;enable transmit and
            movwf     TXSTA_            ; high speed mode
            movlw     UBRG            ;use only SPBRG_ (8 bit mode default) not using BAUDCON
            movwf     SPBRG_
            movlw     b'10010000'        ;enable serial port
            movwf     RCSTA_            ; and receive
            BANKSEL TRISC
            BSF        TRISC, RC7
            BCF        TRISC, RC6

and this for the oscillator and baud rate:

Code:
    #define        OSCF            4000000             ;xxx oscillator frequency
        #define        BAUDRATE         9600            ;xxx baudrate

with XT selected in the config bits. i also can measure a clock if i look at the clkin pin of the oscillator

Reply


Messages In This Thread
PIC 18F4580 Problems [solved] - by LMS_EE - 2010-11-23, 22:45:13
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-11-24, 21:17:07
RE: PIC 18F4580 Problems - by Lotusx - 2010-11-24, 21:18:10
RE: PIC 18F4580 Problems - by LMS_EE - 2010-11-24, 22:00:30
RE: PIC 18F4580 Problems - by Lotusx - 2010-11-24, 22:17:36
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-11-24, 22:49:46
RE: PIC 18F4580 Problems - by LMS_EE - 2010-11-29, 15:06:09
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-11-29, 19:15:36
RE: PIC 18F4580 Problems - by LMS_EE - 2010-11-29, 20:42:44
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-11-29, 21:04:38
RE: PIC 18F4580 Problems - by Lotusx - 2010-11-29, 22:31:46
RE: PIC 18F4580 Problems - by LMS_EE - 2010-11-30, 15:30:14
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-11-30, 21:56:54
RE: PIC 18F4580 Problems - by LMS_EE - 2010-12-01, 14:56:33
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-12-02, 22:16:44
RE: PIC 18F4580 Problems - by LMS_EE - 2010-12-09, 14:55:49
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2010-12-09, 21:13:53
RE: PIC 18F4580 Problems - by oktayk - 2011-02-15, 13:58:59
RE: PIC 18F4580 Problems - by Mikael Gustavsson - 2011-02-15, 16:42:31

Forum Jump:


Users browsing this thread: 7 Guest(s)