Searching \ for '[PIC] 18F Serial Port' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=serial
Search entire site for: '18F Serial Port'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] 18F Serial Port'
2017\10\06@230528 by Anthony Nixon

picon face
Hi all,

I am using a 18 f47K40 for a project that uses the serial port on
RC6(Rx) and RC7(Rx) but cannot get the port to work.

I have many projects like this using 16F devices but I can't get this
one working.

I know the chip is functioning because of a led display working and as
far as I can tell the basic EUSART setup is the same as other chips I
have used.

I have not used the peripheral pin select before and may be that is the problem.

I am programming in assembler and all web examples are in C with
function calls that do not explain the pin setup process.

This is a snippet of the PPS code

BANKSEL RX1PPS

movlw b'00010111'
movwf RX1PPS,BANKED ; PORTC<7> as the EUSART1 RX input,

movlw b'00001001' ; PORTC<6> as the EUSART1 TX output
movwf RC6PPS,BANKED

Any help appreciated.

cheers

Tony
-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
mailman.mit.edu/mailman/listinfo/piclist
.

2017\10\06@231120 by Jason White

picon face
It may be interesting to disassemble the compiled output of the working C
examples

On Friday, October 6, 2017, Anthony Nixon <spam_OUTtnixon059TakeThisOuTspamgmail.com> wrote:

{Quote hidden}

-- Jason White
-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
mailman.mit.edu/mailman/listinfo/piclist
.

2017\10\07@042448 by Anthony Nixon

picon face
Hi all,

Found the culprit after some hours of head scratching.  I accidently
put a '1' instead of a '0' in the bit that enables the EUSART1 module.

cheers

Tony

On Sat, Oct 7, 2017 at 2:11 PM, Jason White
<.....whitewaterssoftwareinfoKILLspamspam@spam@gmail.com> wrote:
{Quote hidden}

-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
mailman.mit.edu/mailman/listinfo/piclist
.

More... (looser matching)
- Last day of these posts
- In 2017 , 2018 only
- Today
- New search...